colbymchenry/codegraph
GitHubA 100% local, high-speed semantic code intelligence platform and MCP server that parses 20+ languages to build an offline knowledge graph of symbols, call paths, and dependencies for AI coding agents.
AI coding agents (such as Claude Code, Cursor, Codex, and GitHub Copilot) requiring precise, structural code context and fast call-path resolution without manual file crawling [1, 2]
Consumes a larger persistent footprint in model context windows over multi-turn sessions (about 80% more retrieval context resident than standard file-reading agents) [4]
What matters before you adopt it
The high latency, token consumption, and expensive API fees incurred when AI coding agents perform slow, sequential file-by-file searches (using find/grep/read loops) to reconstruct codebase architecture [17, 24, 25]
Security evidence without the noise
Trust remains a decision signal; CVEs and scanner evidence explain what is driving the risk.
View trust evidence & security findings▼
Architecture from code25 modules · 80 edges▼
Modules and dependency edges extracted from repository code. This is code evidence, not README inference.
Architecture evidence details
flowchart TD
%% @colbymchenry/codegraph — high-level architecture (DRAFT, refine me)
n0["(root) · 2 files"]
n1["__tests__ · tests · 300 files"]
n2["assets · 1 file"]
n3["scripts · scripts · 38 files"]
n4["site · 3 files"]
n5["src · 7 files"]
n6["src/bin · executables · 5 files"]
n7["src/context · 3 files"]
n8["src/db · database layer · 5 files"]
n9["src/extraction · 55 files"]
n10["src/graph · 8 files"]
n11["src/installer · 20 files"]
n12["src/mcp · 23 files"]
n13["src/resolution · 58 files"]
n14["src/search · 4 files"]
n15["src/sync · 5 files"]
n16["src/telemetry · 1 file"]
n17["src/ui · UI layer · 5 files"]
n18["src/ui-server · 34 files"]
n19["src/upgrade · 3 files"]
n20["telemetry-dashboard · 9 files"]
n21["telemetry-worker · 3 files"]
n22["ui · UI layer · 36 files"]
n1 --> n5
n1 --> n6
n1 --> n7
n1 --> n8
n1 --> n9
n1 --> n10
n1 --> n11
n1 --> n12
n1 --> n13
n1 --> n14
n1 --> n15
n1 --> n16
n1 --> n17
n1 --> n18
n1 --> n19
n1 --> n22
n5 --> n7
n5 --> n8
n5 --> n9
n5 --> n10
n5 --> n12
n5 --> n13
n5 --> n14
n5 --> n15
n6 --> n5
n6 --> n8
n6 --> n9
n6 --> n11
n6 --> n12
n6 --> n14
n6 --> n15
n6 --> n16
n6 --> n17
n6 --> n18
n6 --> n19
n7 --> n5
n7 --> n8
n7 --> n9
n7 --> n10
n7 --> n14
n8 --> n5
n8 --> n9
n8 --> n14
n9 --> n5
n9 --> n8
n9 --> n13
n10 --> n5
n10 --> n8
n10 --> n9
n10 --> n12
n10 --> n14
n11 --> n5
n11 --> n15
n11 --> n16
n11 --> n19
n12 --> n5
n12 --> n9
n12 --> n10
n12 --> n13
n12 --> n14
n12 --> n15
n12 --> n16
n12 --> n19
n13 --> n5
n13 --> n8
n13 --> n9
n13 --> n14
n14 --> n5
n15 --> n5
n15 --> n9
n18 --> n5
n18 --> n8
n18 --> n9
n18 --> n10
n18 --> n13
n18 --> n14
n18 --> n15
n19 --> n11
n19 --> n12
n19 --> n17
class n8 data
class n3,n6 infra
class n1 test
class n17,n22 ui
classDef data fill:#59a14f,color:#ffffff,stroke:#46803e
classDef infra fill:#b35c00,color:#ffffff,stroke:#8f4a00
classDef test fill:#499894,color:#ffffff,stroke:#397975
classDef ui fill:#4e79a7,color:#ffffff,stroke:#3a5b80Evidence, security & integrations▼
Adoption guidance▼
How it works & getting started▼
Nearby repositories worth comparing before adoption.
This MCP server transforms how developers interact with codebases by building a persistent knowledge graph that indexes repositories in milliseconds across 155 programming languages. With sub-millisecond query speeds and 99% token reduction, it enables AI coding assistants like Cursor, Claude Code, and Windsurf to understand your entire codebase context without drowning in context windows. Built as a single static binary with zero dependencies, it runs anywhere.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
This project solves the token overhead problem when using Claude Code on large codebases by building a persistent knowledge graph that helps the AI understand only the relevant parts of your code. With impressive metrics like 6.8× fewer tokens on reviews and up to 49× reduction on daily coding tasks, it's a must-have tool for developers working with Claude Code on medium to large-scale projects.