Codegraph: Pre-indexed knowledge graph cuts Claude/Cursor tool calls by 94%

Colbymchenry released Codegraph, a tool that leverages Claude's Explore Agents to build and query a pre-indexed knowledge graph — containing symbol relationships, call graphs, and code structure — instead of scanning files repeatedly. According to the author, this reduces API tool calls by up to 94% and speeds up agent usage by roughly 77%.
Benchmark results
| Codebase | With CG | Without CG | Improvement |
|---|---|---|---|
| VS Code (TypeScript) | 3 calls, 17s | 52 calls, 1m 37s | 94% fewer, 82% faster |
| Excalidraw (TypeScript) | 3 calls, 29s | 47 calls, 1m 45s | 94% fewer, 72% faster |
| Claude Code (Python+Rust) | 3 calls, 39s | 40 calls, 1m 8s | 93% fewer, 43% faster |
| Claude Code (Java) | 1 call, 19s | 26 calls, 1m 22s | 96% fewer, 77% faster |
| Alamofire (Swift) | 3 calls, 22s | 32 calls, 1m 39s | 91% fewer, 78% faster |
| Swift Compiler (Swift/C++) | 6 calls, 35s | 37 calls, 2m 8s | 84% fewer, 73% faster |
The tool is open source and runs locally, meaning no code is sent to external APIs for indexing. For developers using Claude, Cursor, Codex, or OpenCode API agents, this directly reduces the number of tool calls — which is especially relevant given the recent Claude API pricing model.
Who it's for: Developers using AI coding agents on medium-to-large codebases who want to cut API costs and speed up agent response times.
📖 Read the full source: r/LocalLLaMA
👀 See Also

How I built a 3D scroll website in 2 hours using Claude Code and Veo
A developer built a 3D scroll website in 2 hours using Claude Code, Veo video generation, and a custom 'video to website' skill. Full code and live demo shared.

Why AI Coding Agents Churn Out Slop After 20 Turns: Context Blindness
A deep audit of API logs reveals Cursor and Claude Code aren't getting dumber — they suffocate on bloated context windows filled with noise, causing architectural destruction.

Sitefire Automates AI Search Optimization with Content Agents
Sitefire's platform monitors AI search results, analyzes which pages get cited, and uses content agents to draft improvements or create new pages that get pushed directly to clients' CMS. One client saw AI bot requests increase from ~200/day to ~570/day within ten days.

Qure: Desktop App for Generating E2E Tests from Recorded Browser Flows
Qure is a desktop application from JetBrains (currently in closed beta) that generates end-to-end web test code from recordings made in its built-in browser. Instead of describing test flows in text for AI agents, developers record their manual QA scenarios by interacting with their product, and the AI produces working test code that matches their existing codebase.