codegraph (colbymchenry/codegraph)

gemini-cli
Searching Database…

What is this?CodeGraph pre-indexes your codebase into a knowledge graph of every symbol, call edge, and dependency, so AI coding agents get the exact code they need in one call instead of crawling files.
Is this a standalone app, or something that lives inside my coding agent?It's a CLI plus an MCP server: the codegraph command builds and serves the graph, and your agent pulls context from it through MCP tool calls.
What does wiring it into my agent involve?Three steps: install the CLI (one command, or npm), run the agent installer to connect the agents you use, then codegraph init in each project builds the full graph.
Do I need Node or anything else installed first?Not for the main install: the one-command installer grabs a standalone build with its own bundled runtime, nothing to compile. If you already have Node, npm works instead.
It promises fewer tokens — does that mean a lighter context window too?Oddly, no: tokens processed drop (62% fewer on average), but the dense answers leave about 80% more retrieval context resident at session end, so long sessions in a small window need budgeting.
Will it run on my Mac, or is it Linux-only?Standalone builds exist for macOS, Windows, and Linux — the installer picks the right one for your OS, and npm covers any machine that already has Node.
Does any of my code get uploaded somewhere?No — indexing and queries run entirely on your machine; 100% local is the README's own tagline.
Which coding agents can it plug into?The installer auto-configures Claude Code, Cursor, Codex CLI, opencode, Hermes Agent, Gemini CLI, Antigravity IDE, Kiro, and GitHub Copilot (VS Code, Copilot CLI, JetBrains IDEs).
Do I have to rebuild the index whenever my agent edits code?No — auto-sync is on by default: CodeGraph watches the project and updates the graph on every file change, so the index is never stale and there is nothing to re-run.
Can I browse the graph myself, or is it only for the agent?You can open it in your browser: callers of a symbol on the left, the symbol's source in the middle, and what it calls on the right.
How much difference does it actually make in practice?In benchmarks across seven real-world repos (VS Code, Excalidraw, Django, Tokio and more), agents made 88% fewer tool calls and ran 53% faster with file reads cut to zero.
Size
74.6 MB
Stars
79.6K
Age
10mo
Commits · 90 Days