ContextAtlas

•
30
•

Provides stable, reusable, and observable code context infrastructure for AI coding agents through hybrid retrieval, project memory, and retrieval observability.

ContextAtlas is an open-source, robust context infrastructure designed for AI coding agents. It offers hybrid code retrieval, persistent project memory, and comprehensive retrieval observability, available as a CLI, an MCP server, or an embeddable library. The tool integrates tree-sitter for semantic chunking, LanceDB for vector search, SQLite FTS5 for full-text search, and token-aware context packing to deliver high-quality, structured code context. It directly addresses common agent failures caused by weak context systems, such as an inability to find relevant code, fragmented context, lack of persistent understanding across sessions, and degrading index quality, thereby ensuring agents have the precise information needed for effective operation.

Key Features

01Retrieval Observability: Provides monitors for retrieval, usage reports, and health checks for indexes and memory.
0222 GitHub stars
03Project Memory: Stores feature memory, decision records, and project profiles for persistent knowledge.
04Context Expansion: Expands local context based on code neighbors, breadcrumbs, and import relationships.
05Hybrid Retrieval: Combines vector recall, FTS lexical recall, RRF fusion, and reranking for precise code retrieval.
06Token-aware Packing: Intelligently packs the highest-value context within limited token budgets.

Use Cases

01Serve as a repository retrieval backend for various AI coding agents.
02Act as an MCP server for external clients requiring code retrieval and memory tools.
03Function as a local CLI or skill backend for custom agent skills, shell workflows, and CI scripts.