impact

impact is a command for Claude Code from atretyak1985/swarmery. It costs 18 tokens per session (1,533 once invoked), scanned A, original, Apache-2.0.

A command that maps what may be affected when you change a symbol, file, or other part of a codebase across multiple repositories.

In plain words
What is it for?
Use it to find dependants, trace connections between symbols, and inspect nearby code with file-and-line references.
Why use it?
It helps you estimate the change's blast radius before editing, while showing which dependency links come from code analysis and which need checking.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the core plugin — 36 skills, 8 commands, 13 agents shipped together

Good fit Use it to find dependants, trace connections between symbols, and inspect nearby code with file-and-line references.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/atretyak1985/swarmery/impact
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/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 8 commands, 13 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/atretyak1985/swarmery/impact.svg)](https://agentmods.dev/commands/atretyak1985/swarmery/impact)
Your own site
<a href="https://agentmods.dev/commands/atretyak1985/swarmery/impact"><img src="https://agentmods.dev/badge/commands/atretyak1985/swarmery/impact.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,533 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.00018 $0.01533
Opus 5 $0.00009 $0.00766
Sonnet 5 $0.00004 $0.00307
Haiku 4.5 $0.00002 $0.00153

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

Security

Grade A, and why

impact 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 5d 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.

plugins/core/commands/impact.md · 135 lines

How it starts

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

Impact Analysis Command

Find everything affected by a change to: $ARGUMENTS

Primary path — Graphify (graph-aware, most accurate)

Graphify builds a per-repo knowledge graph at <repo>/graphify-out/graph.json. Each repo from project.json → repos has its own graph — run the commands from inside the repo you are analyzing (or pass --graph <repo>/graphify-out/graph.json explicitly).

  1. Blast radiusgraphify affected "$ARGUMENTS" --depth 3 — reverse traversal listing everything that depends on the symbol (run per repo: the main app from project.json → mainApp, then the device/edge repo from project.json → device if the project has one).
  2. Connection tracegraphify query "what depends on $ARGUMENTS?" for a BFS answer, or graphify path "$ARGUMENTS" "<other symbol>" to prove/disprove a specific dependency.
  3. Symbol contextgraphify explain "$ARGUMENTS" — the node, its neighbors, and its community, with file:line citations.
  4. Weigh edge confidence: EXTRACTED edges come straight from the AST (trust them); INFERRED edges were model-resolved (verify before calling them WILL BREAK).

If the staleness hook warns the graph is behind HEAD, run graphify update . first (add --force after refactors that deleted files) — otherwise the blast radius may omit new callers (a false "safe to change").

Fallback path — ripgrep (always live; covers anything the graph misses)

Use ripgrep whenever the graph is stale or absent, and to double-check infra config (deploy manifests/YAML) if it is not in the graph. Run from the workspace root, listing the repos from project.json → repos:

rg -n --no-heading "$ARGUMENTS" \
  apps/<mainApp> <device-repo> \
  <infrastructure-repo>

What to report

  1. Total occurrences + per-repo breakdown.
  2. File paths with line numbers and surrounding context.
  3. For graph results: depth (d=1 WILL BREAK / d=2 LIKELY / d=3 MAYBE) and the edge confidence tag (EXTRACTED vs INFERRED).
  4. Recommended update order if the symbol changes (interfaces → impls → callers → tests).
  5. Cross-tier flag: if the symbol crosses the main app ↔ the device/edge repo, call out the manual contract (no shared schema) and the coordinated-merge requirement.

Read the full file on GitHub · 135 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. 5d ago First seen · 135 lines · 18 tokens per session scan A e7d5e119451c

Subscribe to this mod's changes

impact is a command published in the GitHub repository atretyak1985/swarmery (4 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 1,533 once invoked, about $0.0001 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-09-03.