Skip to content

code_callers

code_callers returns every function in the graph that directly calls the given symbol. The inverse of code_callees.

code_callers(name="UserService.findById")
ParameterTypeDescription
namestringSymbol to look up
compactbooleanReturn signatures only (fewer tokens)
UserService.findById ← 4 callers
ProfileController.get (src/controllers/profile.ts:22)
AuthMiddleware.validate (src/middleware/auth.ts:41)
AdminPanel.userDetail (src/admin/users.ts:87)
user.test.ts (tests/user.test.ts:14)

Always run code_callers before modifying a function. If it has unexpected callers — especially in auth or payment paths — consider running code_impact for a severity-scored view.