JSPM

opencode-orchestrator

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


🧠 Core Philosophy

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

The Problem with AI Agents

Most AI agents fail because they:

  • Assume instead of checking
  • Guess instead of researching
  • Follow rigid rules instead of adapting
  • Trust memory instead of verifying

Our Solution: Adaptive Intelligence

Every agent in this system follows a simple principle:

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

Agent Philosophies

Agent Philosophy What It Means
🎯 Commander Explore β†’ Adapt β†’ Act Discover project structure first, then delegate intelligently
πŸ“‹ Planner Research β†’ Plan β†’ Document Never guess syntax. Find official docs, verify, then plan
πŸ”¨ Worker Observe β†’ Learn β†’ Implement Study existing code patterns, then write code that fits
βœ… Reviewer Understand β†’ Verify β†’ Approve Know the project's standards, run actual tests, approve with evidence

Guiding Principles

  1. πŸ” Never Assume, Always Discover

    • Read context.md before every action
    • Detect the tech stack, don't assume it
    • Find the build/test commands, don't guess them
  2. πŸ“š Evidence Over Memory

    • Cite official documentation for every claim
    • Run actual commands for verification
    • Mark complete only with proof
  3. πŸ”„ Adapt to the Project

    • Match existing code patterns
    • Follow discovered conventions
    • Respect the project's way of doing things
  4. 🀝 Separation of Concerns

    • Commander orchestrates, never implements
    • Worker builds, never verifies
    • Reviewer approves, never codes
    • Each agent does one thing excellently

⚑ 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