
block-dangerous-commands
PreToolUse guard for Bash: blocks dangerous shell commands (rm -rf ~, fork bombs, curl|sh, force push to main) before they run, with three safety levels and opt-in per-level ask mode.
- GitHub stars
- 581
Install
/plugin install block-dangerous-commands@claude-code-hooksRun it inside Claude Code after adding the marketplace with /plugin marketplace add karanb192/claude-code-hooks.
Contents
Discovered from sourceAgents 1
Hooks 1
Sponsors
Details
- Marketplace
- karanb192/claude-code-hooks
- Source
- plugins/block-dangerous-commands
- Category
- safety