colbymchenry/codegraph
Pre-indexed code knowledge graph, auto syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, CoPilot, and Hermes Agent — fewer tokens, fewer tool calls, 100% local
What it solves
CodeGraph solves the inefficiency of AI coding agents that rely on slow, manual discovery methods like grep and file-by-file reading. By providing a pre-built knowledge graph of your codebase, it eliminates the need for agents to waste time and tokens re-deriving call paths and dependencies, allowing them to answer questions with surgical precision.
How it works
CodeGraph creates a local, persistent index of every symbol, call edge, and dependency in your project. Once initialized, it automatically watches your files and updates the graph in real-time as you edit. It integrates with popular AI agents (like Claude Code, Cursor, and GitHub Copilot) via the Model Context Protocol (MCP), allowing them to query the graph directly to retrieve exact code context instead of crawling the file system.
Who it’s for
It is for developers who use AI coding agents and want to reduce tool calls, lower token costs, and improve the speed and accuracy of AI-assisted coding sessions across any project size or language.
Highlights
- Universal Language Support: Works across dozens of languages including TypeScript, Python, Rust, Go, Java, Swift, and C++ without per-language configuration.
- Performance Gains: Benchmarks show up to 88% fewer tool calls, 53% faster response times, and 44% lower costs compared to standard file-reading agents.
- Zero-Sync Workflow: Automatically updates the index on every file change, ensuring the agent always has an accurate, non-stale view of the codebase.
- Broad Compatibility: Integrates with a wide range of agents, including Claude Code, Cursor, Gemini, Windsurf, and GitHub Copilot.
- Local-First: Built in Rust, the tool is self-contained and runs entirely locally, requiring no external cloud indexing services.
Related
- Project
- Project
- Project
- Project