New advertisers: 50% off your first month with code FIRSTMONTHSee slots
yoanbernabeu avatar

Grepai Trace Callers

Find every caller of a function with GrepAI's regex-based call tracing, with JSON and TOON output.

skills.sh installs
818
GitHub stars
20
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers grepai trace callers for listing each call site, its file, line, enclosing function, and surrounding context
  • Includes --json, --json --compact, and --toon output formats, plus a jq filter for narrowing large result sets
  • Uses the fast regex extractor only; --mode precise is deprecated, and dynamic calls like callbacks and reflection are missed
  • Supports 17 language families configured through trace.enabled_languages in .grepai/config.yaml, for impact analysis before refactoring

Install

$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-trace-callers -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

GrepAI Trace Callers

This skill covers using grepai trace callers to find all code locations that call a specific function or method.

When to Use This Skill

  • Finding all usages of a function before refactoring
  • Understanding function dependencies
  • Impact analysis before changes
  • Code navigation and exploration

What is Trace Callers?

grepai trace callers answers: "Who calls this function?"

func Login(user, pass) {...}
        ↑
        │
┌───────┴───────────────────┐
│   Who calls Login()?      │
├───────────────────────────┤
│ • HandleAuth (auth.go:42) │
│ • TestLogin (test.go:15)  │
│ • CLI (main.go:88)        │
└───────────────────────────┘

Basic Usage

grepai trace callers "FunctionName"

Example

grepai trace callers "Login"

Output:

🔍 Callers of "Login"

Found 3 callers:

1. HandleAuth
   File: handlers/auth.go:42
   Context: user.Login(ctx, credentials)

2. TestLoginSuccess
   File: handlers/auth_test.go:15
   Context: result := Login(testUser, testPass)

3. RunCLI
   File: cmd/main.go:88
   Context: err := auth.Login(username, password)

JSON Output

For programmatic use:

Details

Repository
github.com/yoanbernabeu/grepai-skills
Categories
Debugging, CLI & Terminal, Code Review & Quality
First seen
May 16, 2026

More from yoanbernabeu/grepai-skills

All 27

Similar to Grepai Trace Callers

More Debugging