
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.
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Marketplace
- karanb192/claude-code-hooks
- Source
- plugins/block-dangerous-commands
- Category
- Safety