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:- Embrace
- Factory
- Debate
- Individual Phases
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
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 cycleSecurity
Command:
/octo:securityOWASP vulnerability scan and remediationDebug
Command:
/octo:debugRoot cause analysis and fix generationPRD
Command:
/octo:prdAI-optimized PRD with 100-point scoringReview
Command:
/octo:reviewMulti-perspective code review with 4x10 scoringResearch
Command:
/octo:researchDeep multi-source research with synthesisParallel
Command:
/octo:parallelLaunch multiple agents in parallelSentinel
Command:
/octo:sentinelGitHub-aware work monitorAutonomy modes
Workflows support three autonomy levels:- Supervised
- Semi-Autonomous
- Autonomous
Supervised mode (default)
Behavior: Ask for approval before each phaseUse when:- Learning the workflow
- High-stakes or costly projects
- Want control over each step
- Full control
- Cost awareness
- Learning opportunity
- 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
Discover → Define gate
Discover → Define gate
Checks:
- Research completeness (≥3 sources)
- Perspective diversity (multiple viewpoints)
- Actionable insights (clear next steps)
Define → Develop gate
Define → Develop gate
Checks:
- Clear problem statement
- Measurable success criteria (≥3 criteria)
- Known constraints and boundaries
- Stakeholder agreement
Develop → Deliver gate
Develop → Deliver gate
Checks:
- Subtask success rate ≥75%
- Provider agreement on approach
- No critical conflicts
- Implementation completeness
Deliver validation
Deliver validation
Checks:
- Code quality score
- Security findings (no critical)
- Performance benchmarks met
- Test coverage ≥80%
- ≥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
Best practices
Use full workflows for new features
Use full workflows for new features
/octo:embrace ensures nothing is skipped. Research, planning, implementation, and validation all contribute to quality.Use individual phases for iterations
Use individual phases for iterations
When refining existing work, use single-phase commands (
/octo:develop, /octo:review) instead of full embrace.Respect quality gates
Respect quality gates
If a gate fails, investigate why. Forcing work through undermines the methodology and wastes downstream effort.
Start supervised, graduate to autonomous
Start supervised, graduate to autonomous
Learn the workflow in supervised mode. Once confident, switch to semi-autonomous or autonomous for faster execution.
Compose workflows strategically
Compose workflows strategically
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
