JSPM

opencode-orchestrator

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

MIT License npm Tests

πŸš€ Multi-Agent Orchestration Plugin for OpenCode


⚑ Quick Start

npm install -g opencode-orchestrator

Then in OpenCode:

/task "Build a REST API with authentication"
logo

πŸŽ„ Core Philosophy

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  πŸ” EXPLORE β†’ πŸ“ LEARN β†’ πŸ”„ ADAPT β†’ ⚑ ACT       β”‚
β”‚  Scan        Document    Adjust      Execute      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ‘¨β€πŸš€ The Agents (Crews)

Agent Role What It Does
🎯 Commander Orchestrator Leads the task, delegates work to other agents, ensures completion
πŸ“‹ Planner Researcher Analyzes the project, creates the plan, documents findings
πŸ”¨ Worker Implementer Writes code, modifies files, follows the project's patterns
βœ… Reviewer Verifier Tests changes, checks for errors, confirms quality

πŸ“– Core Principles

Principle What It Means
πŸ” Never Assume Always check the actual code and config files first
πŸ“ Document Everything Record patterns and findings for future tasks
πŸ“š Verify with Evidence Run tests, cite sources, complete with proof
πŸ”„ Adapt to the Project Match the project's existing style and patterns
🀝 Specialized Roles Each agent has a clear, focused responsibility

πŸ›οΈ Workflow

        /task "Build REST API"
                β”‚
    ╔═══════════════════════════════════╗
    β•‘  🎯 COMMANDER β€” "Start the task"  β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                    β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β–Ό               β–Ό               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”
β”‚PLANNERβ”‚      β”‚WORKER β”‚      β”‚WORKER β”‚   ← πŸ”₯ 50 PARALLEL
β”‚plan.mdβ”‚      β”‚auth.tsβ”‚      β”‚api.ts β”‚      TASKS
β””β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚               β”‚               β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                    β–Ό
    ╔═══════════════════════════════════╗
    β•‘  βœ… REVIEWER β€” "Verify everything"β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                    β”‚
           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”
           β”‚ TODO 100%?      β”‚
           β”‚ Issues = 0?     β”‚
           β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             No ↙       β†˜ Yes
          ♻️ LOOP      βœ… COMPLETE

Features

Feature What It Does
⚑ 50 Parallel Tasks Run up to 50 agents simultaneously
πŸ”₯ Multi-File Operations Work on different files at the same time
🧩 Smart Assignment One file = one agent. No conflicts
πŸ”— Real-Time Sync Shared .opencode/ state keeps all agents in sync
πŸ›‘οΈ Automatic Verification E2E tests, import checks, integration validation
🩹 Auto-Recovery Retry failed tasks automatically (up to 3 times)
🧬 Adaptive AI Agents learn and adapt based on the project

🚨 Error Handling

Error What Happens
πŸ’₯ Tool crash Inject recovery prompt and retry
🚦 Rate limit hit Wait and retry with exponential backoff
πŸ“¦ Context overflow Compact the context automatically
⏱️ Session timeout Resume from the last checkpoint
πŸ”¨ Build failure Fix the issue and retry

πŸ“š Documentation


🎹 Developer's Words

Read the full note β†’


πŸ“„ License

MIT License. LICENSE