What it does
Graph Indexer parses your repository with tree-sitter and keeps a structural index of it:
every definition, every reference bound to the definition it actually points at, the call
graph, inheritance, imports, and which tests exercise what. Coding agents (Claude Code,
Cursor, VS Code Copilot, Codex, Gemini CLI, OpenCode, Kilo Code, Junie, Zed, Devin, …) query it
through Model Context Protocol tools, the CLI and hooks
instead of reading whole files and grepping.
- Answers are exact, not guesses.
find_references binds each use through scopes,
imports and inferred receiver types, so it lists the callers of this get and not of every
method named get. Measured against the TypeScript compiler it finds 96% of the real
references at 99.7% precision; grep finds them buried among seven false hits for each real one.
- Answers are never stale. The index re-syncs with the files on disk before every answer,
including edits the agent made a second ago, so line numbers and call graphs are current. An
index that was updated holds the facts of one built from scratch: replaying 870 real commits of
nine repositories through the update path, file by file in either order, leaves no difference.
- Answers are small. A tool reply is typically 400–1,500 tokens: the right function with
line numbers, not a 2,000-line file.
- Nothing to set up. Zero dependencies, no native builds, no model downloads, no network,
no service to install. The tree-sitter runtime and 16 grammars ship as WebAssembly inside the
package. The MCP server keeps the index open while the agent runs; with hooks and no server, a
resident process started on demand does the same so hooks and CLI queries answer in about
0.1 s, and exits after 30 idle minutes (
GRAPH_INDEXER_RESIDENT=0 turns it off).
Benchmarks at a glance
Every number below is graded by the compiler or type checker of the language, or by the hidden
tests of a real fix, never by a model; Measured results has the details.
- Exact where other code tools guess. Asked where ~150 random symbols are used, graph-indexer's
list is entirely right for 91–93% of them; CodeGraph's for 48–51%, codebase-memory-mcp's for
32–49%, grep's for 26–38%.
- The code tool agents actually use. In real Claude Code sessions with each tool installed
by its own installer, the agent called graph-indexer in 19 of 19 code questions and refactors
(CodeGraph 0, codebase-memory-mcp 0, Serena 2), and it was the only setup that answered all 11
code questions exactly, at the lowest cost.
- It lets a small local model do the job. Qwen3.5-9B on a Mac mini answered 6 of 6 code
questions exactly with graph-indexer 3.2 and 4 of 6 without it, with 38% fewer tokens, a third
less time and almost no grep.
- Cheaper and faster for cloud models too. Claude Haiku 5.5 answers code questions with it at
0.88 of the cost and 0.78 of the time of Claude Code alone; earlier rounds measured 0.44 of the
cost of grep with a larger model, and a quarter of the cost when the question is handed to the
structural helper.
- Fast and small. nestjs (1,641 files) indexes in 1.9 s into 13 MB; CodeGraph takes 3.2 s and
48 MB, codebase-memory-mcp 12 s and 28 MB.