A collection of OpenCode plugins that enable multiple AI agents to collaborate on software development tasks.
| Plugin | Agents | Approach | Best For | Docs |
|---|---|---|---|---|
| Commander | 4 | Single orchestrator, fast iteration, CoderโTester fix loops | Most development tasks | README |
| Emperor | 11 | Three Departments & Six Ministries (ไธ็ๅ ญ้จ), governance with checks & balances | Tasks requiring rigorous multi-stage review | README |
| Hive | Dynamic | Domain auto-discovery, EventBus coordination, autonomous execution | Large multi-domain projects | README |
| Superpower | Dynamic | Loads agents, skills, and commands from superpowers repo | Extensible agent capabilities | README |
| Stock | 5 | Multi-dimensional A-share analysis (fundamental, technical, sentiment, flow, sector) | Chinese A-share stock analysis | README |
| Triage | 6 | Jira ticket triage (Bug/Feature), code investigation, solution design | Bug triage and feature specification | - |
User Task โ Lead (analyze & plan) โ Coder (implement) โ Tester (verify) โ [Reviewer] โ Report
- Lead explores the codebase and creates plans with adaptive complexity classification (trivial / simple / standard / complex)
- CoderโTester fix loop: Tester fails โ Coder fixes in the same session (context accumulates) โ Tester re-verifies โ up to N rounds
- Reviewer only engages on complex tasks
- Parallel wave dispatch for independent subtasks
Edict โ Crown Prince โ Jinyiwei Recon โ Zhongshu (plan) โ Menxia (review/veto) โ Shangshu โ Six Ministries (parallel) โ Memorial
- Full governance model: planning, review/veto, parallel execution, post-verification
- Jinyiwei reconnaissance with git-hash caching
- Mandatory department participation (Hubu testing enforced)
- Sensitive operation detection with manual confirmation
Startup โ Scan project โ Discover domains โ Create per-domain Agents + Queen โ EventBus coordination โ Autonomous execution
- Domain Discovery: Static project scanning + LLM enrichment + user config merge
- EventBus: Pub/sub event system for agent-to-agent communication
- Queen Coordinator: Broadcasts requirements, negotiates interfaces, dispatches parallel tasks
- Autonomous Execution: Domain agents can self-adapt to breaking changes from dependencies
Query โ Fundamentalist (ๅบๆฌ้ข) + Technician (ๆๆฏ้ข) + Sentiment (ๆ
็ปช) + Flow (่ต้ๆต) + Industry (่กไธ) โ HTML Report
- 5 ๅนถๅ Agent: ๅบๆฌ้ขใๆๆฏ้ขใๆ ็ปช้ขใ่ต้ๆตใ่กไธๅๆ
- ๆบ่ฝ่ฏๅ: ้ข่ฎพๆ้๏ผไฟๅฎ/ๅนณ่กก/ๆฟ่ฟ๏ผ๏ผ่ชๅฎไนๆ้
- HTML ๆฅๅ็ๆ: ๅฏ่งๅๅๆ็ปๆ
Jira Ticket โ Triage (ๅ็ฑป) โ Scout (ๆข็ดข) โ [Detective (Bug่ฐๆฅ) | Architect (Featureๆนๆก)] โ [Auto-fix | Awaiting Confirm]
- Bug ่ทฏๅพ: Scout ๆข็ดข โ Detective ๆ นๅ ่ฐๆฅ โ ่ชๅจไฟฎๅค
- Feature ่ทฏๅพ: Scout ๆข็ดข โ Architect ๆนๆก่ฎพ่ฎก โ ็ญๅพ ็กฎ่ฎคๅๅฎ็ฐ
- 6 Agent ๅไฝ: triage, scout, detective, architect, coder, tester
Load agents, skills, and commands from external superpowers repository
- Dynamic Agent Loading: Loads agent definitions from
~/.superpowers/agents/ - Skill Registry: Registers skills from
~/.superpowers/skills/ - Command Templates: Registers command templates from
~/.superpowers/commands/ - Extends OpenCode with custom agents and capabilities from the superpowers repo
In .opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"./plugins/commander/index.ts",
"./plugins/emperor/index.ts",
"./plugins/hive/index.ts",
"./plugins/superpower/index.ts",
"./plugins/stock/index.ts",
"./plugins/triage/index.ts"
]
}Pick one or more.
Commander:
@lead Implement user authentication with JWT and role-based access control
Emperor:
@taizi Implement user authentication with JWT and role-based access control
Hive:
@queen Implement user authentication with JWT and role-based access control
Superpower:
@<agent-name> Your task description here
The Superpower plugin loads agents from the superpowers repository. Use any agent defined there.
- Commander:
.opencode/commander.jsonโ config docs - Emperor:
.opencode/emperor.jsonโ config docs - Hive:
.opencode/hive.jsonโ design docs - Superpower: No config needed (loads from
~/.superpowers/) - Stock:
.opencode/stock.jsonโ config docs - Triage:
.opencode/triage.jsonโ config docs
.
โโโ plugins/ # Plugin directory
โ โโโ commander/ # Commander plugin
โ โ โโโ index.ts # Entry point
โ โ โโโ agents/ # 4 agent definitions
โ โ โโโ engine/ # Pipeline, classifier, dispatcher
โ โ โโโ tools/ # cmd_task, cmd_status, cmd_halt
โ โโโ emperor/ # Emperor plugin
โ โ โโโ index.ts # Entry point
โ โ โโโ agents/ # 11 agent definitions
โ โ โโโ engine/ # Pipeline, recon, reviewer, dispatcher
โ โ โโโ tools/ # edict, memorial, halt
โ โ โโโ skills/ # Built-in skills
โ โโโ hive/ # Hive plugin
โ โ โโโ index.ts # Entry point
โ โ โโโ discovery/ # Domain auto-discovery
โ โ โโโ agents/ # Dynamic agent generator
โ โ โโโ eventbus/ # Event pub/sub system
โ โ โโโ tools/ # hive_emit, hive_status, hive_broadcast, etc.
โ โ โโโ hooks/ # config, system-transform, file-watcher, autonomy
โ โโโ superpower/ # Superpower plugin
โ โ โโโ index.ts # Entry point (loads agents/skills/commands from ~/.superpowers/)
โ โโโ stock/ # Stock plugin
โ โ โโโ index.ts # Entry point
โ โ โโโ agents/ # 5 agent definitions
โ โ โโโ skills/ # Built-in skills
โ โโโ triage/ # Triage plugin
โ โโโ index.ts # Entry point
โ โโโ agents/ # 6 agent definitions
โ โโโ engine/ # Pipeline, classifier, dispatcher
โ โโโ tools/ # jira_analyze, jira_implement, jira_status
โโโ package.json # Build tooling (private)
โโโ tsconfig.json # TypeScript config
โโโ .hive/ # Hive runtime data (events.json, domains.json)
โโโ .github/workflows/
โโโ ci.yml # Type check + tests
โโโ npm-publish.yml # Tag-based selective publish
# Install dependencies
bun install
# Type check
bun run build
# Run tests
bun testEach plugin is published independently to npm via git tags:
# Commander
git tag commander-v0.1.0 && git push --tags
# Emperor
git tag emperor-v0.5.1 && git push --tags
# Hive
git tag hive-v0.1.0 && git push --tags
# Superpower
git tag superpower-v0.1.0 && git push --tags
# Stock
git tag stock-v0.1.0 && git push --tags
# Triage
git tag triage-v0.1.0 && git push --tags| Package | npm |
|---|---|
opencode-plugin-commander |
Commander plugin |
opencode-plugin-emperor |
Emperor plugin |
opencode-plugin-hive |
Hive plugin |
opencode-plugin-superpower |
Superpower plugin |
opencode-plugin-stock |
Stock plugin |
opencode-plugin-triage |
Triage plugin |
- Runtime: Bun
- Language: TypeScript (strict mode)
- Plugin SDK: @opencode-ai/plugin
- Storage: JSON file persistence
MIT