JSPM

opencode-orchestrator

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

Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).

Package Exports

  • opencode-orchestrator

Readme

Logo

OpenCode Orchestrator

πŸš€ Multi-Agent Orchestration Plugin for OpenCode

MIT License npm Tests


⚑ Quick Start

npm install -g opencode-orchestrator

Then in OpenCode:

/task "Build a REST API with authentication"

🧠 Core Philosophy

Explore β†’ Adapt β†’ Act
Never assume. Always verify. Then execute.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                           β”‚
β”‚   πŸ” EXPLORE    β†’    πŸ”„ ADAPT    β†’    ⚑ ACT             β”‚
β”‚                                                           β”‚
β”‚   Discover          Adjust to         Execute with        β”‚
β”‚   the reality       what you find     confidence          β”‚
β”‚                                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Agents & Their Philosophy

Agent Role Philosophy
🎯 Commander Orchestrator Discover project β†’ Delegate intelligently β†’ Loop until sealed
πŸ“‹ Planner Strategist Research docs β†’ Plan with parallelism β†’ Document findings
πŸ”¨ Worker Implementer Observe patterns β†’ Learn conventions β†’ Implement with fit
βœ… Reviewer Gatekeeper Read standards β†’ Run tests β†’ Approve with evidence

Guiding Principles

Principle Practice
πŸ” Discover, Don't Assume Read context.md, detect tech stack, find build/test commands
πŸ“š Evidence Over Memory Cite docs, run actual commands, complete only with proof
πŸ”„ Adapt to the Project Match existing patterns, follow discovered conventions
🀝 Separation of Concerns Each agent does one thing excellently

πŸ›οΈ Architecture

            /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 Features

Feature Description
⚑ 50 Parallel Sessions True multi-threading with isolated contexts
πŸ”₯ Parallel File Builds Workers build different files simultaneously
🧩 Smart Distribution One file = one worker. No conflicts
πŸ”— Real-Time Sync Shared .opencode/ state across all agents
πŸ›‘οΈ Auto Verification E2E tests, import checks, integration validation
🩹 Self-Healing Auto-recovery with 3 retries per session

Self-Healing Details

Error Type Recovery Action
Tool crash Inject recovery prompt
Rate limit Exponential backoff + retry
Context overflow Smart compaction
Session timeout Resume from checkpoint
Build failure Loop back, fix, retry

πŸ“Έ Screenshots

TUI

Commander TUI

Window

Commander Window

πŸ“š Documentation


πŸ—‘οΈ Uninstall

npm uninstall -g opencode-orchestrator

πŸ“„ License

MIT License. LICENSE