Overview
Claude Octopus is a multi-AI orchestration framework that coordinates three AI providers through a plugin architecture for Claude Code. The system turns one model into three, assigning each provider a distinct role with adversarial review and consensus gates.Claude Octopus works with just Claude out of the box. Add Codex or Gemini to unlock multi-AI orchestration features.
Core components
The system is built from four main components that work together:orchestrate.sh
The orchestration engine that coordinates all AI providers and manages workflow execution
Agents & Personas
33 specialized personas that activate automatically based on task requirements
Skills & Workflows
39 commands implementing Double Diamond phases and specialized workflows
Hooks & State
Event-driven hooks and persistent state management for session continuity
Component interaction
Data flow
- User request - Natural language or command triggers a workflow
- Plugin routing - Claude Octopus parses intent and selects appropriate skill
- Orchestration -
orchestrate.shcoordinates provider execution:- Parallel for research and review phases
- Sequential for definition and synthesis
- Adversarial for debate and validation
- Provider execution - External CLIs execute with isolated environments
- Consensus building - 75% agreement threshold enforced at quality gates
- Result synthesis - Claude combines perspectives into unified output
- State persistence - Decisions and context stored in
.octo/and~/.claude-octopus/
Plugin architecture for Claude Code
Claude Octopus integrates with Claude Code through a structured plugin system:Directory structure
Plugin lifecycle
1
Installation
User installs via
/plugin install claude-octopus@nyldn-plugins2
Setup
/octo:setup detects available providers and configures authentication3
Activation
Commands trigger via
/octo:* prefix or natural language with octo keyword4
Execution
Hooks fire on SessionStart, SubagentStart, ConfigChange, WorktreeCreate events
5
State management
Decisions persist across sessions in
.octo/ directory and ~/.claude-octopus/Execution model
Provider coordination
Claude Octopus assigns specific roles to each AI provider:Providers run with isolated environments (v8.7.0+) to prevent API key leakage and limit environment variable access.
Execution patterns
Different workflows use different execution patterns:- Parallel
- Sequential
- Adversarial
Discover & Deliver phasesBenefits: Faster execution, diverse perspectives
Quality gates
Quality gates enforce standards between workflow phases: Consensus threshold: 75% (configurable viaCLAUDE_OCTOPUS_QUALITY_THRESHOLD)
Measured by:
- Subtask success rate during development
- Agreement score across providers
- Validation score during review
Security architecture
Environment isolation (v8.7.0+)
External providers run with minimal environment access:Trust markers
Provider outputs are wrapped with trust indicators:Integrity verification
Result files are hashed (SHA-256) and tracked in.integrity-manifest to detect tampering.
Cost transparency
Visual indicators show exactly which providers are active:
Example banner:
Users can set
OCTOPUS_MAX_COST_USD to enforce spending limits. Workflows abort if estimated cost exceeds the threshold.Performance characteristics
Typical execution times
Optimization strategies
Smart cost routing (v8.20.0+)
Smart cost routing (v8.20.0+)
Provider router selects cheapest capable provider based on:
- Bayesian trust scoring
- Historical performance
- Cost per token
- Capability matching
Prompt caching
Prompt caching
Repeated workflows reuse cached context:
- System prompts cached
- Project context cached
- Persona definitions cached
Parallel execution
Parallel execution
Research and review phases run providers simultaneously:
- 2x faster than sequential
- Better diversity of perspectives
Version compatibility
Claude Octopus detects Claude Code version and adapts features:Feature detection is automatic. No manual configuration needed.
Next steps
Double Diamond methodology
Learn about the four-phase workflow structure
Multi-AI orchestration
Understand how providers coordinate and reach consensus
Personas
Explore the 33 specialized agent personas
Workflows
Discover workflow patterns and autonomy modes
