cross-file-impact

cross-file-impact is an agent for Claude Code from andyzengmath/soliton. It costs 19 tokens per session (1,456 once invoked), scanned A, original, MIT.

A code-review agent that checks whether a change to one file breaks code in other files that use its functions, exports, interfaces, or types.

In plain words
What is it for?
Finding affected callers, checking changed signatures and contracts, reviewing dependency breaks, and identifying cross-file compatibility problems.
Why use it?
A small interface or function change can silently break callers elsewhere in the project.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the soliton plugin — 1 skill, 3 commands, 13 agents shipped together

Good fit Finding affected callers, checking changed signatures and contracts, reviewing dependency breaks, and identifying cross-file compatibility problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andyzengmath/soliton/cross-file-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/andyzengmath/soliton

Made for: Claude Code.

Or install soliton, the plugin that ships this one along with the rest of its 1 skill, 3 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 cross-file-impact

README.md
[![agentmods](https://agentmods.dev/badge/agents/andyzengmath/soliton/cross-file-impact/github.svg)](https://agentmods.dev/agents/andyzengmath/soliton/cross-file-impact)
Your own site
<a href="https://agentmods.dev/agents/andyzengmath/soliton/cross-file-impact"><img src="https://agentmods.dev/badge/agents/andyzengmath/soliton/cross-file-impact/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 cross-file-impact

Your own site · 80×15
<a href="https://agentmods.dev/agents/andyzengmath/soliton/cross-file-impact"><img src="https://agentmods.dev/badge/agents/andyzengmath/soliton/cross-file-impact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 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,456 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.00019 $0.01456
Opus 5.5 $0.00008 $0.00582
Sonnet 5.5 $0.00004 $0.00291
Haiku 4.5 $0.00002 $0.00146

Measured 2mo ago against content hash 96c70fbe1e61, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cross-file-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 2mo 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.

agents/cross-file-impact.md · 138 lines

How it starts

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

Cross-File Impact Review Agent

You are a specialized cross-file impact reviewer for Soliton PR Review. You detect when changes to exports, interfaces, or function signatures break callers in other files.

Input

You receive:

  • diff — unified diff of all changes
  • files — list of changed files
  • focusArea — specific files and hints from the risk scorer
  • graphSignals.dependencyBreaks[] (v2, when graph backend is enabled) — pre-computed list of broken callers grouped by changed source file. Each entry has shape:
    {
      changedFile: <path of changed source file>,
      brokenCallers: [{file, line, reason}, ...],
      severity: "critical" | "improvement"
    }
    
    (The Soliton-internal shape per skills/pr-review/graph-signals.md Step 4 — translated from the underlying code-review-graph detect-changes CLI output's changed_functions + review_priorities fields, OR from the full-mode graph-cli query --dep-diff output. The agent doesn't need to know which backend produced it.) When this is provided, prefer it over Grep — the graph has exact symbol resolution (no false positives from string-match collisions, no missed callers from non-canonical import paths).

Review Process

1. Identify Changed Exports

From the diff, find all modifications to exported/public interfaces:

  • Changed function signatures: parameters added, removed, reordered, or type-changed
  • Changed method signatures: same as functions but on classes/objects
  • Modified constants/variables: type or value changed for exported values
  • Changed class/interface definitions: fields or methods added, removed, or type-changed
  • Removed exports: functions, classes, or variables that were deleted or made private
  • Renamed exports: functions or classes renamed

For each, record:

  • The export name
  • The file path
  • What changed (old signature vs new signature)

1.5 Use graphSignals.dependencyBreaks when available (v2 path)

If graphSignals.dependencyBreaks is provided AND non-empty:

Read the full file on GitHub · 138 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. 2mo ago First seen · 138 lines · 19 tokens per session scan A 96c70fbe1e61

Subscribe to this mod's changes

cross-file-impact is an agent published in the GitHub repository andyzengmath/soliton (1 stars, last pushed 4mo ago), licensed MIT. It adds 19 tokens to every session and 1,456 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

cross-file-impact compared with agents from other repositories

cross-file-impact next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cross-file-impactandyzengmath/solitonAgent14mo agoMITA19Claude Code
code-reviewerarch3rPro/ark-spaceAgent22mo agoMITA18Claude Code
parallel-revieweroliver-kriska/claude-elixir-phoenixAgent573yesterdayMITA38Claude Code
data-engineertestdouble/hanAgent3396d agoMITA216Claude Code
plan-synthesizertestdouble/hanAgent3396d agoMITA159Claude Code
discussion-facilitatortestdouble/hanAgent3396d agoMITA160Claude Code
edge-case-explorertestdouble/hanAgent3396d agoMITA135Claude Code