What problem does it solve?
Safety guardrails for destructive commands. Warns before rm -rf, DROP TABLE, force-push, git reset --hard, kubectl delete, and similar destructive operations.
User can override each warning. Use when touching prod, debugging live systems, or working in a shared environment. Use when asked to "be careful", "safety mode", "prod mode", or "careful mode".
Core Features & Use Cases
- Warnings before destructive commands (rm -rf, DROP TABLE/DATABASE, TRUNCATE, git push --force, git reset --hard, kubectl delete, docker prune) to prevent data loss or service disruption.
- Safe exceptions allow certain patterns (e.g., rm -rf node_modules, build directories) to proceed without warning.
- Per-command override lets users continue after a warning, and the hook runs automatically as a PreToolUse step.
Quick Start
Enable careful mode before running risky commands to receive warnings and the option to override.