Skip to main content

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

  1. User request - Natural language or command triggers a workflow
  2. Plugin routing - Claude Octopus parses intent and selects appropriate skill
  3. Orchestration - orchestrate.sh coordinates provider execution:
    • Parallel for research and review phases
    • Sequential for definition and synthesis
    • Adversarial for debate and validation
  4. Provider execution - External CLIs execute with isolated environments
  5. Consensus building - 75% agreement threshold enforced at quality gates
  6. Result synthesis - Claude combines perspectives into unified output
  7. 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-plugins
2

Setup

/octo:setup detects available providers and configures authentication
3

Activation

Commands trigger via /octo:* prefix or natural language with octo keyword
4

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:
Discover & Deliver phases
Benefits: Faster execution, diverse perspectives

Quality gates

Quality gates enforce standards between workflow phases: Consensus threshold: 75% (configurable via CLAUDE_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:
Claude outputs pass through unchanged (trusted by default).

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

Provider router selects cheapest capable provider based on:
  • Bayesian trust scoring
  • Historical performance
  • Cost per token
  • Capability matching
Repeated workflows reuse cached context:
  • System prompts cached
  • Project context cached
  • Persona definitions cached
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