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

A newer version of the Gradio SDK is available: 6.19.0

Upgrade
metadata
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