Package Exports
- opencode-orchestrator
Readme
OpenCode Orchestrator
π Multi-Agent Orchestration Plugin for OpenCode
π₯ Why This Plugin?
Budget models have limits. Orchestration breaks them.
π§ Core Philosophy
Explore β Adapt β Act
Never assume. Always verify. Then execute.
The Problem with AI Agents
Most AI agents fail because they:
- Assume instead of checking
- Guess instead of researching
- Follow rigid rules instead of adapting
- Trust memory instead of verifying
Our Solution: Adaptive Intelligence
Every agent in this system follows a simple principle:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β π EXPLORE β π ADAPT β β‘ ACT β
β β
β Discover Adjust to Execute with β
β the reality what you find confidence β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββAgent Philosophies
| Agent | Philosophy | What It Means |
|---|---|---|
| π― Commander | Explore β Adapt β Act | Discover project structure first, then delegate intelligently |
| π Planner | Research β Plan β Document | Never guess syntax. Find official docs, verify, then plan |
| π¨ Worker | Observe β Learn β Implement | Study existing code patterns, then write code that fits |
| β Reviewer | Understand β Verify β Approve | Know the project's standards, run actual tests, approve with evidence |
Guiding Principles
π Never Assume, Always Discover
- Read
context.mdbefore every action - Detect the tech stack, don't assume it
- Find the build/test commands, don't guess them
- Read
π Evidence Over Memory
- Cite official documentation for every claim
- Run actual commands for verification
- Mark complete only with proof
π Adapt to the Project
- Match existing code patterns
- Follow discovered conventions
- Respect the project's way of doing things
π€ Separation of Concerns
- Commander orchestrates, never implements
- Worker builds, never verifies
- Reviewer approves, never codes
- Each agent does one thing excellently
β‘ Quick Start
npm install -g opencode-orchestratorThen in OpenCode:
/task "Build a REST API with authentication"Done. You just deployed an army of AI agents. They plan, build, test, fix β and don't stop until it's sealed. β¨
π― What Makes This Different?
π Core Capabilities
| Feature | What It Means | |
|---|---|---|
| β‘ | Multi-Session Parallel | 50 isolated sessions running simultaneously. True multi-threading. |
| π₯ | Parallel Execution | Workers build different files at once. 10x faster. |
| οΏ½ | Non-Blocking Async | Fire-and-forget. Commander never waits. Results collected automatically. |
| π§© | Smart Distribution | One file = one worker. No conflicts. No stepping on each other. |
| π | Real-Time Sync | Shared .opencode/ state. All agents see updates instantly. |
| π‘οΈ | Auto Verify & Test | E2E tests, import checks, integration validation. Bugs get caught. |
| π©Ή | Self-Healing | Auto-recovery from crashes, rate limits, context overflow. 3 retries. |
| οΏ½ | Live Monitoring | Track sessions, progress, queues. Toast notifications in real-time. |
ποΈ How It Works
β‘ DELEGATE. PARALLELIZE. SEAL. β One command unleashes full autonomous execution.
/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 Systems
| System | What It Does |
|---|---|
| π Multi-Session | delegate_task β client.session.create() β new isolated session |
| β‘ Parallel Agents | 50 sessions run simultaneously, ConcurrencyController manages slots |
| π₯οΈ Background Tasks | run_background β async shell commands, non-blocking |
| π Auto-Continuation | session.idle β check TODOs β inject prompt β keep going |
| π‘οΈ Self-Healing | Rate limits, crashes β 3 auto-retries per session |
Stop anytime:
/stop
TUI
Window
π§ Self-Healing Features
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ERROR TYPE β AUTO-RECOVERY ACTION β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Tool crash β Inject recovery prompt β
β Rate limit β Exponential backoff + retry β
β Context overflow β Smart compaction β
β Thinking block error β Auto-restructure β
β Session timeout β Resume from checkpoint β
β Build failure β Loop back, fix, retry β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββπ Documentation
- System Architecture β Full technical deep-dive
Uninstall
npm uninstall -g opencode-orchestratorLicense
MIT License. LICENSE