$git clone https://github.com/ZaxbyHub/opencode-swarmClosing the trust gap between "the model said it's done" and "this actually works in production."
| 1 | # OpenCode Swarm |
| 2 | |
| 3 | <div align="center"> |
| 4 | |
| 5 | # Your AI writes the code. Swarm proves it works. |
| 6 | |
| 7 | **Closing the trust gap between "the model said it's done" and "this actually works in production."** |
| 8 | |
| 9 | [](https://www.npmjs.com/package/opencode-swarm) |
| 10 | [](LICENSE) |
| 11 | [](https://github.com/zaxbysauce/opencode-swarm) |
| 12 | |
| 13 | [Website](https://swarmai.site/) · [Getting Started](docs/getting-started.md) · [Configuration](docs/configuration.md) · [Architecture](docs/architecture.md) |
| 14 | |
| 15 | </div> |
| 16 | |
| 17 | --- |
| 18 | |
| 19 | OpenCode Swarm is a plugin for [OpenCode](https://opencode.ai) that turns a single AI coding session into an **architect-led team of specialized core, optional, and conditional agents**. Run `/swarm agents` for the live roster; it is generated from the current plugin configuration. One agent writes the code. A different agent reviews it. Another writes and runs tests. Another checks security. **Nothing ships until every required gate passes.** |
| 20 | |
| 21 | ```bash |
| 22 | bunx opencode-swarm install |
| 23 | ``` |
| 24 | |
| 25 | > This single command installs the package, registers it as an OpenCode plugin, disables conflicting default agents, and creates a ready-to-edit config at `~/.config/opencode/opencode-swarm.json`. Requires [Bun](https://bun.sh) (`bun --version` to check). If you must use npm: `npm install -g opencode-swarm && opencode-swarm install`. |
| 26 | |
| 27 | > **First-run note:** the installer registers the plugin, writes the global plugin config, creates a project override when missing, and disables the native `explore` and `general` agents in `opencode.json`. If you are not using a Swarm architect, the Swarm gates, reviewers, and test agents are bypassed. Open the OpenCode agent or mode picker and choose the Swarm architect when needed. |
| 28 | |
| 29 | ### Why Swarm? |
| 30 | |
| 31 | Most AI coding tools let one model write code and ask that same model whether the code is good. That misses too much. Swarm separates planning, implementation, review, testing, and documentation into specialized internal roles — and enforces gated execution so agents never mutate the codebase in parallel. |
| 32 | |
| 33 | ### Key Features |
| 34 | |
| 35 | - 🏗️ **Specialized core, optional, and conditional agents** — architect, coder, reviewer, test_engineer, critic, explorer, sme, docs, designer, critic_oversight, critic_sounding_board, critic_drift_verifier, critic_hallucination_verifier, curator_init, curator_phase, council_generalist, council_skeptic, council_domain_expert. Run `/swarm agents` for the live roster — that is the source of truth, not this list. |
| 36 | - 🔒 **Gated pipeline** — code never ships without reviewer + test engineer approval |
| 37 | - 🔍 **DEEP_DIVE Protocol** — High-rigor, on-demand read-only codebase audit via specialized skills |
| 38 | - 🔬 **External Skill Curation Pipeline** — Opt-in discovery, quarantine, evaluation, and promotion of external skill candidates from configured sources (disabled by default; enable via `external_skills.curation_enabled: true` in config). Includes 7 tools: `external_skill_discover`, `external_skill_list`, `external_skill_inspect`, `external_skill_promote`, `external_skill_reject`, `external_skill_delete`, `external_skill_revoke`. Candidates pass through a 3-gate validation pipeline before evaluation: **prompt injection scan** (12 regex patterns), **unsafe instruction scan** (25 patterns), and **provenance integrity check** (SHA-256, timestamp, URL, publisher, and hash verification). |
| 39 | - 🔄 **Phase completion gates** — completion-verify and drift verifier gates enforced before phase completion |
| 40 | - 🔁 **Resumable sessions** — all state saved to `.swarm/`; pick up any project any day |
| 41 | - 🖥️ **PR Monitor** — GitHub PR subscription and background polling via `gh` CLI; delivers real-time CI, review, and merge status updates via the AutomationEventBus (FR-001, opt-in via `pr_monitor.enabled: true`). Subscribe with `/swarm pr subscribe <pr-url|own |