JSPM

opencode-orchestrator

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

Autonomous multi-agent plugin for OpenCode

MIT License npm Tests


โšก Quick Start

npm install -g opencode-orchestrator

Restart OpenCode after installation. Then:

/task "Build a REST API with authentication"

That's it! The Commander takes over and works until the mission is complete.


๐Ÿ’ก Why I Built This

Budget models have limits. Orchestration breaks them.


๐ŸŽฏ What is This?

A multi-agent system that autonomously executes complex tasks from start to finish. Just describe your mission โ€” the Commander handles everything else.


โœจ v0.9.4 Highlights

๐Ÿš€ "Relentless execution until absolute success."

Category Feature
๐Ÿ›ก๏ธ Resilience Never stops. Auto-pivots Planโ†”Search on any error
โšก Parallelism 50 isolated sessions run simultaneously
๐Ÿ”ง TDD Workers Each agent works in complete isolation (1 file = 1 worker)
๐Ÿ”„ Sync Integration Shared .opencode/ state synchronizes all agents
โœ… Stability Checks TODO + Issue verification before mission seal
๐Ÿง  Smart Fixers Anti-overengineering: simple errors get simple fixes

๐Ÿš€ How It Works

                    /task "Build REST API"
                              โ”‚
                              โ–ผ
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ”‚         ๐ŸŽฏ COMMANDER           โ”‚
             โ”‚  Read state โ†’ Delegate โ†’ Loop  โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ–ผ                       โ–ผ                       โ–ผ
 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
 โ”‚ PLANNER โ”‚            โ”‚ WORKER  โ”‚            โ”‚ WORKER  โ”‚    โšก PARALLEL
 โ”‚ Plan it โ”‚            โ”‚ Build A โ”‚            โ”‚ Build B โ”‚       EXECUTION
 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
      โ”‚                       โ”‚                       โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ–ผ
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ”‚         โœ… REVIEWER            โ”‚
             โ”‚       Verify โ†’ Sync            โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                              โ”‚
                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                   โ”‚  TODO incomplete?   โ”‚
                   โ”‚  Sync issues?       โ”‚
                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                        Yes โ†“     โ†“ No
                    โ™ป๏ธ LOOP    ๐ŸŽ–๏ธ SEALED

๐Ÿ”‘ Core Principles

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  ๐Ÿ”’ ISOLATION    โ”‚  ๐Ÿ”„ SYNC       โ”‚  โœ… STABILITY          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Each worker     โ”‚  Shared state  โ”‚  TODO 100% complete    โ”‚
โ”‚  owns 1 file     โ”‚  via .opencode โ”‚  + Zero sync issues    โ”‚
โ”‚  No conflicts    โ”‚  Real-time     โ”‚  = Mission SEALED      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐ŸŽฎ Usage

Mode Trigger What Happens
Commander Mode ๐ŸŽฏ /task "mission" Full autonomous execution
Chat Mode ๐Ÿ’ฌ Just type normally Simple Q&A, no automation

Example Commands:

/task "Fix the login bug in docker-compose"
/task "Add dark mode to the entire app"
/task "Refactor the API to TypeScript"

Stop anytime: /stop or /cancel

TUI

Commander TUI

Window

Commander Window
---

๐Ÿค– The 4 Agents

Agent Role Key Actions
Commander ๐ŸŽฏ Orchestrator Delegates tasks, monitors progress, seals mission
Planner ๐Ÿ“‹ Research + Plan Web search, doc caching, TODO creation
Worker ๐Ÿ”จ Implementation Code writing, file ops, background commands
Reviewer โœ… Quality Control Verification, TODO updates, context management

๐Ÿ“Š Resource Limits

Resource Limit
Parallel Sessions 50
Tasks in Memory 1,000 (auto GC)
Session TTL 60 min
Recovery Attempts 3 per session
Max Iterations 20 per mission

๐Ÿ“š Documentation

For detailed architecture, directory structure, and internals:


Uninstall

npm uninstall -g opencode-orchestrator

License

MIT License. LICENSE


๐Ÿš€ v0.9.4 โ€” "Relentless execution until absolute success."