What problem does it solve? When working on production systems or debugging live environments, a single destructive command (rm -rf, DROP TABLE, force-push) or an edit to the wrong file can cause serious damage. Guard mode combines two safety layers so risky operations are intercepted before they execute. ## Core Features & Use Cases - Destructive Command Warnings: PreToolUse hooks scan every Bash command for dangerous patterns like rm -rf, DROP TABLE, and force-push, warning before execution with an option to override. - Directory-Scoped Edit Boundary: Edit and Write operations are blocked outside a user-specified directory, enforced via a freeze state file. - Use Case: While hotfixing a production repository, activate guard mode and restrict edits to the src/hotfix/ directory. Any accidental edit outside that path is blocked, and any destructive shell command triggers a confirmation warning. ## Quick Start Ask the AI to activate guard mode and restrict edits to your target directory, for example: enable guard mode and lock edits to the src folder.