shell
$ npx -y skills add nyldn/claude-octopus --agent claude-codeShips with octo. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/freeze
Context preview
What this command does when you run it.
[advanced] Restrict file edits to a specific directory boundary
Stats
Stars3,869
Forks362
LanguageShell
LicenseMIT
Ships with octo
Command definition
freeze.md
--- command: freeze description: "[advanced] Restrict file edits to a specific directory boundary" --- # Freeze Mode - Edit Boundary Enforcement ## Instructions When the user invokes `/octo:freeze <directory>`, activate freeze mode to restrict Edit and Write operations to the specified directory. ### Activation 1. Resolve the directory argument to an absolute path 2. Ensure trailing `/` for safe prefix matching 3. Write the boundary to the state file: ```bash # Resolve to absolute path freeze_dir="$(cd "$1" 2>/dev/null && pwd)" || freeze_dir="$1" # Write state _OCTO_SESSION_ID="${CLAUDE_CODE_SESSION_ID:-${CLAUDE_SESSION_ID:-$$}}" echo "${freeze_dir}" > "/tmp/octopus-freeze-${_OCTO_SESSION_ID}.txt" ``` ### What It Does Freeze mode adds a PreToolUse safety net on Edit and Write tools. Any file operation targeting a path **outside** the frozen directory is blocked with a deny decision. This prevents accidental edits to unrelated code. **Blocked:** Edit, Write to files outside the boundary **Unaffected:** Read, Bash, Glob, Grep (investigation stays unrestricted) ### Usage ``` /octo:freeze src/auth
