npx claudepluginhub nyldn/claude-octopus --plugin octo# Guard Mode - Full Safety Activation ## Instructions When the user invokes `/octo:guard <directory>`, activate both careful mode and freeze mode in a single command. ### Activation 1. Activate careful mode (destructive command warnings): 2. Activate freeze mode (edit boundary enforcement): ### What It Does Guard mode combines both safety primitives: - **Careful mode**: Warns before destructive Bash commands (rm -rf, DROP TABLE, git push --force, etc.) - **Freeze mode**: Blocks Edit/Write operations outside the specified directory This is the recommended safety configuration fo...
When the user invokes /octo:guard <directory>, activate both careful mode and freeze mode in a single command.
echo "active" > "/tmp/octopus-careful-${CLAUDE_SESSION_ID:-$$}.txt"
freeze_dir="$(cd "$1" 2>/dev/null && pwd)" || freeze_dir="$1"
echo "${freeze_dir}" > "/tmp/octopus-freeze-${CLAUDE_SESSION_ID:-$$}.txt"
Guard mode combines both safety primitives:
This is the recommended safety configuration for focused work in sensitive codebases.
/octo:guard src/auth
/octo:guard ./packages/core
/octo:guard /absolute/path/to/module
After activation, confirm to the user:
๐ก๏ธ Guard mode activated:
โ ๏ธ Careful: Destructive commands require confirmation
๐ Freeze: Edits restricted to <resolved-path>
Use /octo:unfreeze to remove edit restriction.
If invoked without a directory argument, activate only careful mode and ask about freeze:
โ ๏ธ Careful mode activated (destructive command warnings).
Which directory should I restrict edits to? Example: /octo:guard src/auth
/octo:careful โ Activate only destructive command warnings/octo:freeze โ Activate only edit boundary enforcement/octo:unfreeze โ Remove freeze restriction