Package Exports
- opencode-orchestrator
Readme
OpenCode Orchestrator
Autonomous multi-agent plugin for OpenCode
โก Quick Start
npm install -g opencode-orchestratorRestart OpenCode after installation. Then:
/task "Build a REST API with authentication"That's it! The Commander takes over and works until the mission is complete.
๐ก Why I Built This
Budget models have limits. Orchestration breaks them.
๐ฏ What is This?
A multi-agent system that autonomously executes complex tasks from start to finish. Just describe your mission โ the Commander handles everything else.
โจ v0.9.4 Highlights
๐ "Relentless execution until absolute success."
| Category | Feature |
|---|---|
| ๐ก๏ธ Resilience | Never stops. Auto-pivots PlanโSearch on any error |
| โก Parallelism | 50 isolated sessions run simultaneously |
| ๐ง TDD Workers | Each agent works in complete isolation (1 file = 1 worker) |
| ๐ Sync Integration | Shared .opencode/ state synchronizes all agents |
| โ Stability Checks | TODO + Issue verification before mission seal |
| ๐ง Smart Fixers | Anti-overengineering: simple errors get simple fixes |
๐ How It Works
/task "Build REST API"
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฏ COMMANDER โ
โ Read state โ Delegate โ Loop โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ โผ
โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ
โ PLANNER โ โ WORKER โ โ WORKER โ โก PARALLEL
โ Plan it โ โ Build A โ โ Build B โ EXECUTION
โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
REVIEWER โ
โ Verify โ Sync โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโดโโโโโโโโโโโ
โ TODO incomplete? โ
โ Sync issues? โ
โโโโโโโโโโโโฌโโโโโโโโโโโ
Yes โ โ No
โป๏ธ LOOP ๐๏ธ SEALED๐ Core Principles
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ ISOLATION โ ๐ SYNC โ โ
STABILITY โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Each worker โ Shared state โ TODO 100% complete โ
โ owns 1 file โ via .opencode โ + Zero sync issues โ
โ No conflicts โ Real-time โ = Mission SEALED โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ฎ Usage
| Mode | Trigger | What Happens |
|---|---|---|
| Commander Mode ๐ฏ | /task "mission" |
Full autonomous execution |
| Chat Mode ๐ฌ | Just type normally | Simple Q&A, no automation |
Example Commands:
/task "Fix the login bug in docker-compose"
/task "Add dark mode to the entire app"
/task "Refactor the API to TypeScript"Stop anytime: /stop or /cancel
TUI
Window
๐ค The 4 Agents
| Agent | Role | Key Actions |
|---|---|---|
| Commander ๐ฏ | Orchestrator | Delegates tasks, monitors progress, seals mission |
| Planner ๐ | Research + Plan | Web search, doc caching, TODO creation |
| Worker ๐จ | Implementation | Code writing, file ops, background commands |
| Reviewer โ | Quality Control | Verification, TODO updates, context management |
๐ Resource Limits
| Resource | Limit |
|---|---|
| Parallel Sessions | 50 |
| Tasks in Memory | 1,000 (auto GC) |
| Session TTL | 60 min |
| Recovery Attempts | 3 per session |
| Max Iterations | 20 per mission |
๐ Documentation
For detailed architecture, directory structure, and internals:
- System Architecture โ Complete technical documentation
- Release Notes โ Version history
Uninstall
npm uninstall -g opencode-orchestratorLicense
MIT License. LICENSE
๐ v0.9.4 โ "Relentless execution until absolute success."