Skip to main content

What are workflows?

Workflows are structured patterns for coordinating multiple AI providers across phases. Unlike one-shot queries, workflows manage state, enforce quality gates, and persist decisions across sessions.
Claude Octopus gives you workflows, not just orchestration infrastructure. These patterns are battle-tested across hundreds of projects.

Core workflow types

Claude Octopus includes several pre-built workflow patterns:

Full Double Diamond workflow

Command: /octo:embracePhases: All four (Discover → Define → Develop → Deliver)Use when:
  • Starting a new feature from scratch
  • Need comprehensive end-to-end development
  • Want research, planning, implementation, and validation
Flow:Example:
Duration: 5-15 minutes
Cost: $0.10-0.30

Specialized workflows

Beyond core patterns, Claude Octopus includes specialized workflows:

TDD

Command: /octo:tddTest-driven development with red-green-refactor cycle

Security

Command: /octo:securityOWASP vulnerability scan and remediation

Debug

Command: /octo:debugRoot cause analysis and fix generation

PRD

Command: /octo:prdAI-optimized PRD with 100-point scoring

Review

Command: /octo:reviewMulti-perspective code review with 4x10 scoring

Research

Command: /octo:researchDeep multi-source research with synthesis

Parallel

Command: /octo:parallelLaunch multiple agents in parallel

Sentinel

Command: /octo:sentinelGitHub-aware work monitor

Autonomy modes

Workflows support three autonomy levels:

Supervised mode (default)

Behavior: Ask for approval before each phaseUse when:
  • Learning the workflow
  • High-stakes or costly projects
  • Want control over each step
Example flow:
Pros:
  • Full control
  • Cost awareness
  • Learning opportunity
Cons:
  • Slower execution
  • Requires human presence

Workflow composition

Workflows can be nested and composed:

Sequential composition

Example:

Parallel composition

Example:

Conditional composition

Example:

Quality gates and validation

Workflows enforce quality standards at key points:

Gate placement

Gate criteria

Checks:
  • Research completeness (≥3 sources)
  • Perspective diversity (multiple viewpoints)
  • Actionable insights (clear next steps)
Threshold: 75% consensus
Checks:
  • Clear problem statement
  • Measurable success criteria (≥3 criteria)
  • Known constraints and boundaries
  • Stakeholder agreement
Threshold: 75% consensus
Checks:
  • Subtask success rate ≥75%
  • Provider agreement on approach
  • No critical conflicts
  • Implementation completeness
Threshold: 75% consensus (configurable)
Checks:
  • Code quality score
  • Security findings (no critical)
  • Performance benchmarks met
  • Test coverage ≥80%
Thresholds:
  • ≥90%: SHIP IT
  • 75-89%: SHIP WITH CAUTION
  • Less than 75%: DO NOT SHIP

State management

Workflows persist state across phases and sessions:

State persistence

Context passing

Each phase reads context from prior phases:
State persists across Claude Code plan mode context clears (v2.1.63+). Workflows automatically restore from files.

Workflow interruption and resume

Workflows can be paused and resumed:

Save checkpoint

Resume workflow

Workflow debugging

Debug workflows with built-in tools:

Status check

Debug mode

Doctor diagnostics

Cost optimization

Workflows are designed for cost efficiency:

Smart routing

Provider router selects cheapest capable provider based on task requirements

Parallel execution

Research and review phases run providers simultaneously (2x faster)

Prompt caching

System prompts and context cached across phases

Early exit

Quality gates prevent wasted work on doomed paths
Cost controls:

Best practices

/octo:embrace ensures nothing is skipped. Research, planning, implementation, and validation all contribute to quality.
When refining existing work, use single-phase commands (/octo:develop, /octo:review) instead of full embrace.
If a gate fails, investigate why. Forcing work through undermines the methodology and wastes downstream effort.
Learn the workflow in supervised mode. Once confident, switch to semi-autonomous or autonomous for faster execution.
Use parallel composition for independent features. Use sequential for dependent work.

Next steps

Double Diamond

Learn about the four-phase methodology

Personas

Understand specialized agent personas

Commands reference

Browse all 39 workflow commands

Get started

Install and run your first workflow