CodeGraph: A Pre-indexed Semantic Knowledge Graph for AI Coding Agents with Dramatic Token & Tool Call Reduction
CodeGraph is a local knowledge graph tool that pre-indexes source code into a SQLite database for AI coding agents (Claude Code, Cursor, etc.). By providing agents with instant access to symbol relationships and call graphs via tree-sitter, it replaces traditional grep-file-scan loops. Benchmarking across 7 real projects shows an average of 25% cost reduction and 62% fewer tool calls. It features framework-aware route detection and cross-language bridging for mixed iOS/React Native codebases. Completely local with no API keys required, it targets engineers looking to cut token usage and accelerate AI-driven coding.