CodePlumb indexes your repository into a graph of workspaces, files, functions and the calls between them. Your coding agent uses it to find code that already exists before writing a new copy, and you can browse it in a local web app.
It works with Claude Code, Antigravity, Grok Build, Gemini CLI, Codex CLI, Cursor, Windsurf, GitHub Copilot and OpenCode. It reads TypeScript, Go, Java, Python, C#, Rust and Clojure.
CodePlumb is in early development.
- What it does
- Installation
- Skills
- Explorer
- Command line
- Languages
- Pull request comment
- Teams
- Privacy
- Status
- Contributing
- When the agent finishes a turn, CodePlumb checks the new code. If a function copies one that already exists, or an import isn't declared in
package.json, the agent gets a short note saying what to import instead. - The agent can search the code by name or by what it does, and look up callers, callees and the blast radius of a change.
- A local browser app shows a project map, caller graphs, duplicated code, and a review of any branch or pull request.
- A GitHub Action posts each pull request's blast radius and the duplicates it adds.
Everything runs on your machine. Indexing makes no model calls and needs no API key.
You need Node 26. Install CodePlumb once for each harness you use.
Claude Code
/plugin marketplace add jbknick/codeplumb
/plugin install codeplumb@codeplumb
/reload-plugins
Then run /codeplumb:init in a git repository. The first session installs SQLite and the parsers with your Node's npm (details).
To update:
claude plugin marketplace update codeplumb
claude plugin update codeplumb@codeplumbRestart Claude Code afterwards. Update in place, because uninstalling deletes every index.
Antigravity
Build from a clone, then register the clone in .agents/plugins.json (workspace) or ~/.gemini/config/plugins.json (global):
{
"entries": [{ "path": "/absolute/path/to/codeplumb", "include_only": ["plugin"] }]
}You can also copy or symlink plugin/ into .agents/plugins/codeplumb/ or ~/.gemini/config/plugins/codeplumb/. Antigravity loads the MCP server, the hooks, the skills and rules/AGENTS.md.
Grok Build
grok plugin marketplace add jbknick/codeplumbOr build from a clone and add only the MCP server:
grok mcp add codeplumb -- node /absolute/path/to/codeplumb/plugin/dist/mcp.jsTrust the plugin when prompted so its tools load.
Gemini CLI
Build from a clone. plugin/gemini-extension.json packages the MCP server and rules/AGENTS.md as an extension. Or add the server to .gemini/settings.json:
{
"mcpServers": {
"codeplumb": {
"command": "node",
"args": ["/absolute/path/to/codeplumb/plugin/dist/mcp.js"]
}
}
}Codex CLI
Build from a clone, then:
codex mcp add codeplumb -- node /absolute/path/to/codeplumb/plugin/dist/mcp.jsCursor and Windsurf
Build from a clone, then add this to .cursor/mcp.json (Cursor) or ~/.codeium/windsurf/mcp_config.json (Windsurf):
{
"mcpServers": {
"codeplumb": {
"command": "node",
"args": ["/absolute/path/to/codeplumb/plugin/dist/mcp.js"]
}
}
}GitHub Copilot (VS Code)
Build from a clone, then add this to .vscode/mcp.json:
{
"servers": {
"codeplumb": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/codeplumb/plugin/dist/mcp.js"]
}
}
}OpenCode
Build from a clone, then add this to opencode.json:
{
"mcp": {
"codeplumb": {
"type": "local",
"command": ["node", "/absolute/path/to/codeplumb/plugin/dist/mcp.js"]
}
}
}Needs Node 26 and pnpm 10.31.0.
git clone https://github.com/jbknick/codeplumb.git
cd codeplumb
pnpm install && pnpm buildThe reuse-guard hooks run inside Claude Code and Antigravity. In the other harnesses, install the git hooks to get the same checks at commit time:
<clone>/plugin/bin/codeplumb init
<clone>/plugin/bin/codeplumb hooks installdocs/INSTALL.md covers running the plugin from a clone and where the index is stored.
| Skill | What it does |
|---|---|
/codeplumb:init |
Index the repo and start background agents that describe functions |
/codeplumb:sync |
Describe whatever is still undescribed |
/codeplumb:explain <target> |
Explain a function, file or folder in under 200 words |
/codeplumb:overview <ws|dir> |
Write or show a cached overview of a workspace or folder |
/codeplumb:map [view] |
Open the explorer |
/codeplumb:review <base>...<head> |
Review a branch or pull request by its blast radius |
reuse-first |
Runs on its own: checks for an existing function before writing one |
The MCP server gives the agent tools to search, browse, trace a page to its database tables, and check the impact of a change.
Run /codeplumb:map, or codeplumb map in a terminal. It serves on 127.0.0.1 with a per-run token.
There are also views for endpoints, page-to-API, API-to-tables and table usage (TanStack Router, oRPC, Hono, Drizzle, or any stack described by a recipe), plus a team layer. You can rename, hide and group nodes and save views.
More screenshots (dark mode, zoomed files, team layer, animated tour)
From a clone, run node <clone>/plugin/dist/cli.js <command>. Each command has --help.
| Command | What it does |
|---|---|
init |
Index the repo |
index, heal |
Re-index, or catch up to HEAD |
embed |
Compute local embeddings for finding rewritten copies |
search <q> |
Search by name or meaning |
node <target> |
Show a function or file and its neighbors |
trace <target> |
Follow a page to its endpoints and tables, or the reverse |
review <base>...<head> |
Show what a branch changed and its blast radius |
duplicates |
List duplicated code |
map |
Start the explorer |
recipe check |
Validate .codeplumb/recipe.json |
describe, backlog, usage |
Function descriptions and model usage |
hooks install, uninstall |
Add or remove git hooks; remove the index |
team ..., upload, changes |
Team server commands (see Teams) |
config get, config set |
Read or change settings |
The index is stored outside your repo. CodePlumb writes nothing into your working tree except git hooks, and only when you run hooks install.
Several repos in one index
List related repos in a codeplumb-workspace.json in a folder above them:
{
"repos": [{ "path": "./web" }, { "path": "./api", "repo": "acme/api" }]
}Run init in any of them. Search, duplicates and trace then work across repos.
Precise mode (SCIP)
codeplumb index --scip <file> takes call and type edges from a SCIP index you built with your own indexer, instead of inferring them. Off by default.
Files are read from their syntax, so no compiler or build tool is needed.
| Language | Call edges | Measured |
|---|---|---|
| TypeScript | Own indexer | Imports and parsing |
| Go | Declared types | Not yet for the current resolver |
| Java | Declared types | Recall below bar on one of two repos (proof) |
| Python | Declared types and assignments | Precision met, recall below bar (proof) |
| C#, Rust | Declared types | Not measured |
| Clojure | Namespaces and names | Against clj-kondo (proof) |
Add the GitHub Action to your repo and every pull request gets one comment with its risk, the code it changes, what uses that code, and the duplicates it adds. The comment updates in place on each push.
name: codeplumb
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: jbknick/codeplumb/action@v<version>
with:
version: "<version>"
sha256: "<checksum from codeplumb-<version>.tgz.sha256>"The Action never fails your build because of a CodePlumb error. See action/README.md for inputs and options.
If your team runs a CodePlumb server, connect a checkout with codeplumb team login and codeplumb team link. Teammates then share function descriptions, saved views and group boundaries, and the explorer shows everyone's open pull requests and where they collide. Nothing is uploaded until you run codeplumb upload or configure the Action to do it.
- Indexing and the explorer run locally and make no model calls.
- Files like
.env*,*.pem,*.keyandcredentials*are never read. - The explorer listens only on
127.0.0.1and needs its per-run token. - Hooks fail open and never block an edit, commit or push.
- Uploads to a team server carry names, paths, hashes and edges. Function bodies, signatures, comments and file contents are never sent. Model-written descriptions go only with
upload --descriptions.codeplumb upload --dry-runprints exactly what would go.
| Area | State |
|---|---|
| Index, search, reuse guard, MCP server | Done |
| Explorer (project map, caller graph, duplicates, review) | Done |
| Page to API to table (TanStack, Hono, oRPC, Drizzle) | Done |
| Recipes for other stacks | In progress |
| Multi-repo workspaces | Done |
| Go, Java, Python, C#, Rust, Clojure | Done; Java and Python below some bars |
| Pull request comment, team server features | Done |
| V2 release | In progress |
Details are on the milestones page.
See CONTRIBUTING.md. Contracts live in docs/SPEC.md. Report security issues as described in SECURITY.md.
pnpm install && pnpm build
pnpm check








