CodeGraph: a local code graph that gives AI coding agents the context they need
CodeGraph is a tool that builds a pre-indexed code knowledge graph[1] of a project, covering every symbol, call edge and dependency. It works with agents such as Claude Code, Cursor, Codex, Gemini, OpenCode, Antigravity, Kiro, GitHub Copilot and Hermes Agent. According to the README, the agent asks one question and gets back the relevant source, the call paths and the blast radius[2] of a change, instead of searching files one at a time. The project states that it runs 100% locally and that its core is powered by Rust.
The CLI can be installed with a shell script on macOS and Linux, a PowerShell script on Windows, or npm, and the script install does not require Node.js. The command `codegraph install` connects CodeGraph to the supported agents through an MCP server[3]. Running `codegraph init` in a project creates the `.codegraph/` directory and builds the graph. Auto-sync is enabled by default, so the graph updates on every file change. `codegraph uninstall` removes CodeGraph, and `--keep-cli` keeps the CLI installed.
The README reports a re-measurement from August 2026 that put the cost at 44% lower on a harness that blocks the CLI in both arms. The authors also say a hosted CodeGraph platform is coming, which will show what to test, what could break and which flows are affected for each pull request. Early beta access is offered at getcodegraph.com.
Sources
-
GitHub Trending
colbymchenry/codegraph





