Everything you need to know about CodeGraph and how it supercharges your AI coding assistants
CodeGraph is a pre-indexed code knowledge graph that provides semantic intelligence to AI coding assistants. It builds a graph of symbol relationships, call paths, and code structure, allowing assistants to query code directly instead of scanning files. This reduces tool calls by up to 94% and speeds up exploration by up to 77%. Everything runs locally in a SQLite database with no external dependencies.
# macOS / Linux curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh # Windows (PowerShell) irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iex
The installer automatically detects your AI assistants (Claude Code, Cursor, Codex CLI, opencode, etc.) and configures them. After installation, restart your agents and initialize projects with codegraph init in each project directory.
CodeGraph supports Claude Code, Cursor, Codex CLI, opencode, Hermes Agent, Gemini CLI, Antigravity IDE, and Kiro. The installer automatically configures these agents through their MCP server interfaces. Other agents can use the CLI tools directly.
CodeGraph supports 25+ languages including TypeScript, JavaScript, Python, Go, Rust, Java, C#, PHP, Ruby, C, C++, Swift, Kotlin, Dart, Svelte, Vue, Astro, and more. Framework-aware routing is supported for 17+ web frameworks including Express, Django, Flask, FastAPI, NestJS, Laravel, Rails, and others.
CodeGraph bridges language boundaries through specialized parsers for mixed-language ecosystems. It recognizes Swift ↔ ObjC bridging, React Native legacy bridges and TurboModules, Fabric view components, Expo modules, and cross-language event channels. This allows tracing call paths across language boundaries that static parsers can't follow.
Yes. CodeGraph runs entirely on your machine with no external services, API calls, or cloud dependencies. All processing happens locally using SQLite. No code, symbols, or queries leave your computer. This ensures maximum privacy and security for your codebase.
CodeGraph uses native OS file watchers (FSEvents on macOS, inotify on Linux, ReadDirectoryChangesW on Windows) to detect file changes. Changes are debounced (default 2 seconds) and incrementally synced to the graph. The MCP server provides staleness indicators during sync, and projects are reconciled on connection start. This ensures the index is always current without manual intervention.
CodeGraph runs on Windows (x64/arm64), macOS (x64/arm64), and Linux (x64/arm64). It requires Node.js 22.5+ for library embedding, but the CLI/MCP server uses a bundled runtime with no Node installation required. The installer provides platform-specific builds that include all dependencies.
Disk usage depends on codebase size. On average, the graph uses about 1-2MB per 1,000 source files. Large projects (10k+ files) typically use 100-300MB. The SQLite database uses efficient compression and indexing to minimize space usage.
This error occurs when you haven't initialized a project. Run codegraph init in your project directory to build the knowledge graph. The init command creates the .codegraph/ directory and indexes your codebase in one step.
First ensure your project is initialized with codegraph init. If connection issues persist, try these steps: 1) Restart your AI assistant, 2) Re-run codegraph install to regenerate configs, 3) For WSL2 issues, set CODEGRAPH_NO_DAEMON=1 in your environment, 4) Check that the project path in MCP config is correct.
Indexing speed depends on codebase size and complexity. For large projects, ensure node_modules and build directories are excluded (they are by default). Use --quiet flag to reduce output overhead. If indexing is abnormally slow, check for large generated files that might need exclusion via .gitignore.
CodeGraph is licensed under the MIT License. You're free to use, modify, and distribute the software for any purpose, including commercial applications. See the LICENSE file for full terms.
Contributions are welcome! You can contribute by: 1) Reporting bugs in the issue tracker, 2) Suggesting new features, 3) Submitting pull requests for bug fixes or enhancements, 4) Adding support for new languages or frameworks. Please read the contributing guidelines first.
For technical support: 1) Check the GitHub issues for existing solutions, 2) Create a new issue with detailed reproduction steps, 3) Join our discussions forum for community help. For business inquiries, contact us at support@getcodegraph.com.
Check out our comprehensive documentation or reach out to our support team