/call-graph
Trace callers, callees, or paths using the call graph
> /plugin marketplace add Helweg/open-codebase-index> /plugin install codebase-index@helweg-plugins
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.
More commands from other plugins.
build
CommandImplement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

