Resilience forensics for your codebase. Ranks hotspots, then explains how each one fails in production — failure mode, trigger, amplifier, sustaining effect — with evidence that resolves to real file:line and commit SHAs.
Resilience forensics for your codebase. Find the thundering herd before it
finds you.
Hotspot analysis tells you where risk concentrates — complex code that
changes often. thunderstruck tells you why that code is fragile: the
concrete failure mode, what triggers it, what amplifies it, and what keeps it
failing once it starts.
It is a Claude Code plugin. Deterministic scripts find and rank the fracture
points and validate every claim; subagents do only the part that needs
judgment — reading the code and its history and forming a falsifiable
hypothesis.
FR-001 · Release fetches retry on a fixed 2s schedule through two stacked
retry layers, so one upstream blip becomes 15 requests per caller
arriving in lockstep
high confidence · src/client/releases.ts:16-28 · fetchRelease
Trigger The releases API returns 5xx for more than two seconds
Amplifier withRetry retries 3x inside a loop that retries 5x
Sustaining effect Every client waits exactly SLEEP_MS and returns together,
so the upstream is re-saturated the moment it recovers
Missing patterns S02, S10
Evidence
code src/client/releases.ts:16 setTimeout(resolve, SLEEP_MS)
commit cc9c8d3 5th "fix timeout" commit in the window
detector S02@src/client/releases.ts:16
Verify Stub the endpoint to fail for 3s, call from 10 clients, count
upstream requests (expect 150) and assert arrival times differ
Install from GitHub as above. Claude Code then keeps a copy of the plugin, and
everything it needs ships in that copy. Adding the marketplace from a local
directory (/plugin marketplace add ./thunderstruck) is different: Claude
Code runs that checkout in place, so its current branch and uncommitted edits
are what every scan uses. That is meant for working on thunderstruck itself,
and the scan warns when it happens.
Then, in any git repository:
/thunderstruck-scan
That is the whole setup. No API key, no configuration, no account. You need
uv on your PATH — the bundled scripts run
through it, and it installs their dependencies on first use:
curl -LsSf https://astral.sh/uv/install.sh | sh
On a large or unfamiliar repository, look before you leap:
/thunderstruck-scan --dry-run # rank and bundle only; no subagents
/thunderstruck-scan --top 5 --since 6m
/thunderstruck-scan --path src/services
What you get
Written to .thunderstruck/ in the scanned repository:
File
What it is
report.md
The human report: run header, what was not scanned, detector leads by pattern (what a lead and no lead mean, leads read and confirmed), ranked findings, dormant integration points
report.html
The same report as one self-contained page: go through findings one by one, filter by confidence, step with j/k, mark them reviewed with r, copy the verify command. Opens offline, makes no network request, and is safe to send. /thunderstruck-report rebuilds it
report.json
Stable versioned schema, for diffing runs over time
index.json
file → findings, read by the edit guardrail
tickets/<key>.md
A ticket for one finding, written by /thunderstruck-ticket, ready to paste into your tracker
hotspots.json
The deterministic layer's output, inspectable
bundles/
Exactly what each investigator was shown; source lines carry their own file line numbers
planes/<id>.md
The full rubric of each fracture plane the scan selected, which the agents may read
findings/
Per-hotspot results, keyed by bundle hash
reproductions/<key>.json
The outcome of a /thunderstruck-verify test run, recorded by script: shown beside the check, and as stale once the test or the finding changes. Display only; a re-scan keeps it
previous/<date>-<head>/
A copy of the finished scan a new, different scan replaced: its report, findings, verdicts and usage. The last three are kept; a re-run of the same scan copies nothing. --since previous repeats the earlier scan's window
The scan offers to add .thunderstruck/ to your .gitignore on the first
run. It will not add it without asking.