/codebase-index:call-graphfrom Codebase Index
Traces function dependencies in the call graph, showing callers, callees, or paths between functions.
Ships in Codebase Index. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Trace function dependencies using the call_graph and call_graph_path tools.
User input: $ARGUMENTS
Interpret input as follows:
call_graph_path.direction="callers" unless input asks for callees/calls/makes calls.name=<function> or plain text function name sets name.filePath=<path> only when duplicate names are reported.symbolId=<id> remains an optional backward-compatible escape hatch.from=<function>, to=<function>, and optional maxDepth=<number>.Execution flow:
call_graph_path with { from, to, maxDepth? }.callers, call call_graph with { name, direction: "callers" }.callees, call call_graph with { name, direction: "callees" }.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 symbolsIf output says no callers found, suggest running /index force first.
7-day visitors to each command page
10 commands in this plugin
/definitionFind where a symbol is defined in the codebase/findFind code using hybrid approach (semantic + grep)/indexIndex the codebase for semantic search/peekQuickly find likely code locations without returning full code/pr-impactPr ImpactAnalyze PR or branch impact using the call graph/reindexFully rebuild the codebase index from scratchnpx claudepluginhub helweg/open-codebase-index --plugin codebase-indexOther plugins' commands for the same job