# grepai trace

> CLI reference for grepai trace

## grepai trace

Trace symbol callers and callees

### Synopsis

Trace command helps you understand code dependencies by finding:
- callers: functions that call the specified symbol
- callees: functions that the specified symbol calls
- graph: full call graph visualization

Examples:
  grepai trace callers "Login"
  grepai trace callees "HandleRequest" --mode precise
  grepai trace graph "ProcessOrder" --depth 3 --json

### Options

```
  -h, --help   help for trace
```

### SEE ALSO

* [grepai](/grepai/commands/grepai/)	 - Semantic code search CLI
* [grepai trace callees](/grepai/commands/grepai_trace_callees/)	 - Find all functions called by the specified symbol
* [grepai trace callers](/grepai/commands/grepai_trace_callers/)	 - Find all functions that call the specified symbol
* [grepai trace graph](/grepai/commands/grepai_trace_graph/)	 - Build a call graph around the specified symbol

###### Auto generated by spf13/cobra on 30-Oct-2026
