scope-tracer

scope-tracer is an agent for Claude Code from juicesharp/rpiv-mono. It costs 101 tokens per session (2,130 once invoked), scanned A, original, MIT.

A codebase-scoping workflow for a research investigation. It searches for related terms, reads important files in depth, and produces a summary plus focused questions that define what to investigate next.

In plain words
What is it for?
Use it to trace a feature or problem across a repository, find key files, map investigation areas, and prepare questions for a separate research step.
Why use it?
It prevents research from ranging across the entire codebase without a clear boundary. It identifies the files, entry points, and interfaces most relevant to the topic.

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 repository, find key files, map investigation areas, and prepare questions for a separate research step.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/juicesharp/rpiv-mono/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/juicesharp/rpiv-mono

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/juicesharp/rpiv-mono/scope-tracer/github.svg)](https://agentmods.dev/agents/juicesharp/rpiv-mono/scope-tracer)
Your own site
<a href="https://agentmods.dev/agents/juicesharp/rpiv-mono/scope-tracer"><img src="https://agentmods.dev/badge/agents/juicesharp/rpiv-mono/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/juicesharp/rpiv-mono/scope-tracer"><img src="https://agentmods.dev/badge/agents/juicesharp/rpiv-mono/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,130 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 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.00101 $0.02130
Opus 5 $0.00051 $0.01065
Sonnet 5 $0.00020 $0.00426
Haiku 4.5 $0.00010 $0.00213

Measured 9d ago against content hash f08c10dd2308, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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

Copies of this mod

1 near-identical copy found in the catalogue:

packages/rpiv-pi/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 subagents, 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. 9d ago First seen · 126 lines · 101 tokens per session scan A f08c10dd2308

Subscribe to this mod's changes

scope-tracer is an agent published in the GitHub repository juicesharp/rpiv-mono (765 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 2,130 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.