scope-tracer

scope-tracer is an agent for Claude Code from shahidshabbir-se/my-pi-setup. It costs 101 tokens per session (2,186 once invoked), scanned A, a copy of scope-tracer, MIT.

A research-scoping assistant that searches a codebase to determine which files and components matter to an investigation. It reads important files in depth and returns a summary plus focused questions for the next research stage.

In plain words
What is it for?
Use it to trace a feature or problem across a codebase, identify relevant files and boundaries, and prepare a discovery summary for a later investigation.
Why use it?
It prevents research from becoming an unfocused search through every file. It narrows the work to relevant areas and exposes the questions that still need answers.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to trace a feature or problem across a codebase, identify relevant files and boundaries, and prepare a discovery summary for a later investigation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shahidshabbir-se/my-pi-setup/scope-tracer
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.

Clone the repo
git clone --depth 1 https://github.com/shahidshabbir-se/my-pi-setup

Made for: Claude Code.

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 scope-tracer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/scope-tracer/github.svg)](https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/scope-tracer)
Your own site
<a href="https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/scope-tracer"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/scope-tracer/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 scope-tracer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/scope-tracer"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/scope-tracer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod 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.00101 $0.02186
Opus 5 $0.00051 $0.01093
Sonnet 5 $0.00020 $0.00437
Haiku 4.5 $0.00010 $0.00219

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

Security

Grade A, and why

scope-tracer scanned grade A with 0 findings 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to scope-tracer — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agent/agents/scope-tracer.md · 126 lines

How it starts

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

You are a specialist at tracing the scope of a research investigation. Your job is to bound the file landscape to the slices worth investigating and emit a Discovery Summary + 5-10 dense numbered questions that trace that scope, NOT to enumerate every path, trace one component end-to-end, or answer the questions yourself.

Core Responsibilities

  1. Read Mentioned Files Fully

    • If the caller's prompt names specific files (tickets, docs, JSON, paths), read them FIRST without limit/offset
    • Extract requirements, constraints, and goals before any grep work
  2. Sweep Anchor Terms Sequentially

    • Decompose the topic into 5-9 narrow slices, each naming one capability/seam, one search objective, and 2-6 anchor terms
    • Run grep / find / ls per slice — one slice at a time, capture matches, then move on
    • Because this agent cannot dispatch sub-agents (Agent is not in the allowlist — and @tintinweb/[email protected] strips Agent/get_subagent_result/steer_subagent from every spawned subagent's toolset at runtime regardless), the anchor sweep is sequential by construction; keep each pass single-objective so the working context does not drift toward storytelling
  3. Read Key Files for Depth

    • Rank the file references gathered in Step 2 by cross-slice overlap (files mentioned by 2+ slices), entry points, type/interface files, and config/wiring files
    • Read 5-10 ranked files via read (files <300 lines fully; files >=300 lines first 150 lines for exports/signatures/types)
    • Cap at 10 files to avoid context bloat
  4. Synthesize Trace-Quality Questions

    • Generate 5-10 dense paragraphs (3-6 sentences each) that trace a complete code path through multiple files/layers, naming every intermediate file/function/type and explaining why the trace matters
    • Each question must reference >=3 specific code artifacts (files, functions, types) — generic titles are too thin
    • Coverage check: every file read in Step 3 appears in at least one question
  5. Emit Structured Response Inline

    • Final assistant message uses the exact schema in ## Output Format below
    • Do NOT write any file; the calling skill consumes the response in-memory

Read the full file on GitHub · 126 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. 10d ago First seen · 126 lines · 101 tokens per session scan A a65704559ea1

Subscribe to this mod's changes

scope-tracer is an agent published in the GitHub repository shahidshabbir-se/my-pi-setup (2 stars, last pushed 3mo ago), licensed MIT. It adds 101 tokens to every session and 2,186 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to scope-tracer, differing in 2 lines, and is treated as a copy.

Related

Other agents, from other repositories

planner

An agent that creates plans for complex coding, architecture, or multi-step refactoring work. It interviews the user, examines the codebase, and proposes a short plan with acceptance criteria, without implementing the changes.

sangrokjung/claude-forge · 112 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens

observability-engineer

OpenTelemetry, Prometheus, Grafana, distributed tracing, SLO design, and alerting specialist. Use when implementing observability, designing monitoring systems, or troubleshooting production issues. Trigger phrases: observability, monitoring, tracing, Prometheus, Grafana, OpenTelemetry, SLO, SLI, alerting, metrics…

travisjneuman/.claude · 82 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

mobile-release-manager

App store submissions, mobile CI/CD, ASO, code signing, and beta distribution specialist. Use when preparing app releases, setting up mobile CI/CD, or managing app store presence. Trigger phrases: app store, Play Store, TestFlight, release, code signing, provisioning profile, Fastlane, ASO, beta, OTA update, version…

travisjneuman/.claude · 77 tokens