Skip to content
Development
Command

/call-graph

Trace callers, callees, or paths using the call graph

From plugin
codebase-index
1629 skills9 commands1 MCP
Install
> /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.md
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.

Read more
Ships withcodebase-index

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.

Get the whole plugin
Stats
170
Stars
31
Forks
Active
Maintenance
TypeScript
Language
MIT
License
4h ago
Last commit
7mo ago
Created

Repo: Helweg/open-codebase-index