What problem does it solve?
Prevents accidental destructive terminal or infrastructure commands that could wipe data, rewrite git history, or impact production systems.
Core Features & Use Cases
- Destructive Command Detection: Scans Bash command strings for high-risk operations like recursive deletes, SQL DROP/TRUNCATE, git force-push/reset --hard, kubectl delete, and destructive Docker pruning.
- Session-Scoped Safety Warnings: Intercepts execution and asks the user to confirm when a destructive pattern is detected.
- Safe Exception Handling: Allows common build-artifact deletions (for example node_modules, dist, build) without triggering warnings.
- Use Case: Imagine you are debugging a live service and you are about to run a command that might delete critical data; use /careful to get prompted before executing.
Quick Start
Type /careful when you are about to run a potentially destructive command and ask the agent to perform your requested change carefully.