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
Codex CLI (OpenAI)
Codex CLI (OpenAI)
Installation:Authentication (Option 1 - OAuth):Authentication (Option 2 - API Key):Get API key from: https://platform.openai.com/api-keys
Gemini CLI (Google)
Gemini CLI (Google)
Installation:Authentication (Option 1 - OAuth):Authentication (Option 2 - API Key):Get API key from: https://aistudio.google.com/app/apikey
Perplexity (Optional)
Perplexity (Optional)
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.
- 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
Verification
After setup, verify with:- โ Codex: Installed and authenticated (oauth or api-key)
- โ Gemini: Installed and authenticated (oauth or api-key)
- โ Perplexity: Configured (api-key) โ optional
Troubleshooting
npm: command not found
npm: command not found
You need Node.js and npm installed.Install from: https://nodejs.org/
Permission denied when installing CLIs
Permission denied when installing CLIs
Use
sudo npm install -g or configure npm for user directory:codex/gemini: command not found after installation
codex/gemini: command not found after installation
The CLI may not be in your PATH. Try:
API key not persisting after terminal restart
API key not persisting after terminal restart
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
| Feature | Dev Work Mode ๐ง | Knowledge Work Mode ๐ |
|---|---|---|
| Primary Use | Code, implementation | Research, analysis |
| Personas | backend-architect, code-reviewer, debugger | ux-researcher, strategy-analyst, synthesizer |
| Providers | Codex + Gemini + Claude | Gemini + Claude (research-optimized) |
| Commands | develop, review, tdd, security | discover, research, analyze |
| Switch To | /octo:dev | /octo:km on |
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
