Skip to content

gmh5225/opencode-orca

 
 

Repository files navigation

opencode-orca 🪼

OpenCode plugin for safe and effective agent orchestration.

Requirements

Features

  • Type-enforced contracts - Zod discriminated union validation for all agent messages
  • State machine orchestration - IDLE/EXECUTING states with human-in-the-loop gates
  • Session continuity - Persistent context between agents via session_id tracking
  • Per-agent supervision - Checkpoint protocol for approval gates on sensitive operations

Architecture

User Input
    │
    ▼
  Orca (Orchestrator)
    │
    ├──► Planner (Planning)
    │
    └──► Specialists (Execution)
         ├── Coder
         ├── Tester
         ├── Reviewer
         ├── Researcher
         ├── Document Writer
         └── Architect

Installation

bunx @ex-machina/opencode-orca@latest install

See Getting Started for verification steps and first use.

Configuration

Create .opencode/orca.json to customize behavior:

{
  "settings": {
    "defaultSupervised": false,
    "defaultModel": "anthropic/claude-sonnet-4-20250514"
  },
  "agents": {
    "coder": {
      "supervised": true
    }
  }
}

See Configuration for the full reference.

Documentation

Development

# Install dependencies
bun install

# Build
bun run build

# Watch mode
bun run dev

# Type check
bun run typecheck

# Test
bun test

License

MIT

About

OpenCode plugin for Orca + Specialists agent orchestration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 99.3%
  • Shell 0.7%