Skip to content

Navigation

Tools for moving through the graph — upstream, downstream, sideways.

Who calls this function?

code_callers(name="UserService.findById")
code_callers(name="processPayment", compact=true)

compact=true returns signatures only — ~70% fewer tokens when you just need names.


What does this function call?

code_callees(name="OrderService.checkout")

Callers + callees in one call. The most efficient way to understand a symbol’s place in the graph.

code_context(name="AuthMiddleware")
code_context(name="UserService", compact=true)

Everything connected to a symbol: callers, callees, sibling methods, linked knowledge notes.

code_related(name="UserService")

Good starting point when exploring an unfamiliar module — shows the full neighborhood.


Follow the call chain from a symbol, up or down.

code_trace(name="OrderService.checkout", direction="down", depth=5)
code_trace(name="processPayment", direction="up")
ParamTypeDefaultDescription
direction"up" | "down""down"Follow callees or callers
depthnumber5Max hops

Who imports this module?

code_imports(name="auth.ts")
code_imports(name="UserService")

Useful before moving or renaming a module — see every file that would break.