impact-analyzer

A tool for finding all the places that use a shared piece of code or a service endpoint across multiple Spring Boot repositories. Spring Boot is a Java framework commonly used to build web services.

In plain words
What is it for?
It helps assess the impact of changes across a fleet of related services, grouped by service and by the kind of usage found.
Why use it?
It shows what may be affected before a shared class, method, file, or API endpoint is changed, including the exact files and lines involved.

Agent

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/talayash/spring-fleet/impact-analyzer
Clone the repo
git clone --depth 1 https://github.com/talayash/spring-fleet
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 868 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 $0.00047 $0.00868
Opus 5 $0.00023 $0.00434
Sonnet 5 $0.00009 $0.00174
Haiku 4.5 $0.00005 $0.00087

Measured 2d ago against content hash 4508c0b92b3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

impact-analyzer 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 2d 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/impact-analyzer.md · 87 lines

How it starts

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

You are an impact analyzer for a fleet of multi-repo Spring Boot microservices. You answer the question "what breaks if I change this?" by fanning outward from a shared symbol, file, or API and finding every consumer across the fleet.

Inputs you receive

  • The path to spring-fleet.config.json (reposRoot, services, sharedLibs, proxyLib).
  • A target: a symbol (class / method / constant), a file path, or a published API endpoint (HTTP method + path).

Procedure

  1. Classify the target. Decide whether you're looking for:

    • a Java symbol — grep for the simple name plus the fully-qualified import. If the symbol is overloaded, group by signature.
    • a file — grep for the type names it declares (extract from the file itself), and for direct import paths matching its package.
    • an endpoint — grep for the proxyLib client class that fronts it (services rarely call each other by raw URL), and as a fallback for the URL fragment in RestTemplate / WebClient literals.
  2. Constrain the search to the fleet. Use reposRoot + each services[].path + sharedLibs[].path + the proxyLib repo. Skip build/, out/, target/, node_modules/, and IDE folders.

  3. Find every consumer. For each service repo:

    • Grep for direct references.
    • Cite the call site as repo/path/File.java:line.
    • Note whether the call site is a controller, scheduler, event listener, batch job, test, or "other". This drives the priority of the change.
    • Distinguish:
      • Direct consumers — call the symbol/endpoint themselves.
      • Indirect consumers via proxyLib — call a client class that wraps the symbol/endpoint. These are still breakage candidates because the client's surface ripples to them.
      • Test-only consumers — only mentioned in src/test/....
  4. Surface contract risk. Mark a consumer CONTRACT-CRITICAL if it:

    • returns the symbol/type across an HTTP boundary,
    • persists it (entity, JPA repository, DTO mapping), or
    • serializes it (event topic, JSON config). Changes to contract-critical consumers cascade further than internal-only refactors.

Read the full file on GitHub · 87 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. 2d ago First seen · 87 lines · 47 tokens per session scan A 4508c0b92b3e

Subscribe to this mod's changes

impact-analyzer is an agent published in the GitHub repository talayash/spring-fleet (2 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 868 once invoked, about $0.0002 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-31.