ClaudeCodeMod

All shelves / Mods / Safety

mod-blast-radius

By v-amorim

mod-blast-radius is a Claude Code safety mod by v-amorim.

Holds a risky Bash command on a card until you choose Run or Cancel, shows what it would change first, and reads your own rules from a JSON file.

DrawsHolds a command

Install

The marketplace name is claude-mods.

In Claude Code
/plugin marketplace add v-amorim/moonlight-claude-mods
/plugin install mod-blast-radius@claude-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
2.0.0
License
MIT
Repo stars
5
Last change
2026-10-30

What it can reach

  • Draws in the session
  • Holds a command
  • Sees tool calls
  • Calls another program on this machine

Needs Claude Code 2.1.287 or newer; the author tested on Windows Terminal and macOS iTerm2. /plugin install asks where to install the mod: keep Install for you (user scope), press Enter, press Esc to leave the plugin screen, then run /reload-plugins. Auto-update is off for unofficial marketplaces; turn it on under /plugin, Marketplaces, claude-mods. The README warns that mods are not sandboxed and run with your permissions. Where nothing can draw the card (a VS Code chat panel, claude -p, an SDK session), the call is not held and the permission system asks instead. A command whose check fails is held, not run. Explain with Haiku is off by default; turned on, each held command is sent to Haiku, which spends tokens and counts against your plan quota. Send rm to the bin is off by default, and then an rm is held.

The marketplace, claude-mods, holds 13 mods in the Moonlight look, and other repositories use that name too, so add v-amorim/moonlight-claude-mods. Holding a risky shell command is why this page files it under safety. blast-radius holds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel. bash-guard holds every Bash call, even in bypass mode, blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh. This one holds a risky Bash command until you choose Run or Cancel, with a preview of paths, git status and dry runs, and the commits a force push would drop, and it reads your own rules, pass rules included, from rules.json. The card also counts the session's permission checks and how many were denied.

Demo

The Features section of the author's README, its first two bullets: a risky Bash command (rm, git reset --hard, force push, SQL DROP, production deploys and more) waits before it runs, and with an idle timeout set the card's top edge counts down, turning yellow at 2 minutes and red in the last minute.
Screenshot of the author's GitHub page.

What it hooks into

  • ui.toastA Claude Code event
  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold oneBash
  • tool.checkA Claude Code event
  • session.endWhen a session ends
  • ui.closeWhen its pane closes
  • state.setA Claude Code event
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command/mod-blast-radius
  • ui.renderDraws into the sessionPaneAbovePrompt
  • ui.messageAdds a message to the session

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /mod-blast-radius

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
v-amorim
Category
Safety
Marketplace
claude-mods
Repo
v-amorim/moonlight-claude-mods
Folder
mod-blast-radius
Version
2.0.0
License
MIT
Repo stars
5
Last change
2026-10-30
Language
TypeScript
Files
42

Other mods in Safety

mod-collision-guardv-amorimHolds a commandPauses a file edit when another open session just edited that file, and asks you to proceed, move to a worktree, cancel, or type an instruction for Claude.secret-guardvumichienHolds a commandHides secret values from your env files and secret-shaped text in tool results, tells Claude to use $NAME instead, and refuses commands that print them.blast-radiusAnthropicHolds a commandHolds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel.merge-gatehamzaferHolds a commandHolds gh pr merge until CI is green and a Codex review has run once, and draws that pull request's status above the prompt.rulebook-guardhamzaferHolds a commandAsks before git commit --amend, an unformatted push, or personal details in notes and commits.bash-guardSingh-APHolds a commandHolds every Bash call, even in bypass mode. Blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh.net-guardSingh-APHolds a commandHolds curl, wget, ssh, scp, git push, and WebFetch, even in bypass mode. Blocks paste sites and request catchers, and asks before data goes anywhere new.file-guardSingh-APHolds a commandHolds writes outside the project and writes into .git, and asks before lockfiles and CI files.slopsquat-guardSingh-APHolds a commandHolds a package install and checks the name against its registry, so a hallucinated or typosquatted package does not install.command-explainerSingh-APDraws a plain-English line and a risk level on the permission prompt, so you can see what the command does before you approve it.secret-guardarasovicHolds a commandHides API keys and private keys before the model or the transcript sees them, blocks credential files and commands that print secrets, and shows what it caught.guardrailsarasovicHolds a commandHolds Cloudflare write commands, attribution lines in commits and pull requests, and branch names that start with claude/.
All 73 in Safety