octo-freeze

octo-freeze is a command for Claude Code, Cursor from nyldn/claude-octopus. It costs 12 tokens per session (474 once invoked), scanned A, original, MIT.

A command that restricts Edit and Write operations to one specified directory while leaving reading and searching unrestricted.

In plain words
What is it for?
Use it when working inside a specific module, package, or source folder that should be the only editable area.
Why use it?
It prevents accidental edits to unrelated files while you investigate the rest of a project.

Command for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also a Cursor plugin manifest. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is /octo:freeze ./packages/core.

Part of the octo plugin — 70 skills, 106 commands, 10 agents, 18 hooks shipped together

Good fit Use it when working inside a specific module, package, or source folder that should be the only editable area.

Compare 6 commands from other repositories ↓
About the project

Claude Octopus is an orchestration project that sends research, design, and coding tasks to Claude Code and other AI model providers so their results can be compared. Developers use it for multi-model work, disagreement detection, reviews, persistent context, and an optional workflow that moves from discovery through delivery. The catalogue entries are its commands, skills, agents, instructions, hooks, plugins, and settings.

nyldn/claude-octopus · 4,061 stars · on GitHub · reddit.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/nyldn/claude-octopus
agentmods
npx agentmods add commands/nyldn/claude-octopus/octo-freeze

Made for: Claude Code, Cursor.

Or install octo, the plugin that ships this one along with the rest of its 70 skills, 106 commands, 10 agents, 18 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for octo-freeze

README.md
[![agentmods](https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-freeze/github.svg)](https://agentmods.dev/commands/nyldn/claude-octopus/octo-freeze)
Your own site
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-freeze"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-freeze/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for octo-freeze

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-freeze"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-freeze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 474 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00474
Opus 5 $0.00006 $0.00237
Sonnet 5 $0.00002 $0.00095
Haiku 4.5 $0.00001 $0.00047

Measured 8d ago against content hash fde244b2ebfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

octo-freeze scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

  • octo-freeze — 89% identical, 6 lines differ
  • freeze — 89% identical, 3 lines differ
.cursor-plugin/commands/octo-freeze.md · 69 lines

What it actually says

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:
# 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
/octo:freeze ./packages/core
/octo:freeze /absolute/path/to/module

After activation, confirm to the user:

🔒 Freeze mode activated. Edits restricted to: <resolved-path>
   Read/search operations remain unrestricted.
   Use /octo:unfreeze to remove this restriction.

Argument Required

If invoked without a directory argument, ask the user which directory to freeze:

Which directory should I restrict edits to? Example: /octo:freeze src/auth

When to Use

  • Debugging a specific module (auto-activated by skill-debug)
  • Code review where you want to ensure no unrelated changes
  • Focused refactoring within a single package
  • Any time you want to guarantee edit boundaries

See Also

  • /octo:careful — Warn before destructive commands
  • /octo:guard — Activate both careful + freeze together
  • /octo:unfreeze — Remove freeze restriction
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 69 lines · 12 tokens per session scan A fde244b2ebfe

Subscribe to this mod's changes

octo-freeze is a command published in the GitHub repository nyldn/claude-octopus (4,061 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 474 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.