← ClaudeAtlas

cgraphlisted

Use FIRST for any question about THIS codebase's structure, symbols, or relationships — where a function/class/file is defined, what calls or imports it, what breaks if you change it, how two parts connect, or to load focused source context before editing or reviewing. Routes to the cgraph MCP tools (graph_query / graph_explain / graph_impact / graph_path / graph_context), which serve ranked file:line results, node neighborhoods, transitive blast radius, and token-budgeted source bundles from a resident per-project graph daemon in ~10ms — far cheaper than grepping and reading files. Prefer over blind grep/read for code navigation, dependency tracing, and impact analysis.
phnx-labs/agents-cli · ★ 10 · Code & Development · score 75
Install: claude install-skill phnx-labs/agents-cli
# cgraph cgraph keeps a live, queryable graph of the current project — symbols (functions, classes, types, files), their call/import/inheritance/containment edges, and centrality ranking — served by a resident per-project daemon through MCP tools. **Reach for these tools before grepping or reading files** when a question is about code structure or relationships. A graph call is one ~10ms round-trip and returns exactly the file:line (and often the source) you need, instead of many grep/read calls that burn context. ## Setup (one-time — the tools don't exist until this is done) This skill routes to the `cgraph` MCP server. On a cold checkout that server is **not** registered — until it is, the `graph_*` tools below don't exist and you should navigate with grep/read. Registration is a local, per-machine step (the `.mcp.json` it writes is gitignored, not committed), so a fresh clone needs it. 1. **Build cgraph from source** — it's a native C++ engine (CMake + vcpkg, C++20; on Linux `igraph` also needs `gfortran`). Full instructions: <https://github.com/taylor009/CGraph> → *Install & Setup*. This produces `cgraph`, `graphd`, `cgraph-client`, and `cgraph-mcp`. 2. **Register the MCP server** (project-scoped, absolute binary paths): ```sh agents mcp add cgraph -s project -a claude,codex -- \ /abs/path/to/cgraph-mcp --root "$(pwd)" --daemon /abs/path/to/graphd agents mcp register cgraph ``` 3. Restart the agent session so it picks up the server. `graph_s