Anthropic

blast-radius

by anthropics · ★ 120 · updated 4 days ago

PanesBandsGuards

0

Holds risky shell commands (rm -rf, git reset --hard, git clean, force push, migrations) and shows what they would change, with Proceed and Cancel buttons.

install blast-radius

Install

git clone https://github.com/anthropics/claude-code-playground
claude --plugin-dir ./claude-code-playground/claude-code/mods/blast-radius

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
tool.callui.render
API calls
$.clock.now$.process.run$.session.cwd$.ui.close$.ui.invalidate$.ui.open$.ui.resolve$.ui.toast

Origin

How it got here
Found through a post on X by @aibuilderclub_, then checked on GitHub: the repo has a plugin manifest and function hooks. Listed .
Repository
github.com/anthropics/claude-code-playground
Path in repo
claude-code/mods/blast-radius
Source commit
569c528 the exact code the scan read
Author
@anthropics
License
Apache-2.0
First published
Last pushed
First listed here
On X
Mentioned in 4 posts on X

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Posts about this repo

AI Builder Club@aibuilderclub_

Three samples from Anthropic: • Token Weather: a context window forecast above your prompt • Blast Radius: pauses rm -rf or a force push and shows what it would change • Replay Theater: /replay steps through last turn's edits, one diff at a time https://github.com/anthropics/claude-code-playground/tree/main/claude-code/mods

オープンソース研究所@opensourcelab9

【公式】 Claude Code の開発チームが、本体を自分好みに改造できる mods を公開しました😳 文脈の残量を天気で出す、危ないコマンドを止める、そんな見本が3つ付いています。 https://x.com/ClaudeDevs/status/2105721434807083061/video/1 2.1.287 以降なら plugin として入れるだけです。 ・Token Weather:文脈の埋まり具合を天気で表示 ・Blast Radius:rm -rf や強制 push を実行前に止める ・Replay Theater:書き換えを差分1件ずつ見返す 承認ボタンをビクビク押している身なら、Blast Radius だけでも入れたい。 文脈が埋まってきたら、削る道具も持っておくと止まりません。 トークンを減らす OSS 50個を、この下の記事で並べています👇 オープンソースはこちら👇 https://github.com/anthropics/claude-code-playground

Haruki | NotionCampusLeader@Haruki_dev

Replay Theater:直前の編集を順に振り返る /replayで編集を1件ずつたどれます。 例えば複数ファイルのリファクタリング後に、「何をどう直したのか」を把握出来ます。 https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/README.md

Haruki | NotionCampusLeader@Haruki_dev

Blast Radius:削除・Git操作の影響を先に見る rmやgit reset --hardなどをいったん止め、影響するファイルやコミットを表示します。例えば「不要ファイルを整理して」と頼んだ際、消す対象を見てから実行・中止を選べます。 https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/README.md

More from anthropics/claude-code-playground

Anthropic

replay-theater

anthropics/claude-code-playground

Replay Theater: step through the file edits Claude made in the last turn, one diff at a time.

★ 1204 postsPanesBandsGuards
Anthropic

token-weather

anthropics/claude-code-playground

A live forecast of the context window, drawn above the prompt: a weather icon, the fill percentage, and a chart of the last turns.

★ 1204 postsBands