codegraph: Pre-indexed code knowledge graph for AI coding agents.
What problem it solves
AI agents often discover codebase structure through repeated grep, glob, and file-reading operations, rebuilding call paths and dependencies manually. This creates unnecessary tool calls and delays before they can answer questions or make changes.
Key features
Pre-indexed semantic code graph — CodeGraph builds a local knowledge graph of symbols, call edges, and dependencies so agents can retrieve relevant source, call paths, and change impact.
Source: README
Automatic index synchronization — The project watcher updates the graph as files are added, modified, or deleted, including while an agent is editing code.
Source: README
Broad agent and editor support — The installer detects supported coding agents and editors and wires the CodeGraph MCP server into each one.
Source: README
Multi-language structural analysis — The project extracts structure and resolves relationships across files in many programming languages into a shared graph.
Source: README
Local-first project indexes — Each project stores its graph in a local `.codegraph/` directory, and the initialization flow creates the directory and builds the index together.
Source: README, src
Quick start
Copied verbatim from the project's README.
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh
# Windows (PowerShell)
irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iexcodegraph installcd your-project
codegraph initWho it may suit
Inference: may suit developers using AI coding agents who want local, automatically synchronized structural context across their codebases. It may also suit teams working in the listed languages and supported agent environments.
Topics to discuss
Which language or framework integrations would provide the greatest value next?
How should CodeGraph represent framework-aware routes and mixed-language boundaries?
What local-first workflows should the CLI and MCP tools support?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/colbymchenry/codegraph#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…