freeze

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

A command that restricts file editing and writing to one specified directory while leaving reading and searching available elsewhere.

In plain words
What is it for?
Use it when you want edits limited to a directory such as src/auth or packages/core.
Why use it?
It prevents accidental changes to unrelated parts of a project during focused work.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the octo plugin — 71 skills, 112 commands, 10 agents, 18 hooks shipped together

Good fit Use it when you want edits limited to a directory such as src/auth or packages/core.

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,537 stars · on GitHub · reddit.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nyldn/claude-octopus
Claude Code
/plugin install octo

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 71 skills, 112 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 freeze

README.md
[![agentmods](https://agentmods.dev/badge/commands/nyldn/claude-octopus/freeze/github.svg)](https://agentmods.dev/commands/nyldn/claude-octopus/freeze)
Your own site
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/freeze"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/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 freeze

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/freeze"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/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 503 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 89% copy Near-identical to another mod 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.00503
Opus 5.5 $0.00005 $0.00201
Sonnet 5.5 $0.00002 $0.00101
Haiku 4.5 $0.00001 $0.00050

Measured 25d ago against content hash b1a23b6c821d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 25d 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

This is a copy

89% identical to octo-freeze — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/freeze.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Resolve the active installation and use its session-state helper. Replace <directory> with the supplied directory as one quoted argument. For guard-on, omit that argument when only careful mode was requested.

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}}"
bash "$OCTO_ROOT/scripts/helpers/guard-state.sh" freeze-on "<directory>"

A nonzero result means protection was not activated or changed. Do not announce success. The helper requires a stable host session ID; a shell PID is not a session identity. A missing directory fails before activation changes.

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

Read the full file on GitHub · 71 lines

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. 25d ago Changed · +1 lines b1a23b6c821d
  2. 2mo ago Changed a4369d40fbd6
  3. 3mo ago First seen · 70 lines · 12 tokens per session scan A d7bc96383be3

Subscribe to this mod's changes

freeze is a command published in the GitHub repository nyldn/claude-octopus (4,537 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 503 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to octo-freeze, differing in 3 lines, and is treated as a copy.

Related

freeze compared with commands from other repositories

freeze next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
freezenyldn/claude-octopusCommand4.5ktodayMITA12Claude Code
syncjikig-ai/soleurCommand21todaynoneA0Claude Code
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code
convergegithub/spec-kitCommand154ktodayMITA35Claude Code