What problem does it solve?
Prevents accidental destructive operations by scanning bash and tool commands for high-risk patterns and pausing execution for user confirmation. This reduces data loss, repository corruption, and production outages caused by unintended rm, git, kubectl, docker, or SQL commands.
Core Features & Use Cases
- Pre-tool checks: Intercepts Bash commands via a PreToolUse hook and analyzes them before execution.
- Pattern detection: Identifies recursive deletes, SQL DROP/TRUNCATE, git force-push/reset/discard, kubectl delete, and destructive Docker commands.
- Safe exceptions & override: Recognizes common safe cleanups (node_modules, build artifacts) and allows users to override warnings when necessary.
- Use case: Use in shared or production environments to require explicit confirmation before running potentially destructive CI, deployment, or maintenance commands.
Quick Start
Enable careful mode to check my bash commands for destructive patterns before execution.