🔥 Hot Repo: Pre-Index Your Codebase, Cut Claude Code Costs 35%
CodeGraph v0.8.0 dropped yesterday and is up +2,123 stars today. Benchmarked across 7 real codebases, it cuts Claude Code tool calls by 70% and API costs by 35% — all 100% local via MCP.
By OMC Editorial on 2026-05-21
One-liner — CodeGraph is a local MCP server that pre-indexes your codebase into a SQLite knowledge graph, so AI coding agents like Claude Code and Cursor can answer architecture questions without scanning files.
- Repo: colbymchenry/codegraphhttps://github.com/colbymchenry/codegraph
- Stars: ⭐ 12,058 +2,123 today
- Language: TypeScript
- License: MIT
---
What It Does
CodeGraph builds a pre-indexed knowledge graph of your codebase — symbols, call graphs, routing patterns, and file relationships — stored locally in SQLite with FTS5 full-text search. It exposes this as an MCP server, so agents like Claude Code, Cursor, Codex CLI, and OpenCode can answer architecture questions by querying the graph directly instead of spawning Explore sub-agents that grep and read files.
Why It's Blowing Up
v0.8.0 shipped May 20 alongside benchmarks that are hard to ignore: tested across 7 real-world codebases in 7 languages using Claude Opus 4.7 headlessly, the results averaged 35% cheaper, 59% fewer tokens, 49% faster, and 70% fewer tool calls compared to agents without the index. On large repos like VS Code 10k files, the savings hit 72% fewer tool calls and 73% fewer tokens.
The release also fixed two high-impact bugs: WSL2 users on NTFS /mnt/ mounts had the MCP server hang on startup because the file watcher was crossing the Windows/9p boundary; and project-local Claude Code installs were silently writing to .claude.json instead of .mcp.json — meaning the codegraph tools never appeared. Both fixes unblocked a large chunk of users who had given up.
The timing aligns with a broader developer conversation: as Claude Code usage grows on larger codebases, exploration agent costs have become the dominant line item on API bills. CodeGraph's approach — a pre-built, always-fresh index served over MCP — is a clean architectural answer.
Key Features
- Code knowledge graph — Tree-sitter-parsed symbols, call edges, and file relationships stored in SQLite FTS5
- Framework-aware rou