Show HN: A Claude Code plugin that catch destructive Git and filesystem commands
4 months ago
- #git-safety
- #filesystem-security
- #ai-agents
- Claude Code plugin acts as a safety net to prevent destructive git and filesystem commands.
- Uses semantic command analysis to distinguish safe vs. dangerous operations.
- Blocks commands like `git checkout --`, `rm -rf /`, and shell wrappers.
- Allows safe commands like `git checkout -b` and `rm -rf` within current directory.
- Provides clear block messages and requires user permission for destructive actions.
- Supports strict mode to block unparseable commands and non-temp `rm -rf`.
- Recursively analyzes commands in shells and interpreter one-liners.
- Redacts sensitive data in block messages to prevent leaks.