Skip to content

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")

SEE ALSO

Auto generated by spf13/cobra on 16-Jan-2026