Package Exports
- opencode-orchestrator
Readme
π 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 β
β Scan Document Adjust Execute β
βββββββββββββββββββββββββββββββββββββββββββββββββββββπ¨βπ The Agents (Crews)
Four AI agents work together on your task:
| Agent | Role | What It Does |
|---|---|---|
| π― Commander | Orchestrator | Leads the task, delegates work to other agents, ensures completion |
| π Planner | Researcher | Analyzes the project, creates the plan, documents findings |
| π¨ Worker | Implementer | Writes code, modifies files, follows the project's patterns |
| β Reviewer | Verifier | Tests changes, checks for errors, confirms quality |
π Core Principles
Rules that guide every agent:
| Principle | What It Means |
|---|---|
| π Never Assume | Always check the actual code and config files first |
| π Document Everything | Record patterns and findings for future tasks |
| π Verify with Evidence | Run tests, cite sources, complete with proof |
| π Adapt to the Project | Match the project's existing style and patterns |
| π€ Specialized Roles | Each agent has a clear, focused responsibility |
ποΈ Workflow
/task "Build REST API"
β
βββββββββββββββββββββββββββββββββββββ
β π― COMMANDER β "Start the task" β
βββββββββββββββββ€ββββββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββ
βΌ βΌ βΌ
βββββββββ βββββββββ βββββββββ
βPLANNERβ βWORKER β βWORKER β β π₯ 50 PARALLEL
βplan.mdβ βauth.tsβ βapi.ts β TASKS
βββββββββ βββββββββ βββββββββ
β β β
βββββββββββββββββΌββββββββββββββββ
βΌ
βββββββββββββββββββββββββββββββββββββ
β β
REVIEWER β "Verify everything" β
βββββββββββββββββ€ββββββββββββββββββββ
β
ββββββββββ΄βββββββββ
β TODO 100%? β
β Issues = 0? β
ββββββββββ¬βββββββββ
No β β Yes
β»οΈ LOOP β
COMPLETEFeatures
| Feature | What It Does |
|---|---|
| β‘ 50 Parallel Tasks | Run up to 50 agents simultaneously |
| π₯ Multi-File Operations | Work on different files at the same time |
| π§© Smart Assignment | One file = one agent. No conflicts |
| π Real-Time Sync | Shared .opencode/ state keeps all agents in sync |
| π‘οΈ Automatic Verification | E2E tests, import checks, integration validation |
| π©Ή Auto-Recovery | Retry failed tasks automatically (up to 3 times) |
| 𧬠Adaptive AI | Agents learn and adapt based on the project |
π¨ Error Handling
| Error | What Happens |
|---|---|
| π₯ Tool crash | Inject recovery prompt and retry |
| π¦ Rate limit hit | Wait and retry with exponential backoff |
| π¦ Context overflow | Compact the context automatically |
| β±οΈ Session timeout | Resume from the last checkpoint |
| π¨ Build failure | Fix the issue and retry |
π Documentation
- System Architecture β Full technical deep-dive
πΉ Developer's Words
π License
MIT License. LICENSE