sonicoder / code /hooks /builtins /block-dangerous-rm.local.md
R-Kentaren's picture
feat(agent): add Claude Code-style agent, skills, slash-commands, hooks, todos, sandboxed workspace, and full-stack scaffolding
81aa0b5 verified
|
Raw
History Blame Contribute Delete
346 Bytes
---
name: block-dangerous-rm
enabled: true
event: bash
pattern: rm\s+-rf\s+(/|~|\$HOME|\.\.)
action: block
---
๐Ÿ›‘ **Dangerous rm command detected!**
This command could delete important files. The operation has been blocked.
If this is intentional, please:
- Verify the path is correct
- Use a more specific path
- Make sure you have backups