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.
主な機能
01Semantic vector search and exact text/regex searching
02Model Context Protocol (MCP) server integration for AI agents
030 GitHub stars
04Persistent project memory for notes and conventions
05Watch mode for automatic codebase re-indexing on changes
06Tree-sitter AST parsing for structured code indexing