grepai trace graph

CLI reference for grepai trace graph

grepai trace graph

Build a call graph around the specified symbol

Synopsis

Build a call graph showing callers and callees around a symbol.

Examples: grepai trace graph “Login” —depth 2 grepai trace graph “HandleRequest” —depth 3 —json

grepai trace graph <symbol> [flags]

Options

  -d, --depth int     Maximum depth for graph traversal (default 2)
  -h, --help          help for graph
      --json          Output results in JSON format
  -m, --mode string   Extraction mode: fast (regex) or precise (tree-sitter) (default "fast")
  -t, --toon          Output results in TOON format (token-efficient for AI agents)

SEE ALSO

Auto generated by spf13/cobra on 6-Feb-2026