JSPM

opencode-orchestrator

0.1.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2599
  • Score
    100M100P100Q105963F
  • License MIT

6-Agent collaborative architecture for OpenCode - Make any model reliable

Package Exports

  • opencode-orchestrator

Readme

OpenCode Orchestrator

Multi-Agent Plugin for OpenCode β€” Make cheap models outperform expensive ones

MIT License OpenCode Plugin


πŸ’‘ Philosophy

The model doesn't matter. The workflow does.

Any model β€” even lightweight ones β€” can produce reliable, production-quality code when:

  1. Tasks are atomic β€” one function, one fix, one file at a time
  2. Every change is verified β€” quality gate catches errors immediately
  3. 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-orchestrator

Plugin auto-registers. Just restart OpenCode.

Use

/auto implement user authentication with JWT

That'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


πŸ“„ License

MIT β€” Use freely, modify freely, no strings attached.


Built for OpenCode β€’ Make cheap models work like expensive ones