bash-guard

by hugo88 · ★ 0 · updated 9 days ago

PanesBandsGuardsvalidates

0

Blocks catastrophic Bash commands; holds risky ones (rm -r, git reset --hard, git clean, force push, migrations) and shows what they would change, with Proceed and Cancel

install bash-guard

Install

/plugin marketplace add hugo88/claude-code-bash-guard
/plugin install bash-guard@claude-code-bash-guard

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
Draws
PaneAbovePrompt
Can see
Bash calls
Reach
level 2 of 3 runs processesdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/hugo88/claude-code-bash-guard
Path in repo
repository root
Source commit
d56dc7c the exact code the scan read
Author
@hugo88
License
Apache-2.0
First published
Last pushed
First listed here

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.