All 25 Dependencies
Every package codegraph depends on, ranked by repo health score.
CodeGraph is a local code intelligence layer that builds a persistent, pre-indexed knowledge graph of your entire codebase using tree-sitter AST parsing across 20+ languages. Instead of having AI agents repeatedly grep files and read source to answer architecture questions, CodeGraph lets them query a SQLite graph of every symbol, call edge, and file relationship — delivering answers in one tool call at sub-millisecond speed.
Benchmarked across seven real-world open-source codebases in seven languages, CodeGraph consistently reduces token consumption by an average of 47%, cuts tool calls by 58%, and makes sessions 22% faster wall-clock — with cost reductions reaching 40% on smaller repositories like Alamofire and OkHttp. These are not synthetic benchmarks: each run used Claude Opus headlessly answering architecture questions with and without the graph, across VS Code, Django, Tokio, Gin, Excalidraw, OkHttp, and Alamofire.
The MCP server integrates with Claude Code, Cursor, Codex CLI, OpenCode, Hermes Agent, Gemini CLI, Antigravity IDE, and Kiro via a single `codegraph install` command that auto-detects which agents are present and wires in the MCP configuration. Once initialized in a project with `codegraph init`, a file watcher keeps the index fresh within roughly one second of any file change — meaning the graph is never stale while an agent is actively editing code.
The project is entirely self-contained: no Node.js installation is required on the host machine since the CLI bundles its own runtime. Cross-platform installers for macOS, Linux, and Windows cover the common setup path, and npm installation remains available for teams already running Node. At version 1.0.1 with over 50,000 stars and 126 commits per month, CodeGraph has rapidly become a popular tool for developers seeking to reduce the cost and latency of AI-assisted code exploration.