Skip to main content

System Commands

System commands help you configure providers, diagnose issues, manage project state, and switch between work modes.

/octo:setup - Provider Configuration

Check setup status and get configuration instructions for AI providers.

Syntax

What It Checks

  • Codex CLI installation and authentication
  • Gemini CLI installation and authentication
  • Perplexity API key configuration (optional)
  • Environment variables and shell configuration
  • Node.js and npm availability

Output Example

Provider Setup

Installation:
Authentication (Option 1 - OAuth):
Authentication (Option 2 - API Key):
Get API key from: https://platform.openai.com/api-keys
Installation:
Authentication (Option 1 - OAuth):
Authentication (Option 2 - API Key):
Get API key from: https://aistudio.google.com/app/apikey
Purpose: Adds live web search with citations to research workflowsConfiguration:
Get API key from: https://www.perplexity.ai/settings/api
Perplexity is fully optional. All workflows work without it.

Do I Need Both Providers?

No! You only need ONE provider (Codex or Gemini) to use Claude Octopus.
Provider Strengths:
  • Codex (OpenAI): Best for code generation, refactoring, complex logic
  • Gemini (Google): Best for analysis, long-context understanding, multi-modal tasks
  • Perplexity: Adds live web search to ground research in current data
Having both enables multi-AI workflows where different models review each other’s work, but a single provider works great for most tasks.

Verification

After setup, verify with:
You should see:
  • βœ“ Codex: Installed and authenticated (oauth or api-key)
  • βœ“ Gemini: Installed and authenticated (oauth or api-key)
  • βœ“ Perplexity: Configured (api-key) β€” optional

Troubleshooting

You need Node.js and npm installed.Install from: https://nodejs.org/
Use sudo npm install -g or configure npm for user directory:
The CLI may not be in your PATH. Try:
Add the export statement to your shell profile:

/octo:doctor - Environment Diagnostics

Comprehensive health check for Claude Octopus environment.

Syntax

What It Checks

Provider Health

  • Codex CLI availability and authentication
  • Gemini CLI availability and authentication
  • Perplexity API configuration
  • Model access and API quotas

Configuration

  • Plugin installation and version
  • Environment variables
  • File permissions and paths
  • Hook registration status

System Components

  • Scheduler service status
  • orchestrate.sh script availability
  • Result file directory access
  • Session state management

Output Example

When to Use

  • After initial installation
  • When commands aren’t working as expected
  • Before running complex workflows
  • After environment changes (new shell, updated keys)
  • When debugging provider issues

Natural Language

Just say:
  • β€œRun doctor”
  • β€œCheck my setup”
  • β€œIs everything working?”
  • β€œWhy isn’t octopus working?”

/octo:status - Project State

Show current Claude Octopus workflow and provider status.

Syntax

What It Shows

  • Current work mode (Dev/Knowledge)
  • Provider readiness and availability
  • Active workflow phase (if any)
  • Available result files from recent runs
  • Recommended next command

Output Example

When to Use

  • Check current workflow state
  • Verify provider availability before starting
  • Find result files from previous phases
  • Understand where you are in a workflow

/octo:resume - Restore Context

Resume work from the last known Claude Octopus session.

Syntax

What It Does

  • Restores context from persisted Octopus state
  • Shows completed phases and current position
  • Identifies open blockers or issues
  • Suggests immediate next action

Output Example

When to Use

  • Starting a new terminal session
  • After a break in work
  • When you’ve lost context
  • To check what’s left to do
If no state exists, resume will explain there’s nothing to restore and suggest starting with /octo:embrace or /octo:discover.

/octo:dev - Dev Work Mode

Switch to Dev Work Mode - optimized for software development.

Syntax

What It Does

  • Activates development-focused AI personas
  • Optimizes workflows for code, architecture, debugging
  • Sets default mode for technical tasks
  • Persists across sessions

Dev Mode Personas

  • backend-architect - System design and architecture
  • code-reviewer - Code quality and best practices
  • debugger - Problem diagnosis and fixes
  • test-automator - Testing and quality assurance
  • performance-engineer - Optimization and scalability

Best For

  • Building features and implementing APIs
  • Debugging code and fixing bugs
  • Technical architecture decisions
  • Code review and refactoring
  • Test-driven development

Output Example


/octo:km - Knowledge Work Mode

Switch to Knowledge Work Mode - optimized for research and analysis.

Syntax

What It Does

  • Activates research-focused AI personas
  • Optimizes workflows for user research, strategy, literature reviews
  • Persists across sessions
  • Can be toggled on/off

Knowledge Mode Personas

  • ux-researcher - User research and insights
  • strategy-analyst - Strategic planning and analysis
  • research-synthesizer - Literature review and synthesis
  • data-analyst - Quantitative analysis
  • market-researcher - Competitive analysis

Best For

  • User research and interviews
  • Strategy analysis and planning
  • Literature reviews and synthesis
  • Market research and competitive analysis
  • Document analysis and summarization

Output Example

Toggling Modes


Work Mode Comparison

Both modes use the same AI providers but with different personas and optimizations for the task type.

Configuration Files

Claude Octopus uses these configuration files:

.claude/claude-octopus.local.md

Local configuration for work mode and preferences

.claude/session-intent.md

Intent contract from planning phase (created by /octo:plan)Captures:
  • User goal and success criteria
  • Constraints and boundaries
  • Knowledge level and scope clarity

.claude/session-plan.md

Execution plan with phase weights (created by /octo:plan)Contains:
  • Phase weights (Discover/Define/Develop/Deliver)
  • Deliverable description
  • Execution commands

Environment Variables

Provider Authentication

Model Configuration

Provider Control

Workflow Control


Next Steps

Workflow Commands

Learn the Double Diamond phases

Skill Commands

Explore specialized capabilities