TL;DR
CodeGraph builds a local SQLite index of your codebase so Claude Code, Cursor, and Codex CLI spend far fewer tokens exploring files - trending on GitHub with 12k stars and real benchmark numbers.
Read next
CodeGraph hit 7,800+ stars with 1,900 added in a single day - a local MCP knowledge graph that lets Claude Code explore codebases with drastically fewer API calls.
6 min readzilliztech/claude-context is an MCP server that indexes your entire codebase with hybrid vector search, letting Claude Code find relevant code without loading whole directories. It hit 8.8k stars and is trending on both daily and weekly GitHub charts.
6 min readzilliztech/claude-context landed on GitHub's daily trending list with 873 new stars today - here's what this Claude Code MCP actually does and whether it's worth the setup.
5 min readIf you use Claude Code or Cursor on a large project, you have probably watched an agent burn through thousands of tokens doing nothing but grep-ing for a function name or find-ing an import path. That redundant file scanning is invisible overhead - you pay for it on every task, every session, every day.
CodeGraph, created by Colby McHenry, addresses this directly. It appeared on GitHub's daily trending list today and has been on the weekly chart all week, sitting at roughly 12,000 stars. The repo describes itself as "pre-indexed code knowledge graph for Claude Code, Codex, Cursor, and OpenCode - fewer tokens, fewer tool calls, 100% local." Those are marketing-friendly words, but the project backs them up with benchmark numbers across seven real-world open-source codebases, which is unusual enough to be worth a close look.
At its core, CodeGraph parses your project with tree-sitter, builds an abstract syntax tree for every file, and stores the resulting symbol graph in a local SQLite database at .codegraph/codegraph.db. The database tracks functions, classes, imports, call sites, and inheritance relationships. A full-text search layer via SQLite's FTS5 extension sits on top.
When an AI agent needs to understand your codebase - say, "find every caller of UserService.authenticate" - instead of dispatching a chain of shell tools, it queries the SQLite graph directly through a set of MCP tools that CodeGraph exposes. The graph already knows the answers.
The four-stage pipeline is:
CodeGraph supports 19 languages (TypeScript, JavaScript, Python, Go, Rust, Java, C#, PHP, Ruby, C, C++, Swift, Kotlin, Scala, Dart, Svelte, Vue, Liquid, and Pascal/Delphi) and is framework-aware for 13 routing systems including Django, FastAPI, Express, NestJS, Rails, and Spring.
The MCP server exposes seven tools: codegraph_search, codegraph_context, codegraph_callers, codegraph_callees, codegraph_impact, codegraph_node, and codegraph_files. These replace most of the exploratory grep/find/read chains that inflate agent costs.
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools - delivered free every week.
From the archive
May 20, 2026 • 7 min read
May 19, 2026 • 8 min read
May 19, 2026 • 6 min read
May 18, 2026 • 5 min read
The fastest path is the interactive installer, which auto-configures whichever agent you use:
npx @colbymchenry/codegraph
That command detects Claude Code, Cursor, Codex CLI, and opencode and writes the MCP configuration for you. If you prefer a global install:
npm install -g @colbymchenry/codegraphThen initialize your project:
cd your-project
codegraph init -i
The -i flag runs interactive mode and lets you pick languages and exclusion patterns. After init, the first codegraph index pass builds the full graph. Subsequent syncs are incremental. Check the status with:
codegraph status
For Claude Code specifically, the installer writes to your .claude/mcp.json so the seven graph tools are available immediately in your next session. You can also drive the graph from Node.js directly - the library API exposes init, indexAll, searchNodes, getCallers, buildContext, and watch.
Developers on large TypeScript or Python monorepos get the biggest return. The VS Code benchmark (10,000+ files) showed 73% fewer tokens and 72% fewer tool calls versus unassisted Claude Code. At that scale, the graph pays for its own initialization time within the first few agent tasks.
Teams with tight AI API budgets benefit from the 35% average cost reduction across the seven tested codebases. On a project where Claude Code runs dozens of tasks per day, that compounds fast.
Rust and Go developers see even steeper savings - the Tokio (Rust, ~700 files) benchmark showed 52% cheaper and 81% fewer tokens, likely because the call graph is denser and harder for an agent to reconstruct from scratch on each query.
Developers who care about data privacy will appreciate that the entire system is local. No telemetry, no cloud upload, no API key. The SQLite file stays on your machine.
Less useful for: small projects under a few hundred files (the overhead of initialization may outweigh the savings), or projects with a single dominant language that agents already handle efficiently with their built-in file tools.
DevDigest has covered the MCP ecosystem extensively. CodeGraph is a clean example of the pattern where a local MCP server - rather than a hosted API - augments an agent's native capabilities without adding network latency or privacy risk.
If you use the Claude Code skills and hooks documented at clis.developersdigest.tech, CodeGraph slots in naturally alongside them. The MCP tools it exposes (codegraph_impact, codegraph_context) are particularly useful in pre-task hooks that gather codebase context before an agent begins work - a pattern that reduces hallucinated file paths and phantom function names.
The project also connects to the broader "agent-native tooling" category: rather than wrapping an existing GUI tool in a shim, it was designed from the start for agents as the primary consumer. The CLI commands exist for humans, but the MCP server is the first-class interface.
The benchmark numbers are credible because they come from real open-source projects with known file counts and are reproducible. The methodology is not fully peer-reviewed, but the author published per-project breakdowns rather than cherry-picking a best case.
Genuine strengths: zero-dependency local setup, broad language support, framework-aware routing, and an MIT license with no usage restrictions.
Real limitations worth knowing before you adopt it:
better-sqlite3) are optional. Without them, a WASM fallback activates that runs 5-10x slower and can cause database locks during concurrent indexing and MCP queries.maxFileSize).If you are already running Claude Code on a mid-to-large project and paying real token costs, CodeGraph is a low-risk experiment. The npx path takes under two minutes to evaluate, and the graph stays local if you decide not to keep it.
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Anthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolInteractive TUI dashboard that shows exactly where your Claude Code and Cursor tokens are going, in real time.
View ToolAnthropic's flagship reasoning model. Best-in-class for coding, long-context analysis, and agentic workflows. 1M token c...
View ToolOpenAI's coding agent for terminal, cloud, IDE, GitHub, Slack, and Linear workflows. Reads repos, edits files, runs comm...
View ToolEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppTurn a one-liner into a working Claude Code skill. From idea to installed in a minute.
View AppDesign subagents visually instead of editing YAML by hand.
View AppConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsDeep comparison of the top AI agent frameworks - LangGraph, CrewAI, Mastra, CopilotKit, AutoGen, and Claude Code.
AI AgentsConfigure model, tools, MCP, skills, memory, and scoping.
Claude Code
Nimbalyst Demo: A Visual Workspace for Codex + Claude Code with Kanban, Plans, and AI Commits Try it: https://nimbalyst.com/ Star Repo Here: https://github.com/Nimbalyst/nimbalyst This video demos N...

Composio: Connect AI Agents to 1,000+ Apps via CLI (Gmail, Google Docs/Sheets, Hacker News Workflows) Check out Composio here: http://dashboard.composio.dev/?utm_source=Youtube&utm_channel=0426&utm_...

Anthropic has released Channels for Claude Code, enabling external events (CI alerts, production errors, PR comments, Discord/Telegram messages, webhooks, cron jobs, logs, and monitoring signals) to b...
CodeGraph hit 7,800+ stars with 1,900 added in a single day - a local MCP knowledge graph that lets Claude Code explore...
agentmemory is a self-hosted MCP server that gives Claude Code, Cursor, and Gemini CLI searchable long-term memory acros...
agentmemory gives AI coding agents a persistent brain - capturing session context automatically via 12 Claude Code hooks...
Ruflo crossed 37,700 GitHub stars this week, adding nearly 1,900 in a single day. It turns Claude Code into a coordinate...
zilliztech/claude-context is an MCP server that indexes your entire codebase with hybrid vector search, letting Claude C...
zilliztech/claude-context landed on GitHub's daily trending list with 873 new stars today - here's what this Claude Code...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.