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.
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.
/plugin marketplace add nyldn/claude-octopus/plugin install octoWrote 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.
[](https://agentmods.dev/commands/nyldn/claude-octopus/guard)<a href="https://agentmods.dev/commands/nyldn/claude-octopus/guard"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/guard/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.
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/guard"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00011 | $0.00503 |
| Opus 5.5 | $0.00004 | $0.00201 |
| Sonnet 5.5 | $0.00002 | $0.00101 |
| Haiku 4.5 | $0.00001 | $0.00050 |
Grade C, and why
guard scanned grade C with 1 finding 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **Careful mode**: Warns before destructive Bash commands (rm -rf, DROP TABLE, git push --force, etc.) This is a copy
92% identical to octo-guard — 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.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
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" guard-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
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 for focused work in sensitive codebases.
Usage
/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.
Argument Required
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
When to Use
- Starting work in a production-adjacent codebase
- Debugging with maximum safety
- When you want both protections without two separate commands
See Also
/octo:careful— Activate only destructive command warnings/octo:freeze— Activate only edit boundary enforcement/octo:unfreeze— Remove freeze restriction
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.
- 25d ago Changed · -2 lines 63fa2784f8dc
- 2mo ago Changed 07d01b774531
- 3mo ago First seen · 76 lines · 11 tokens per session scan C a82ad7d185ab
guard is a command published in the GitHub repository nyldn/claude-octopus (4,537 stars, last pushed today), licensed MIT. It adds 11 tokens to every session and 503 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 92% identical to octo-guard, differing in 3 lines, and is treated as a copy.
guard compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| guardnyldn/claude-octopus | Command | 4.5k | today | MIT | C | 11 | Claude Code |
| syncjikig-ai/soleur | Command | 21 | today | none | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 154k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 154k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 154k | today | MIT | A | 35 | Claude Code |