Agent Context

•

Equips coding agents with efficient, privacy-preserving access to multiple codebases by leveraging local indexing and advanced search mechanisms.

Agent Context is a local-first server and indexer, built in Go, designed to empower coding agents with efficient and secure access to extensive codebases. It eliminates the need for expensive, resource-heavy external vector databases by utilizing high-performance local analytical storage with DuckDB and highly compressed vector quantization with TurboQuant. This innovative approach enables agents to perform fast, cost-effective hybrid searches—combining dense semantic, sparse lexical, and scoped grep re-ranking—while guaranteeing privacy by never storing sensitive code text, only lightweight metadata and inverted symbol hashes, thus maximizing resource optimization and security.

Key Features

01AST Call & Dependency Graph for fast traversal and understanding function execution flows.
02Local-first architecture utilizing DuckDB for metadata and TurboQuant for in-process vector quantization.
03Merkle Tree Incremental Sync for efficient, delta-based indexing of codebase changes.
04Model-agnostic and supports `.go`, `.tf`, and `.yaml`/`.yml` file indexing.
05Privacy-Preserving Hybrid Search fusing semantic, lexical, and scoped grep re-ranking without storing raw code.
060 GitHub stars

Use Cases

01Exploring codebases conceptually to find architectural patterns or specific functionalities via semantic search.
02Tracing dependencies and understanding function/resource execution flows using the call graph.
03Providing coding agents with fast, relevant, and cost-effective code context to enhance development tasks.