Code Saaya
Founder & Principal AI Engineer · 2026

Code Saaya

The autonomous AI repository knowledge and documentation engine built by SaayaLabs. Converts any software repository into a pre-indexed, enterprise-grade knowledge base for human engineers and AI coding agents (Claude Code, Antigravity, Cursor, Aider, Devin). Delivers .saaya/repowiki/, CLAUDE.md, and AGENTS.md directly via GitHub Pull Requests, cutting agent token consumption by 80%.

Client
SaayaLabs / AI Tooling
Stack
Next.js 16, TypeScript, LangGraph, OpenAI SDK, Appwrite, Clerk, Octokit
Year
2026
Role
Founder & Principal AI Engineer
Code Saaya Preview
Challenge

AI coding agents waste tens of thousands of tokens per task repeatedly searching and reading source files to piece together database schemas, API contracts, and architecture rules. This causes slow execution, high API token costs, and frequent architectural hallucinations.

Architecture

Stateful multi-pass LangGraph pipeline: planTaxonomy (domain partitioning) → generateCatalogs (50-100+ sub-articles) → generateModuleCards (6-file technology suites: overview, architecture, tech stack, conventions, commands, and YAML metadata) → writeArticles (deep Markdown with Mermaid sequence & ER diagrams) → buildMetadata. Incorporates an adaptive Token-Bucket Rate Limiter to prevent HTTP 429 throttling.

Approach

Engineered automated tech-stack auto-discovery scanning project imports and dependencies to construct 6-file module suites. Utilized Octokit base64 blob Git trees to deliver hundreds of documentation files in a single atomic GitHub Pull Request. Designed model-agnostic engine architecture supporting Claude 3.5 Sonnet, GPT-4o, DeepSeek R1, and local Ollama endpoints.

Outcome

Saves 80% of token window usage for coding agents by providing pre-indexed context maps upon project load. Generates over 300 nested documentation files per scan, operates 100% free and open source, and eliminates agent context hallucination.

Core Capabilities
80% Token Savings

Pre-indexed architecture maps eliminate costly repetitive agent file-reading passes.

Agent Auto-Discovery

Generates root CLAUDE.md & AGENTS.md guidelines for instant agent workspace alignment.

Multi-Pass LangGraph

Stateful agentic graph with checkpointing allows long-running scans to pause & resume.

Atomic GitHub PR Delivery

Constructs base64 Git trees to commit complete documentation suites in one PR.

Code Saaya Screenshot 1
Code Saaya Screenshot 2
Results & Verified Metrics
80%
Token Window Savings
100%
Free to Use (Open Source)
300+
Nested Docs per Scan
Next buildGhostFounder