codegraph (@codegraphio) header
codegraph (@codegraphio) profile picture

Understand any codebase as a graph. Local-first code intelligence for Claude Code, Cursor, Codex and more. 100% local, open source. By @colbmchenry_

Joined November 2026
Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)Photo by codegraph (@codegraphio)
Your codebase has more context than you think. CodeGraph helps AI agents understand how everything connects, making code changes safer and more informed.
26
One command to add it to your stack. MIT licensed, free, and already past 77,000 stars.
1
53
No upload step. No indexing server. CodeGraph runs on your machine, inside your repo, and your code never leaves it.
25
Ask in plain language, get an answer with receipts: the symbols, the path between them, and the exact files and lines to read next.
21
Before an agent edits a shared function, it can ask what the change touches: callers, callees, and the radius around them. Surprises are cheaper before the edit.
19
The whole integration is four verbs. If your agent can call a tool, it can read your codebase like it wrote it.
18
Your code changes all day. CodeGraph re-indexes as you work, so the graph your agent reads is never yesterday's codebase.
17
Measured on seven real repositories: 88% fewer tool calls, 53% faster, 62% fewer tokens, 44% lower cost. File reads: zero. The graph does the exploring now.
17
One graph, every agent. CodeGraph serves the same local knowledge graph to Claude Code, Cursor, Codex, Gemini, Copilot, opencode, Hermes, Kiro and Antigravity — over MCP.
17
I'm Colby McHenry. Fifteen years of building software and every AI agent I tried just read files, re-read files, and guessed. The structure was always right there. No agent could see it. So I built the map: CodeGraph. Free, open source, 100% local.
1
1
72
How CodeGraph works: tree-sitter parses your codebase (20+ languages), every symbol and dependency becomes a knowledge graph, and your agent answers from it in 1–4 calls. One command: codegraph init
21
CodeGraph turns your codebase into a local knowledge graph — every symbol, call and dependency, parsed from real ASTs in 20+ languages. Your agent answers in one call instead of crawling files: 88% fewer tool calls, 53% faster, 100% local. npx @colbymchenry/codegraph
21