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
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/nyldn/claude-octopus/kmgit clone --depth 1 https://github.com/nyldn/claude-octopusWrote 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/km)<a href="https://agentmods.dev/commands/nyldn/claude-octopus/km"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/km.svg" alt="Measured on agentmods" 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.00014 | $0.00684 |
| Opus 5 | $0.00007 | $0.00342 |
| Sonnet 5 | $0.00003 | $0.00137 |
| Haiku 4.5 | $0.00001 | $0.00068 |
Grade A, and why
km 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 today.
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.
This is a copy
91% identical to octo-km — 8 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Mode Toggle
Toggle between Dev Work Mode and Knowledge Work Mode.
Implementation Instructions
When this command is executed:
-
Parse the argument:
- No argument or "on" → target mode = Knowledge Work (
knowledge_mode: true) - "off" → target mode = Dev Work (
knowledge_mode: false)
- No argument or "on" → target mode = Knowledge Work (
-
Check current mode via
.claude/claude-octopus.local.md:- Target is Dev Work AND file does NOT exist → user is already in Dev Work Mode (default). Do not create the file. Show confirmation only, then exit.
- File exists AND current
knowledge_modealready equals the target → Do not rewrite the file. Show confirmation only, then exit. - Otherwise → proceed to step 3 (real transition needed).
-
Switch modes (only when a real transition is required):
- Before writing, state one sentence: "Switching to Knowledge Work — creating
.claude/claude-octopus.local.md(knowledge_mode: true)." (or the equivalent for Dev Work). - If the file does not exist, create it with minimal frontmatter containing only the fields being set.
- If the file exists, update only the
knowledge_modefield; preserve any other keys. - Confirm with the target mode's emoji (🎓 / 🔧) and active personas.
- Before writing, state one sentence: "Switching to Knowledge Work — creating
Rule (v9.30+): Never create or rewrite .claude/claude-octopus.local.md when the user is already in the target mode. The v9.29 behavior over-executed — it wrote config for a state the user was already in, without explanation. Skip the Write tool entirely when there's nothing to change. See agents/principles/write-intent.md for the general principle.
Usage
/octo:km # Switch to Knowledge Work mode (default action)
/octo:km on # Switch to Knowledge Work mode (explicit)
/octo:km off # Switch to Dev Work mode (same as /octo:dev)
Two Work Modes
Dev Work Mode 🔧 (default)
- Best for: Building features, debugging code, implementing APIs
- Personas: backend-architect, code-reviewer, debugger, test-automator
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.
- today First seen · 63 lines · 14 tokens per session scan A 41171c7201b9
km is a command published in the GitHub repository nyldn/claude-octopus (4,045 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 684 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to octo-km, differing in 8 lines, and is treated as a copy.
Other commands, from other repositories
setup-agents
Scaffold a multi-agent AI setup for any repo. Scans the codebase, interviews the developer, generates agent configs for whichever AI tools the repo uses (Copilot, Claude Code, Cursor, Codex, Windsurf). Use when asked to "set up agents", "scaffold Copilot agents", or "create an AGENTS.md".
datadog
Set up and troubleshoot Datadog — Agent deployment on Kubernetes, APM instrumentation, Log Management, Monitors, Dashboards, SLOs, Synthetic tests, and live incident investigation using the Datadog MCP server. Covers Terraform-managed Datadog resources.
aws-profile
AWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code and Claude Code MCP configs, and scan AWS Organization accounts.
agent-triage
Find and triage Quickchat conversations that need a human.
save
Save session progress as a structured checkpoint. Like a video game save: captures where you are, what you were doing, and what to do next.
help
How to configure Mr. Meeseeks (which sounds play, and how to mute them).