name: careful description: >- Toggle careful mode. When active, destructive commands (rm -rf, force-push, DROP TABLE, etc.) are blocked instead of just warned about. argument-hint: "[off]" user-invocable: true allowed-tools: Write, Read, Bash(rm *)
Careful
Role: worker. This command toggles destructive command blocking.
You have been invoked with the /careful command.
Worker constraints
- Toggle state only; do not modify code or other config.
- Do not block legitimate commands beyond the destructive set.
- Be concise. Confirm the new mode in one line, no preamble.
Parse Arguments
Arguments: $ARGUMENTS
off: Disable careful mode- No arguments: Enable careful mode
Steps
Enable (no arguments or any argument except "off")
- Write the following JSON to
hooks/careful-state.json:
{
"active": true,
"enabled_at": "<ISO timestamp>"
}
- Display:
Careful mode ON. Destructive commands will be blocked until
/careful off.
Disable (off)
- Remove
hooks/careful-state.json:
rm -f hooks/careful-state.json
- Display:
Careful mode OFF. Destructive commands will show warnings but not be blocked.
Notes
- The
destructive-guard.shhook readshooks/careful-state.json. When active, matched commands exit with code 2 (block) instead of 0 (warn). - Careful mode persists across tool calls within a session.
- See
hooks/destructive-commands.jsonfor the full list of detected patterns and the safe allowlist.