CodeGraph
CodeGraph is an independent project under the MIT license, created and maintained by Colby McHenry. It is not part of maestria.
What It Is
Section titled “What It Is”CodeGraph is a local-first code intelligence tool. It parses your codebase into a queryable SQLite knowledge graph, and the index auto-syncs via a file watcher as you edit.
Indexing and queries run locally and need no API keys. By default CodeGraph sends anonymous usage statistics; turn them off with codegraph telemetry off. CodeGraph exposes an MCP server with a codegraph_explore tool that agents query instead of running grep or read loops. One call returns the verbatim source of relevant symbols, the call path among them, and a blast-radius summary.
It supports 20+ languages including TypeScript, JavaScript, Python, Go, Rust, Java, and C#.
Why Use It Alongside maestria
Section titled “Why Use It Alongside maestria”A single codegraph_explore call can stand in for a series of grep and read operations during reconnaissance; CodeGraph publishes its own benchmark of the tool-call and token savings. maestria supplies the workflow; CodeGraph handles codebase access within it.
Installation
Section titled “Installation”Three options:
- npm global install:
npm install -g @colbymchenry/codegraph@latest - Run without install:
Terminal window npx @colbymchenry/codegraph@latestTerminal window yarn dlx @colbymchenry/codegraph@latestTerminal window pnpx @colbymchenry/codegraph@latestTerminal window bunx @colbymchenry/codegraph@latestTerminal window deno x @colbymchenry/codegraph@latestTerminal window nlx @colbymchenry/codegraph@latest - Install script:
install.sh(macOS and Linux) orinstall.ps1(Windows), as shown in the GitHub README
Quick Start
Section titled “Quick Start”Run codegraph init in your project root. Once indexed, agents can query CodeGraph via its MCP server.