JSPM

opencode-orchestrator

0.9.22
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1820
  • Score
    100M100P100Q105972F
  • 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


πŸ”₯ Why This Plugin?

Budget models have limits. Orchestration breaks them.


⚑ Quick Start

npm install -g opencode-orchestrator

Then 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

Commander TUI

Window

Commander 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


Uninstall

npm uninstall -g opencode-orchestrator

License

MIT License. LICENSE