Package Exports
- opencode-orchestrator
Readme
OpenCode Orchestrator
Multi-Agent Plugin for OpenCode β Make cheap models outperform expensive ones
π‘ Philosophy
The model doesn't matter. The workflow does.
Any model β even lightweight ones β can produce reliable, production-quality code when:
- Tasks are atomic β one function, one fix, one file at a time
- Every change is verified β quality gate catches errors immediately
- Errors trigger fixes β self-correcting loop until it works
This plugin implements a 6-agent team that turns any model into a disciplined development process.
π Quick Start
Install
npm install opencode-orchestrator
# or
bun add opencode-orchestratorPlugin auto-registers. Just restart OpenCode.
Use
/auto implement user authentication with JWTThat's it. The agents handle the rest.
π€ How It Works
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SELF-CORRECTING LOOP β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β User Request β
β β β
β βΌ β
β βββββββββββ βββββββββββββββββββββββββββββββββββββββ β
β β PLANNER ββββββΆβ Atomic Tasks: [T1] [T2] [T3] ... β β
β βββββββββββ βββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β FOR EACH TASK: β β
β β β β
β β SEARCHER ββΆ CODER ββΆ REVIEWER ββ¬ββΆ β
NEXT β β
β β β β β β
β β β FAIL β β β
β β β β β β
β β βΌ β β β
β β FIXER βββββ β β
β β (retry β€3) β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β β
COMPLETE β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββAgents
| Agent | Job |
|---|---|
| Planner | Decomposes complex tasks into atomic units |
| Searcher | Finds patterns and context in codebase |
| Coder | Implements one atomic task at a time |
| Reviewer | Quality gate β catches all errors |
| Fixer | Applies targeted fixes from reviewer feedback |
π Commands
| Command | Description |
|---|---|
/auto "task" |
Autonomous execution until complete |
/plan "task" |
Decompose into atomic tasks |
/review "code" |
Quality check |
/fix "errors" |
Apply fixes |
/search "pattern" |
Find context |
π‘οΈ Error Prevention
| Feature | What It Does |
|---|---|
| Self-Correcting Loop | Errors trigger fix β verify cycle |
| Retry Limit | Same error 3x = stop and ask user |
| Iteration Cap | Max 100 iterations prevents runaway |
| Atomic Tasks | Small scope = fewer errors |
β‘ Why This Works
Traditional Approach
[Big Model] βββββββββββββββββββββββββββΆ [Hope it works?]Orchestrator Approach
[Any Model] βββΆ [Small Task] βββΆ [Verify] βββΆ [Fix if needed] βββΆ β
Results:
- π§ Fewer errors: Each change is verified
- π° Lower cost: Cheap models work fine
- π Self-healing: Errors get fixed automatically
- π Predictable: Clear progress tracking
π Documentation
- Architecture Guide β Detailed workflow documentation
- Configuration β Customize agent settings
π License
MIT β Use freely, modify freely, no strings attached.
Built for OpenCode β’ Make cheap models work like expensive ones