Context Router
Selects the minimum useful context across code structure, runtime evidence, and project memory for AI coding agents, reducing token consumption by 64–80% for coding tasks.
AI coding agents perform optimally with focused, relevant context rather than full codebases. Context Router addresses this by indexing your repository's symbols, dependencies, call graphs, and test coverage into a local SQLite database. It intelligently ranks candidate files based on structural relevance, query similarity, and community membership, ensuring your agent receives only the most pertinent information for review, debug, implement, or handover tasks. This process enforces a configurable token budget, significantly reducing prompt sizes, and transparently explains every selection decision. It operates as a versatile CLI, an MCP server, or a Python library, requiring no external API keys.