Skip to content
Automation
Command

/plan

Intelligent plan builder - creates strategic execution plans (doesn't execute). Use /octo:embrace to execute plans.

From plugin
octo
4.3k53 skills49 agents53 commands18 hooks
> /plugin marketplace add nyldn/claude-octopus

Command definition

plan.md
command: plan
disable-model-invocation: true
description: "Intelligent plan builder - creates strategic execution plans (doesn't execute). Use /octo:embrace to execute plans."
aliases:
  - build-plan
  - intent

Plan - Intelligent Plan Builder

Load `skills/blocks/engineering-method-selection.md` from the installed plugin and apply only the methods relevant to this task. Preserve this entry point's execution contract and output format. Read referenced skills as instructions; do not invoke the current command recursively or add provider calls from a seat.

**Creates strategic execution plans based on user intent. Saves plans for review and optional execution with /octo:embrace.**

Key Behavior

After a draft, use `/octo:refine` only when independent rubric scoring or bounded iteration is requested. Ordinary plan edits do not add judges. See `docs/CLAUDE-NATIVE-INTEGRATION.md` for advisor and native workflow choices.

  • **Creates plans** - Captures intent, analyzes requirements, generates weighted execution strategy
  • **Saves to files** - Stores each plan and intent contract in a unique run directory under the project-owned `.octo/plans/` namespace, or under octo-owned session storage when there is no project
  • **Doesn't execute** - Plans are saved for review; execution requires user confirmation
  • **Optional execution** - Can load `/octo:embrace` after explicit user approval or execute later
  • **Prototype handoff** - Can propose one bounded experiment without writing or launching providers in native plan mode

Prototype proposal

When one risky assumption blocks the plan, offer a prototype with one question, hypothesis, deadline, artifact path, source revision, and success signal. In native read-only plan mode, present the proposal only. After explicit execution approval, load `skill-prototype` and store artifacts through `scripts/plan-storage.sh`. Choosing a prototype does not authorize deployment, provider calls, browser login, repository rewrites, or new permissions.

Before filing implementation tasks, map unresolved decisions and their dependency graph. A cycle withholds ready status. Claims must use the configured tracker's atomic operation and be read back before work starts. On tracker failure, save an explicitly unfiled proposal in the plan directory and stop tracker writes.

🤖 INSTRUCTIONS FOR CLAUDE

MANDATORY: Detect Plan Mode Write Conflict Before Starting

**THIS CHECK RUNS FIRST — before intent capture, before any artifact write.**

Native plan mode blocks all Write/Edit tool calls until `ExitPlanMode` is called. If you are currently in plan mode (you entered it earlier this session or the harness placed you in it), attempting to write `${OCTO_PLAN_DIR}/session-intent.md` or `${OCTO_PLAN_DIR}/session-plan.md` will silently fail, producing a degraded native plan instead of a full octo multi-provider plan.

**If you are in plan mode when /octo:plan is invoked, you MUST:**

1. Emit this exact warning as the very first output:

   ⚠️  OCTO PLAN DEGRADED — Plan Mode Write Conflict

   Native plan mode is active. Octo cannot save its planning artifacts
   (session-intent.md, session-plan.md) while plan mode
   restricts writes. You are getting display-only output — this is NOT
   a full octo multi-provider plan.

   To get the full octo plan:
     1. Exit or cancel native plan mode
     2. Re-run /octo:plan

   Continuing with plan visualization only (no artifacts saved)…

2. Skip Step 2 (Create Intent Contract) and Step 5 (Save the Plan) entirely. Do not attempt these writes — they will silently fail. 3. Complete Steps 1, 3, 4, and 6 so the user sees the visualization. 4. Repeat the re-run reminder at the end of Step 6.

**Do NOT silently fall through to generic native planning. The user invoked /octo:plan deliberately. A visible degradation warning is mandatory.**

---

Resolve Plan Storage Location

**After confirming native plan mode is not active, resolve one unique run directory before creating either artifact. Every other step in this command reads or writes `${OCTO_PLAN_DIR}/session-intent.md` and `${OCTO_PLAN_DIR}/session-plan.md`. Never substitute a bare `.claude/session-intent.md` or `.claude/session-plan.md` literal:**

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}}"
PLAN_STORAGE="$OCTO_ROOT/scripts/plan-storage.sh"
FEATURE_CONTEXT=$(bash "$OCTO_ROOT/scripts/helpers/feature-workflow.sh" prepare plan "<feature name>" "${OCTOPUS_FEATURE:-}")
if jq -e '.ambiguous == true' <<< "$FEATURE_CONTEXT" >/dev/null; then
  echo "Select a feature directory before planning"
  exit 1
fi
if jq -e 'has("spec_path")' <<< "$FEATURE_CONTEXT" >/dev/null; then
  FEATURE_SELECTOR=$(jq -r 'if .feature == "" then .spec_path else .feature end' <<< "$FEATURE_CONTEXT")
  FEATURE_RUNTIME_DIR=$(jq -r '.runtime_dir' <<< "$FEATURE_CONTEXT")
  OCTOPUS_SESSION_PLANS="$FEATURE_RUNTIME_DIR/plan-drafts"
  export OCTOPUS_SESSION_PLANS
  bash "$OCTO_ROOT/scripts/helpers/feature-workflow.sh" boundary plan "$FEATURE_SELECTOR"
fi
OCTO_PLAN_DIR="$("$PLAN_STORAGE" create "$PWD")" || {
  echo "Unable to resolve safe plan draft storage" >&2
  exit 1
}
echo "Plan draft directory: ${OCTO_PLAN_DIR}"

If several features exist, ask the user to select one with the host question tool, then rerun storage resolution. Do not choose the newest directory.

The resolver hard-blocks the global `~/.claude/` directory, detects git and marker-file project roots, creates a unique directory for every invocation, and records that directory for the current host session and workspace. Running `/octo:plan` from `$HOME` or another non-project directory uses `~/.claude-octopus/sessions/<session-id>/plans/<run-id>/`. Project runs use `<project-root>/.octo/plans/<run-id>/`.

Keep the absolute path printed by the resolver and use that exact path in every later Read, Write, Edit, and Bash action. If the path must be recovered in a later shell

Read more
@nyldn
Ships withocto

Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code

4.3k70 skills49 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.3k
Star history of nyldn/claude-octopus on GitHub, a chart by star-history.com

Other commands on octo.

auto

auto

Command

Smart router - Single entry point with natural language intent detection

@nyldn@nyldnInstall Command
brainstorm

brainstorm

Command

Start a creative thought partner brainstorming session

@nyldn@nyldnInstall Command
budget-mode

budget-mode

Command

Switch Octopus model routing to the configured budget tier

@nyldn@nyldnInstall Command
careful

careful

Command

[advanced] Activate destructive command warnings for the session

@nyldn@nyldnInstall Command
costs

costs

Command

[advanced] Compatibility view of the deterministic Octopus usage report

@nyldn@nyldnInstall Command
council

council

Command

Multi-LLM council for advice, decision support, implementation plans, and gated implementation

@nyldn@nyldnInstall Command

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n10d209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris11d18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command