Supercharge AI Code Assistants with Semantic Intelligence

Pre-indexed code knowledge graph for Claude Code, Cursor, Codex, and OpenCode

94% fewer tool calls
77% faster exploration
100% local

The Problem: Inefficient Code Exploration

When AI assistants explore codebases, they spawn expensive Explore agents that scan files with grep, glob, and Read β€” consuming tokens on every tool call.

Discovery takes minutes before the assistant can even start analyzing relevant code.

Large codebases require hundreds of API calls and thousands of tokens just to understand basic structure.

The Solution: Semantic Code Intelligence

CodeGraph builds a pre-indexed knowledge graph of symbol relationships, call graphs, and code structure.

Agents query the graph instantly instead of scanning files β€” one tool call returns complete context.

100% local processing β€” no data leaves your machine, no API keys required.

Trusted by Developers Worldwide

8,617
GitHub Stars
542
Forks
70
Open Issues
26
Subscribers
TypeScript MIT License Node.js 18+ Cross-platform

Powerful Features for Smarter Development

Smart Context Building

One tool call returns entry points, related symbols, and code snippets β€” no expensive exploration agents needed.

Full-Text Search

Find code by name instantly across your entire codebase, powered by FTS5 for lightning-fast results.

Impact Analysis

Trace callers, callees, and the full impact radius of any symbol before making changes.

Always Fresh

File watcher uses native OS events with debounced auto-sync β€” the graph stays current as you code.

19+ Languages

TypeScript, JavaScript, Python, Go, Rust, Java, C#, PHP, Ruby, C, C++, Swift, Kotlin, Dart, and more.

100% Local

No data leaves your machine. No API keys. No external services. SQLite database only.

Benchmark Results: Dramatic Performance Improvements

92%
fewer tool calls
71%
faster exploration
6Γ—
more efficient
Codebase With CodeGraph Without CodeGraph 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

Framework-Aware Routes

CodeGraph detects web-framework routing files and emits route nodes linked to their handlers

Django Flask FastAPI Express Laravel Rails Spring Gin chi gorilla mux Axum actix Rocket ASP.NET Vapor React Router SvelteKit

How CodeGraph Works

1

Extraction

tree-sitter parses source code into ASTs. Language-specific queries extract nodes (functions, classes, methods) and edges (calls, imports, extends).

2

Storage

Everything goes into a local SQLite database with FTS5 full-text search for instant symbol lookup.

3

Resolution

References are resolved: function calls β†’ definitions, imports β†’ source files, class inheritance, and framework-specific patterns.

4

Auto-Sync

File watcher uses native OS events. Changes are debounced and incrementally synced β€” the graph stays fresh as you code.

Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        Claude Code                               β”‚
β”‚                                                                  β”‚
β”‚  "Implement user authentication"                                 β”‚
β”‚           β”‚                                                      β”‚
β”‚           β–Ό                                                      β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚  β”‚  Explore Agent  β”‚ ──── β”‚  Explore Agent  β”‚                   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β”‚           β”‚                        β”‚                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
            β”‚                        β”‚
            β–Ό                        β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     CodeGraph MCP Server                          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”               β”‚
β”‚  β”‚   Search    β”‚  β”‚   Callers   β”‚  β”‚   Context   β”‚               β”‚
β”‚  β”‚  "auth"     β”‚  β”‚  "login()"  β”‚  β”‚  for task   β”‚               β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜               β”‚
β”‚         β”‚                β”‚                β”‚                       β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                       β”‚
β”‚                          β–Ό                                        β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                            β”‚
β”‚              β”‚   SQLite Graph DB     β”‚                            β”‚
β”‚              β”‚   β€’ 387 symbols       β”‚                            β”‚
β”‚              β”‚   β€’ 1,204 edges       β”‚                            β”‚
β”‚              β”‚   β€’ Instant lookups   β”‚                            β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Get Started in 3 Simple Steps

Supercharge your AI code assistants in minutes

1

Run the Installer

bash
npx @colbymchenry/codegraph

The installer will auto-detect your AI assistants (Claude Code, Cursor, Codex CLI, opencode) and configure them.

2

Restart Your Agent

Restart your AI assistant (Claude Code / Cursor / Codex CLI / opencode) for the MCP server to load.

3

Initialize Projects

bash
cd your-project
codegraph init -i

Build the per-project knowledge graph index. That's it β€” your agent will use CodeGraph automatically!

Supported Languages

JavaScript
Python
Java
TypeScript
Go
Rust
C#
PHP
Ruby
C/C++
Swift
Kotlin

Ready to Transform Your Code Experience?

Join thousands of developers who've supercharged their AI assistants with CodeGraph