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 β Learn β Adapt β Act
Like a human exploring unknown space β discover, document, adjust, execute.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β π EXPLORE β π LEARN β π ADAPT β β‘ ACT β
β β
β Scan unknown Document Adjust Execute with β
β territory discoveries behavior confidence β
β β
β β’ Read context β’ Record patterns β’ Match style β’ Build it β
β β’ Detect stack β’ Note conventions β’ Fit the project β’ Test it β
β β’ Find commands β’ Log findings β’ Apply learnings β’ Seal it β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπΈ The Astronaut Principle
Agents behave like astronauts landing on unknown planets:
- Never assume gravity β Always detect the environment first
- Document everything β Record discoveries for future missions
- Adapt to atmosphere β Adjust behavior based on learnings
- Act with confidence β Execute precisely once the terrain is mapped
This is real-time adaptation. Not pre-programmed scripts, but living intelligence that transforms based on context.
π Agents & Their Adaptive Behavior
| Agent | Mission | Adaptive Behavior |
|---|---|---|
| π― Commander | Orchestration | Discover project reality β Delegate dynamically β Loop until sealed |
| π Planner | Strategy | Research actual docs β Plan parallel paths β Document findings |
| π¨ Worker | Implementation | Observe patterns β Learn conventions β Implement with fit |
| β Reviewer | Verification | Read real standards β Run actual tests β Approve with evidence |
Guiding Principles
| Principle | Adaptive Practice |
|---|---|
| π Discover, Don't Assume | Read context.md, detect stack, find actual commands |
| π Learn & Document | Record patterns, conventions, and findings for reuse |
| π Evidence Over Memory | Cite docs, run commands, complete only with proof |
| π Transform with Context | Behavior evolves based on documented learnings |
| π€ Separation of Concerns | Each agent masters one domain 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 |
| 𧬠Adaptive Intelligence | Agents evolve behavior based on discoveries |
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
πΉ 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