ClaudeCodeMod

All shelves / Mods / Safety

blast-radius

By Anthropic

blast-radius is a Claude Code safety mod by Anthropic.

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.

DrawsHolds a command

Install

The marketplace name is claude-code-playground-mods.

In your shell
git clone https://github.com/anthropics/claude-code-playground.git
cd claude-code-playground/claude-code/mods
claude plugin marketplace add ./
claude plugin install blast-radius@claude-code-playground-mods --scope user
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
0.1.0
License
Apache-2.0
Repo stars
287
Last change
2026-10-01

What it can reach

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

Claude Code 2.1.287 or later, with bash, git, find, and du on PATH. For migrations, the project's own tool, such as python3 manage.py showmigrations. No environment variables or configuration. A sample from Anthropic's DevRel playground, shared as-is: the README says it is not an official Anthropic product, and no support is implied. When Claude calls Bash with rm -r or rm -f, git reset --hard, git checkout -- . or git restore ., git clean, a force push, or a migration, the call is held and a pane lists what it would touch: the files rm would delete with their count and size, the uncommitted or untracked files, the remote commits a force push would drop, or the pending migrations. Proceed runs the command, Cancel refuses it, and Claude sees the reason. Cancel has the focus, so Enter refuses. Press 1 or 2, or click a button. If nobody answers within 10 minutes, or you press Esc, the command is refused. The side pane wants a terminal about 144 columns wide; a narrower one gets the band above the prompt, where another mod that draws there can hide the buttons. It follows cd, pushd, popd, and git -C on the same line. Listing migrations runs the tool's own status command, which loads your project's code before you choose. Remove it with claude plugin uninstall blast-radius@claude-code-playground-mods --scope user.

The install clones claude-code-playground and adds its mods folder as a local marketplace, claude-code-playground-mods, which holds the three mods in that folder, token-weather and replay-theater among them. This one installs on its own. To try it once without installing, run claude --plugin-dir ./blast-radius from the mods folder. Holding a risky command until you answer is why this page files it under safety. bash-guard, by Singh-AP, holds every Bash call, blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh. guardrails-lite, by edtrackai, holds a .env read, a git force-push, and a recursive rm on /, ~, or $HOME. This one measures what the command would change and shows it before you choose. The author says it reads the command text without parsing shell fully, so $(...), aliases, eval, bash -c, xargs rm, and wrappers such as timeout 5 rm are not caught. Only the Bash tool is watched, and the author calls it a safety net, not a permission system. hamzafer/claude-code-mods also ships a plugin of this name, blast-radius@claude-code-mods, from a different repo.

Demo

blast-radius holding a command above the prompt
From the author's repo.

What it hooks into

  • tool.callAround a tool call, where it can hold oneBash
  • ui.renderDraws into the sessionPaneAbovePrompt

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

Files

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

Facts

Author
Anthropic
Category
Safety
Marketplace
claude-code-playground-mods
Repo
anthropics/claude-code-playground
Folder
claude-code/mods/blast-radius
Version
0.1.0
License
Apache-2.0
Repo stars
287
Last change
2026-10-01
Language
JavaScript
Files
9

Other mods in Safety

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/.guardrails-liteedtrackaiHolds a commandHolds a read of a secret .env file, a git force-push, and a recursive rm on /, ~, or $HOME. .env.example, .env.sample, and .env.template are allowed.injection-guardSingh-APStrips hidden characters from tool output and marks results that carry instructions aimed at Claude, so they reach it as untrusted data.collision-guardnateherkaiHolds a commandHolds an edit to a file another open chat changed in the last 30 minutes, and asks you to proceed, move this chat to a worktree, or cancel.
All 73 in Safety