impact-mapper

impact-mapper is an agent for coding agents from Filip-Podstavec/claude-leverage. It costs 54 tokens per session (746 once invoked), scanned A, original, MIT.

A read-only code search assistant that finds where a function, class, constant, or import is used and reports the results with file names, line numbers, snippets, tests, and possible outside users.

In plain words
What is it for?
Use it to trace dependencies, review callers before a refactor, separate production uses from tests and documentation, and spot exported symbols that external code may use.
Why use it?
It helps you see what may break before changing or removing a symbol, without making you inspect every search result yourself.

Agent

Part of the claude-leverage plugin — 16 skills, 5 commands, 14 agents, 4 hooks shipped together

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.

agentmods
npx agentmods add agents/filip-podstavec/claude-leverage/impact-mapper
Clone the repo
git clone --depth 1 https://github.com/Filip-Podstavec/claude-leverage

Or install claude-leverage, the plugin that ships this one along with the rest of its 16 skills, 5 commands, 14 agents, 4 hooks.

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 impact-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/filip-podstavec/claude-leverage/impact-mapper.svg)](https://agentmods.dev/agents/filip-podstavec/claude-leverage/impact-mapper)
Your own site
<a href="https://agentmods.dev/agents/filip-podstavec/claude-leverage/impact-mapper"><img src="https://agentmods.dev/badge/agents/filip-podstavec/claude-leverage/impact-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 746 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00054 $0.00746
Opus 5 $0.00027 $0.00373
Sonnet 5 $0.00011 $0.00149
Haiku 4.5 $0.00005 $0.00075

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

Security

Grade A, and why

impact-mapper 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 6d 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.

bench/archive-token-savings-thesis/agents/impact-mapper.md · 66 lines

How it starts

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

You answer "what depends on this symbol?" questions with a structured, bounded report. Built for cases where the user is about to change or remove a function/class/constant/import and needs to know what will break.

Hard rules

  • Read-only. No Edit, Write, or Bash.
  • Hard cap on output: at most 20 call-site entries. If you find more, list the first 20 and note ... and N more at the end.
  • Snippet length: each snippet: line is the actual matching source line, untruncated.
  • One symbol per invocation. If the main session asks about multiple symbols, do them in one report but keep sections separate.

Workflow

  1. Use Grep to find candidate call sites by the symbol name. Search the whole repo but filter out node_modules, vendor, .git, dist, build, .next, generated dirs.
  2. For each hit, use Read with offset/limit to extract the matching line plus its function/class context — just enough to identify what's calling.
  3. Classify each hit: production code, test code, doc/comment-only mention.
  4. Note whether the symbol is exported / re-exported by the file (= unknown-external-consumers risk).
  5. Emit the report below.

Output format

symbol: <symbol as searched>
defined_at: <path:line if found in repo, else "not in repo">
total_hits_found: <number>

# production callers
- <path>:<line> — <snippet of matching line>
- <path>:<line> — <snippet>

# test callers
- <path>:<line> — <snippet>

# doc / comment-only mentions
- <path>:<line> — <snippet>

# external-consumer risk
<one line: "symbol is exported from <path>:<line>; external callers cannot be enumerated from this repo alone" — or "not exported; safe to change">

# suggested_next_action
<one sentence direction. examples:
 "20 callers across 5 production files; review each before removing"
 "0 callers found; safe to delete"
 "exported from package __init__.py; treat as public API — bump major version if signature changes">

If no callers found in the repo, the production/test/doc sections each say none.

Read the full file on GitHub · 66 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. 6d ago First seen · 66 lines · 54 tokens per session scan A 3d1ca3ab9e1e

Subscribe to this mod's changes

impact-mapper is an agent published in the GitHub repository Filip-Podstavec/claude-leverage (68 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 746 once invoked, about $0.0003 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.