CodeGraph gives coding agents a persistent code knowledge graph via MCP

techNmak · x · 2026-11-17

A million-token context window still doesn't give Claude Code a map of your codebase — agents read thousands of lines yet burn dozens of tool calls figuring out call structure and blast radius.

The open-source CodeGraph project takes a different approach: a Rust-powered parser with tree-sitter builds a persistent knowledge graph of the repo, indexing functions, classes, imports, calls, inheritance, and dependencies into a local SQLite database. Coding agents like Claude Code, Codex, and Cursor query the graph through MCP, retrieving relevant source, tracing call paths, and checking downstream effects without repeatedly searching files. It runs 100% locally, is MIT-licensed (v1.6.2), supports Windows/macOS/Linux, and claims compatibility with a long list of tools including Cursor, GitHub Copilot, Gemini, Kiro, and Windsurf.

Original post →

More from coding & agent

coding & agent channel →