Pi Codegraph — Development skill for Claude Code
Pi-agent wrapper around codebase-memory-mcp: derived code knowledge (call graphs, blast radius) over a harness-owned trust boundary.
How to install Pi Codegraph
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open renezander030/pi-codegraph and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pi Codegraph does
Pi-agent wrapper around codebase-memory-mcp: derived code knowledge (call graphs, blast radius) over a harness-owned trust boundary.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- Icpg Impact — /icpg-impact — Show Blast Radius 705 ★
- Grok Files — List, prune, or gc Grok (xAI) uploaded files 135 ★
README
pi-codegraph
**A trusted Pi-side wrapper around [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp).** It gives an agent *derived* knowledge — call graphs, blast radius, architecture — extracted from your code, so it stops re-greping the same repo every session. The companion to [pi-okf](https://github.com/renezander030/pi-okf) (which carries *authored* knowledge) and a sibling of [pi-gate](https://github.com/renezander030/pi-gate).
codebase-memory-mcp parses a repo into a persistent knowledge graph (tree-sitter, 158 languages) and exposes ~14 MCP tools. `pi-codegraph` is the deterministic, agent-first front end: it resolves and speaks MCP to that binary, normalizes the results to JSON (or a `-H` table), and puts a harness-owned trust boundary in front of it.
`pi-recall` is the standalone Pi extension that can use `pi-codegraph` as its first recall backend. Keep the boundary clear: `pi-codegraph` owns the trusted derived-codegraph wrapper; `pi-recall` owns the Pi slash commands and model-callable recall tool.
Why a wrapper
Some knowledge an agent needs is already in the code: who calls a function, what a diff breaks, where the dead code is. No graph tool should be trusted blindly with your repo, and an agent should not be re-launching a third-party server with ad-hoc flags. `pi-codegraph` pins the binary, gates which repos it runs against, and gives the agent one stable, scriptable surface.
Install
Requires **Node ≥ 18**. The wrapped engine is separate:
git clone https://github.com/renezander030/pi-codegraph
ln -s "$PWD/pi-codegraph/pi-codegraph" /usr/local/bin/pi-codegraph
# install the engine (see its repo), then point pi-codegraph at it:
pi-codegraph config-bin /path/to/codebase-memory-mcp # or set PI_CODEGRAPH_BIN
pi-codegraph doctor # confirm it's found
Quick start
pi-codegraph doctor # is the engine installed?
pi-codegraph trust --repo . --label
Related Skills
Codebase Graph
Code intelligence MCP server — 42-language tree-sitter AST parsing, FalkorDB knowledge graphs, 0.944 MRR searc
Clawctl
Drive openclaw via the clawctl wrapper. Read-only by default, JSON-first, traceparent on every call, secrets r
Skill S17 Blast Radius Classifier
SKILL_S17: blast-radius-classifier
Analyze Field Impact
/analyze-field-impact — Score the blast radius of renaming or deleting a field
Drupal Blast Radius
Analyze dependencies and blast radius for a feature or module
Blast Radius
Show everything that depends on a symbol (class / function / method) — run before renaming, deleting, or movin
Related Agents
Verifier Impact
Calibrates the authentic blast radius, privilege boundary violation, and CVSS vector.
MCP Safety Reviewer
Reviews MCP tool designs for blast radius, three-mode design (read_only/draft_only/approved_execute), refusal
Blast Radius Mapper
Invoked by /scout Step 4 (as "Agent B — Call-Site & Blast Radius") to map every caller and dependent of suspec