pi-codegraph-extension
CodeGraph MCP tools for the Pi Coding Agent — semantic code search, impact analysis, call graphs, and deep exploration.
Package details
Install pi-codegraph-extension from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-codegraph-extension- Package
pi-codegraph-extension- Version
0.1.1- Published
- Jun 5, 2026
- Downloads
- 40/mo · 0/wk
- Author
- gripebomb
- License
- MIT
- Types
- extension
- Size
- 52.1 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./dist/codegraph.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-codegraph
CodeGraph MCP tools for the original Pi Coding Agent.
This package targets:
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
It does not target the Oh My Pi package import:
import type { ExtensionAPI } from "@oh-my-pi/pi-coding-agent";
Install
pi install npm:pi-codegraph-extension
Or copy the extension file manually into your Pi extension directory.
Requirements
Install CodeGraph globally:
npm install -g @colbymchenry/codegraph
Or install it in the project you want to inspect:
npm install -D @colbymchenry/codegraph
Initialize the project index:
cd /path/to/project
codegraph init -i
codegraph status
Then launch Pi from the same shell so it inherits your PATH.
Optional environment overrides
export CODEGRAPH_COMMAND=codegraph
export CODEGRAPH_ARGS="serve --mcp"
export CODEGRAPH_TIMEOUT_MS=30000
Tools
codegraph_statuscodegraph_filescodegraph_searchcodegraph_contextcodegraph_callerscodegraph_calleescodegraph_impactcodegraph_nodecodegraph_explore
Notes
For codegraph_files, pass a repo-relative path filter such as:
src
src/components
app
Do not pass the full project root as path. Use projectPath for the root project directory.