Context Engine

•
2
•

Empowers AI coding agents with curated repository maps, semantic documentation search, intelligent command output compression, and call graphs across multiple languages, all delivered as a single local Rust binary.

Context Engine is a robust, 100% local CLI tool engineered to significantly enhance AI coding agents, such as Claude Code and other MCP-compatible agents. It directly tackles critical challenges like managing token budgets and fostering deep codebase understanding by offering a comprehensive suite of features: curated repository maps with BM25 + PageRank ranking, local RAG for semantic documentation search, intelligent compression of command outputs across 17 families, and detailed call graphs in 7 programming languages with relevance ranking. As a single Rust binary with zero external API dependencies, Context Engine guarantees privacy, speed, and efficiency, seamlessly integrating via auto-rewrite hooks and a native MCP server to optimize agent performance and reduce operational costs.

Key Features

01Interactive Call Graphs in 7 languages (TS, Py, Rb, Go, Rust, Java, Groovy) with ranked and token-budgeted results
021 GitHub stars
03Curated Repository Maps with BM25 + Personalized PageRank ranking
04Intelligent Command Output Compression for 17 command families (e.g., Git, Cargo, NPM, Docker)
05Seamless AI Agent Integration via auto-rewrite hooks and native MCP server
06Local Semantic Search (RAG) for documentation using OpenAI-compatible embeddings

Use Cases

01Enhance AI agent efficiency and reduce token usage for complex coding tasks.
02Navigate and understand intricate codebases using automatically generated repository maps and call graph analysis.
03Integrate advanced context management into Claude Code and other MCP-compatible AI agents for improved performance.