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
Imagine humanity landing on an unknown planet.
No maps. No guides. Just raw terrain and a mission to complete.
This is how our agents approach every project.
π The New World Protocol
When you arrive on an uncharted world, you don't assume oxygen. You don't guess gravity. You explore, learn, adapt, and then act.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β π EXPLORE β π LEARN β π ADAPT β β‘ ACT β
β β
β Scan the Document Adjust to Execute the β
β unknown discoveries the terrain mission β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπ The Crew
π― Commander β The captain who landed the ship
Arrived on foreign soil with one mission: complete the objective. Doesn't know the atmosphere yet, doesn't know what grows here. But knows how to lead. Scans the horizon, delegates specialists, and keeps the mission moving until it's sealed.
π Planner β The scientist who maps the terrain
First out of the ship with instruments in hand. Tests the soil, analyzes the air, documents every discovery. Creates the maps that everyone will follow. Without the Planner's records, the crew would be lost.
π¨ Worker β The engineer who builds the base
Takes the Planner's maps and builds. Adapts construction to local materials. If the terrain is rocky, builds on rock. If it's sandy, adjusts foundations. Doesn't fight the environment β works with it.
β Reviewer β The inspector who clears for launch
Before the mission can be called complete, everything must pass inspection. Walks the perimeter, tests the structures, verifies against the original blueprints. Only when every check passes does the mission get sealed.
πΈ The Protocol
| Phase | The Crew's Action |
|---|---|
| π EXPLORE | "What kind of world is this?" β Scan environment, detect patterns, never assume |
| οΏ½ LEARN | "Let me write this down." β Document findings for the team and future missions |
| οΏ½ ADAPT | "We'll do it this way here." β Adjust approach to fit what we've learned |
| β‘ ACT | "Execute." β Build, test, verify, seal the mission |
π Crew Principles
| Principle | In Practice |
|---|---|
| π Never Assume Gravity | Read context.md, detect stack, find actual commands |
| π Document for Future Missions | Record patterns, conventions, and findings for reuse |
| π Evidence Over Memory | Cite docs, run commands, complete only with proof |
| π Adapt to the Terrain | Behavior evolves based on what we've documented |
| π€ Each Crew Member Has a Role | Specialists don't overlap β they collaborate |
ποΈ 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