What problem does it solve?
Enforces strong safety controls to prevent destructive system changes by issuing warnings for dangerous commands and by restricting edits to a user-defined directory, reducing the risk of accidental damage during maintenance or debugging.
Core Features & Use Cases
- Destructive command warnings: warns before executing commands like rm -rf, DROP TABLE, or force-push when within sensitive environments.
- Edit boundary enforcement: blocks edits outside a specified directory, ensuring changes are contained within a safe scope.
- Unified safety workflow: integrates with sibling safety tools (/careful and /freeze) to provide end-to-end protection during critical operations.
- Configurable via interactive prompts: asks the user for the target directory to constrain edits to and stores the boundary for the session.
Quick Start
Ask the user which directory should edits be restricted to and then run guard mode to enable both protections.