/call-graph
Trace callers, callees, or paths using the call graph
> /plugin marketplace add Helweg/open-codebase-index > /plugin install codebase-index@helweg-plugins
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/call-graph
Context preview
What this command does when you run it.
Trace callers, callees, or paths using the call graph
Command definition
call-graph.mddescription: Trace callers, callees, or paths using the call graph
Trace function dependencies using the `call_graph` and `call_graph_path` tools.
User input: $ARGUMENTS
Interpret input as follows:
- If input asks for a path, connection, route, chain, or "from X to Y", use `call_graph_path`.
- Default to `direction="callers"` unless input asks for callees/calls/makes calls.
- `name=<function>` or plain text function name sets `name`.
- Unique names resolve automatically for both directions. Use optional `filePath=<path>` only when duplicate names are reported.
- `symbolId=<id>` remains an optional backward-compatible escape hatch.
- For path queries, parse `from=<function>`, `to=<function>`, and optional `maxDepth=<number>`.
Execution flow: 1. If input asks for a path and has source/target names, call `call_graph_path` with `{ from, to, maxDepth? }`. 2. If direction is `callers`, call `call_graph` with `{ name, direction: "callers" }`. 3. If direction is `callees`, call `call_graph` with `{ name, direction: "callees" }`. 4. If the tool reports duplicate names, retry with the suggested `filePath`; for paths use `fromFilePath` or `toFilePath`.
Examples:
- `/call-graph Database` → callers for `Database`
- `/call-graph callers name=Indexer` → callers for `Indexer`
- `/call-graph callees name=Database filePath=src/database.ts` → callees for a duplicate name at that location
- `/call-graph path from=createOrder to=chargeCard` → shortest known path between the two symbols
If output says no callers found, suggest running `/index force` first.
Read more
description: Trace callers, callees, or paths using the call graph
Trace function dependencies using the `call_graph` and `call_graph_path` tools.
User input: $ARGUMENTS
Interpret input as follows:
- If input asks for a path, connection, route, chain, or "from X to Y", use `call_graph_path`.
- Default to `direction="callers"` unless input asks for callees/calls/makes calls.
- `name=<function>` or plain text function name sets `name`.
- Unique names resolve automatically for both directions. Use optional `filePath=<path>` only when duplicate names are reported.
- `symbolId=<id>` remains an optional backward-compatible escape hatch.
- For path queries, parse `from=<function>`, `to=<function>`, and optional `maxDepth=<number>`.
Execution flow: 1. If input asks for a path and has source/target names, call `call_graph_path` with `{ from, to, maxDepth? }`. 2. If direction is `callers`, call `call_graph` with `{ name, direction: "callers" }`. 3. If direction is `callees`, call `call_graph` with `{ name, direction: "callees" }`. 4. If the tool reports duplicate names, retry with the suggested `filePath`; for paths use `fromFilePath` or `toFilePath`.
Examples:
- `/call-graph Database` → callers for `Database`
- `/call-graph callers name=Indexer` → callers for `Indexer`
- `/call-graph callees name=Database filePath=src/database.ts` → callees for a duplicate name at that location
- `/call-graph path from=createOrder to=chargeCard` → shortest known path between the two symbols
If output says no callers found, suggest running `/index force` first.
Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths. open-codebase-index is a local semantic code index for OpenCode, Jcode, Pi, Codex, Claude Code, and other MCP clients.
Repo: Helweg/open-codebase-index
Other commands on codebase-index.
- /definition
Find where a symbol is defined in the codebase
Open command - /find
Find code using hybrid approach (semantic + grep)
Open command - /peek
Quickly find likely code locations without returning full code
Open command - /pr-impact
Analyze PR or branch impact using the call graph
Open command - /reindex
Fully rebuild the codebase index from scratch
Open command - /search
Search codebase by meaning using semantic search
Open command

