AI product Open source · MIT

CodeGraph

CodeGraph is a local code-intelligence tool for AI coding agents, distributed as a CLI, MCP server, and embeddable npm library by Colby McHenry. It parses source code into a SQLite knowledge graph of symbols, files, calls, imports, inheritance, dependencies, framework routes, and cross-language bridges, then resolves references and provides full-text search, source context, call paths, callers, callees, impact analysis, and affected-test discovery. Its primary MCP operation, codegraph_explore, returns relevant verbatim source together with relationships and blast-radius information so agents can query structure without file-by-file exploration.

View repository Visit site

Overview

A native Rust parsing kernel supports more than 20 languages, with a portable fallback for unsupported platforms or files that fail native parsing. A native file watcher incrementally updates the local graph after changes, while connect-time reconciliation catches edits made between agent sessions. The tool installs and configures MCP integrations for agents including Claude Code, Cursor, Codex CLI, OpenCode, Gemini CLI, and GitHub Copilot; projects are initialized with codegraph init and stored locally under .codegraph. The repository states that the software is MIT-licensed and that telemetry can be disabled.