NanoContext
Indexes codebases with Tree-sitter AST to provide AI agents with a structured, searchable map, reducing token usage and improving code generation.
AI coding agents frequently encounter limitations with token waste and inconsistent code changes when operating on large projects. NanoContext solves this by pre-parsing entire codebases using Tree-sitter AST to build a compact, searchable index of every class, method, import, and export. This allows AI agents to query for specific code structures, perform semantic vector searches across thousands of methods, and access exact code ranges instantly, rather than consuming tokens by reading raw files. It supports persistent project memory for design decisions and offers watch mode for real-time indexing, ensuring the AI agent always has an up-to-date, structural overview of the codebase.