Package Exports
- opencode-orchestrator
Readme
OpenCode Orchestrator
π Multi-Agent Orchestration Plugin for OpenCode
β‘ Quick Start
npm install -g opencode-orchestratorThen in OpenCode:
/task "Build a REST API with authentication"π§ Core Philosophy
Explore β Adapt β Act
Like a human exploring unknown space β never assume, always discover.
Behaves like an astronaut exploring the unknown.
In unfamiliar environments: detect without assuming, adapt to discoveries, act with confidence.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β π EXPLORE β π ADAPT β β‘ ACT β
β β
β Scan the Adjust to Execute with β
β unknown what you find confidence β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββAgents & Their Philosophy
| Agent | Role | Philosophy |
|---|---|---|
| π― Commander | Orchestrator | Discover project β Delegate intelligently β Loop until sealed |
| π Planner | Strategist | Research docs β Plan with parallelism β Document findings |
| π¨ Worker | Implementer | Observe patterns β Learn conventions β Implement with fit |
| β Reviewer | Gatekeeper | Read standards β Run tests β Approve with evidence |
Guiding Principles
| Principle | Practice |
|---|---|
| π Discover, Don't Assume | Read context.md, detect tech stack, find build/test commands |
| π Evidence Over Memory | Cite docs, run actual commands, complete only with proof |
| π Adapt to the Project | Match existing patterns, follow discovered conventions |
| π€ Separation of Concerns | Each agent does one thing excellently |
ποΈ Architecture
/task "Build REST API"
β
βββββββββββββββββ§ββββββββββββββββ
β π― COMMANDER β Delegate+Loop β
βββββββββββββββββ€ββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
βΌ βΌ βΌ
βββββββββ βββββββββ βββββββββ
βPLANNERβ βWORKER β βWORKER β β π₯ 50 PARALLEL
βplan.mdβ βauth.tsβ βapi.ts β SESSIONS
βββββββββ βββββββββ βββββββββ
β β β
βββββββββββββββββΌββββββββββββββββ
βΌ
βββββββββββββββββ§ββββββββββββββββ
β β
REVIEWER β Verify β
βββββββββββββββββ€ββββββββββββββββ
β
ββββββββββ΄βββββββββ
β TODO 100%? β
β Issues = 0? β
ββββββββββ¬βββββββββ
No β β Yes
β»οΈ LOOP ποΈ SEALEDβ¨ Key Features
| Feature | Description |
|---|---|
| β‘ 50 Parallel Sessions | True multi-threading with isolated contexts |
| π₯ Parallel File Builds | Workers build different files simultaneously |
| π§© Smart Distribution | One file = one worker. No conflicts |
| π Real-Time Sync | Shared .opencode/ state across all agents |
| π‘οΈ Auto Verification | E2E tests, import checks, integration validation |
| π©Ή Self-Healing | Auto-recovery with 3 retries per session |
Self-Healing Details
| Error Type | Recovery Action |
|---|---|
| Tool crash | Inject recovery prompt |
| Rate limit | Exponential backoff + retry |
| Context overflow | Smart compaction |
| Session timeout | Resume from checkpoint |
| Build failure | Loop back, fix, retry |
πΈ Screenshots
TUI
Window
π Documentation
- System Architecture β Full technical deep-dive
ποΈ Uninstall
npm uninstall -g opencode-orchestratorπΉ Developer's Words
I believe playing the piano is also a form of orchestration.
The harmony of polyphony β multiple voices β and homophony β a single melodic line.
Each voice sings its most beautiful song from its own place, yet when combined, they create one grand, beautiful melody. I believe this structure is no different from AI agents.
π License
MIT License. LICENSE