blast-radius
Reviewed
at commit e984b70
New version, not yet reviewed
Holds recognized recursive deletes, force pushes and migrations for confirmation, previews file deletions and branch changes, and cancels if nobody answers in…
0 upvotes
Log in to upvote or save- Made by
- Hamza Zafar
- Pinned commit
-
e984b704c40cd0effdf86f0149277e32266872cc - What we checked
-
Holds Bash commands that delete files recursively, force-push or run database migrations, and shows a pane with what they would change (files and size, commits lost, uncommitted schema files) with Cancel and Proceed buttons. Cancel, or no answer within 60 seconds by default, blocks the command. It makes no network calls and stores nothing.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since fc51304; the rest carries over from the review at that commit. Registers tool.call for Bash and ui.render for the Pane and AbovePrompt components. Commands are classified with regexes (rm with recursive flags, git push with force flags, common migration tools). A held command is previewed through $.process.run: a fixed bash -c script that only runs du and find on the rm targets (passed as arguments, glob expansion only, nothing executed from the command text), plus git log and git status --porcelain. Targets with shell variables or quotes are reported as not previewable. It reads HOME to expand ~. It polls with sleep 0.25 while waiting. Proceed returns next(e) unchanged, Cancel or timeout returns a deny; without a screen it denies. Changes in this version: the git preview commands now run with -c core.fsmonitor=false and --no-optional-locks so a repository's own fsmonitor hook is never executed (a hardening); the du preview prefixes names starting with '-' with ./ and passes '--' so a file named like a flag cannot act as one; the AbovePrompt band is wrapped in a keyed Box via the shared bands.ts and, once per session, reads <config dir>/claude-code-mods/bands.json (an optional list of mod names for band order, parsed defensively, empty on any error). Wording change from cancelled to canceled in the setting description. No fetch, no store, no file writes.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
Holds risky Bash commands and shows what they would change before they run.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/blast-radius/)