grepai-trace-callers

grepai-trace-callers is a skill for Claude Code from yoanbernabeu/grepai-skills. It costs 28 tokens per session (2,132 once invoked), scanned A, original, MIT.

A GrepAI command that finds every function or method that calls a named function. A caller is any piece of code that invokes another function.

In plain words
What is it for?
Use it to investigate function usage, explore code dependencies, check the impact of changes, and list callers in human-readable or machine-readable form.
Why use it?
It shows what depends on a function before you change it, making refactoring and impact checks easier. Results can also be returned as JSON for other tools.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the grepai-trace plugin — 3 skills shipped together , and of grepai-complete

Good fit Use it to investigate function usage, explore code dependencies, check the impact of changes, and list callers in human-readable or machine-readable form.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yoanbernabeu/grepai-skills/grepai-trace-callers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yoanbernabeu/grepai-skills --skill grepai-trace-callers
Clone the repo
git clone --depth 1 https://github.com/yoanbernabeu/grepai-skills

Made for: Claude Code.

Or install grepai-trace, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grepai-trace-callers

README.md
[![agentmods](https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-trace-callers/github.svg)](https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-trace-callers)
Your own site
<a href="https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-trace-callers"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-trace-callers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grepai-trace-callers

Your own site · 80×15
<a href="https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-trace-callers"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-trace-callers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 30 Oct 2026
  • Snyk pass 30 Oct 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.02132
Opus 5.5 $0.00011 $0.00853
Sonnet 5.5 $0.00006 $0.00426
Haiku 4.5 $0.00003 $0.00213

Measured 7d ago against content hash c6e93ab29fd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

grepai-trace-callers scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(
skills/trace/grepai-trace-callers/SKILL.md · 358 lines

How it starts

The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

grepai trace callers "Login" --json

Output:

{
  "query": "Login",
  "mode": "callers",
  "count": 3,
  "results": [
    {
      "file": "handlers/auth.go",
      "line": 42,
      "caller": "HandleAuth",
      "context": "user.Login(ctx, credentials)"
    },
    {
      "file": "handlers/auth_test.go",
      "line": 15,
      "caller": "TestLoginSuccess",
      "context": "result := Login(testUser, testPass)"
    },
    {
      "file": "cmd/main.go",
      "line": 88,
      "caller": "RunCLI",
      "context": "err := auth.Login(username, password)"
    }
  ]
}

Compact JSON (AI Optimized)

grepai trace callers "Login" --json --compact

Output:

{
  "q": "Login",
  "m": "callers",
  "c": 3,
  "r": [
    {"f": "handlers/auth.go", "l": 42, "fn": "HandleAuth"},
    {"f": "handlers/auth_test.go", "l": 15, "fn": "TestLoginSuccess"},
    {"f": "cmd/main.go", "l": 88, "fn": "RunCLI"}
  ]
}

Read the full file on GitHub · 358 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · -7 lines c6e93ab29fd1
  2. 2mo ago First seen · 365 lines · 28 tokens per session scan A fe72413b7469

Subscribe to this mod's changes

grepai-trace-callers is a skill published in the GitHub repository yoanbernabeu/grepai-skills (20 stars, last pushed 7d ago), licensed MIT. It adds 28 tokens to every session and 2,132 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

grepai-trace-callers compared with skills from other repositories

grepai-trace-callers next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grepai-trace-callersyoanbernabeu/grepai-skillsSkill207d agoMITA28Claude Code
codebase-searchHelweg/open-codebase-indexSkill2302d agoMITA38Claude Code
qdrant-advisorqdrant/skillsSkill267yesterdayApache-2.0A216Claude Code
qdrant-monitoring-debuggingqdrant/skillsSkill267yesterdayApache-2.0A75Claude Code
codebase-searchHelweg/open-codebase-indexSkill2302d agoMITA43Claude Code
cocosearch-debuggingVioletCranberry/coco-searchSkill374d agoMITA37Claude Code
cocosearch-depsVioletCranberry/coco-searchSkill374d agoMITA34Claude Code