JSPM

opencode-orchestrator

0.9.47
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1820
  • Score
    100M100P100Q103512F
  • License MIT

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

Package Exports

  • opencode-orchestrator

Readme

STARSHIP

OpenCode Orchestrator

πŸš€ The mothership that deploys AI crews to unknown planet

MIT License npm Tests


The STARSHIP hovers above an uncharted planet. No docs. No tests. Just a mission. The Commander speaks: "We don't assume. We explore. We adapt. We conquer." β€” OpenCode Orchestrator is that STARSHIP, deploying AI crews to complete missions in any planet.


⚑ Quick Start

npm install -g opencode-orchestrator

Then in OpenCode:

/task "Build a REST API with authentication"

The STARSHIP deploys. The crew lands. The mission begins.


πŸ›Έ The STARSHIP Protocol

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

πŸ‘¨β€πŸš€ The Crew

When the STARSHIP arrives, four specialists deploy:

Agent Role Mission
🎯 Commander The Captain "I lead the mission. I delegate. I don't leave until it's done."
πŸ“‹ Planner The Scientist "I map the terrain. I document everything. I create paths to follow."
πŸ”¨ Worker The Engineer "I build with local materials. I adapt to what I find."
βœ… Reviewer The Inspector "Nothing launches until I verify it. Zero defects."

πŸ“– The Codex

These are the rules every crew member lives by:

Principle In Practice
πŸ” Never Assume Gravity Read context.md, detect stack, find actual commands
πŸ“ Document for Future Missions Record patterns, conventions, and findings for reuse
πŸ“š Evidence Over Memory Cite docs, run commands, complete only with proof
πŸ”„ Adapt to the Terrain Behavior evolves based on what we've documented
🀝 Each Crew Member Has a Role Specialists don't overlap β€” they collaborate

πŸ›οΈ Mission Control

Inside the STARSHIP, Mission Control coordinates everything:

        🌍 UNKNOWN CODEBASE
                β”‚
        /task "Build REST API"
                β”‚
    ╔═══════════════════════════════════╗
    β•‘   πŸ›Έ STARSHIP MISSION CONTROL     β•‘
    ╠═══════════════════════════════════╣
    β•‘  🎯 COMMANDER β€” "Deploy the crew" β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                    β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β–Ό               β–Ό               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”
β”‚PLANNERβ”‚      β”‚WORKER β”‚      β”‚WORKER β”‚   ← πŸ”₯ 50 PARALLEL
β”‚plan.mdβ”‚      β”‚auth.tsβ”‚      β”‚api.ts β”‚      DEPLOYMENTS
β””β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚               β”‚               β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                    β–Ό
    ╔═══════════════════════════════════╗
    β•‘  βœ… REVIEWER β€” "Final inspection" β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                    β”‚
           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”
           β”‚ TODO 100%?      β”‚
           β”‚ Issues = 0?     β”‚
           β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             No ↙       β†˜ Yes
          ♻️ LOOP      πŸŽ–οΈ MISSION SEALED

πŸš€ STARSHIP Capabilities

The STARSHIP isn't just any vessel. It's built for the impossible:

Capability What It Means
⚑ 50 Parallel Deployments Deploy up to 50 crew members simultaneously
πŸ”₯ Multi-Zone Operations Workers build different sectors at the same time
🧩 Smart Crew Assignment One file = one specialist. Zero conflicts
πŸ”— Real-Time Comms Shared .opencode/ state syncs all agents
πŸ›‘οΈ Pre-Launch Verification E2E tests, import checks, integration validation
🩹 Self-Repair Systems Auto-recovery with 3 retries per session
🧬 Adaptive AI Cores Agents evolve based on what they discover

🚨 Emergency Protocols

When things go wrong in space, the STARSHIP knows what to do:

Emergency Recovery Action
πŸ’₯ Tool crash Inject recovery prompt
🚦 Rate limit hit 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


🎹 Developer's Words

Read the full note β†’


πŸ“„ License

MIT License. LICENSE