opencode-swarm 7.18.2 → 7.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,7 +24,7 @@ bunx opencode-swarm install
24
24
 
25
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
26
 
27
- > ⚠️ **Select a Swarm architect before starting work.** The installer registers Swarm architect agents as primary choices, but the default OpenCode `Build` and `Plan` modes **bypass this plugin entirely** — none of the gates, reviewers, or test agents below run. Open the OpenCode mode/agent picker and choose `architect` or a `*_architect`; it then coordinates every other agent automatically. If you ever see Swarm "do nothing," this is almost always the cause.
27
+ > ⚠️ **On first run, Swarm auto-selects the architect and shows a welcome message.** The default OpenCode `Build` and `Plan` modes **bypass this plugin entirely** — none of the gates, reviewers, or test agents below run. If you ever need to switch architect manually, open the OpenCode mode/agent picker and choose the Swarm architect; it then coordinates every other agent automatically. If you ever see Swarm "do nothing," this is almost always the cause.
28
28
 
29
29
  ### Why Swarm?
30
30
 
@@ -41,7 +41,7 @@ Most AI coding tools let one model write code and ask that same model whether th
41
41
  - 🆓 **Free tier** — works with OpenCode Zen's free model roster
42
42
  - ⚙️ **Fully configurable** — override any agent's model, disable agents, tune guardrails
43
43
 
44
- > **The Swarm architect coordinates all other agents automatically after you select it.** You never manually switch between internal roles. If you use the default OpenCode `Build` / `Plan` modes, the plugin is bypassed entirely (see the install warning above).
44
+ > **The Swarm architect is auto-selected on first run and coordinates all other agents automatically.** You never manually switch between internal roles. If you use the default OpenCode `Build` / `Plan` modes, the plugin is bypassed entirely (see the install warning above).
45
45
 
46
46
  ---
47
47
 
@@ -126,9 +126,9 @@ The 15-minute guide covers:
126
126
  - Troubleshooting common issues
127
127
 
128
128
  On first run, Swarm automatically:
129
- - Creates project config at `.opencode/opencode-swarm.json` if missing
130
- - Registers Swarm architect agents as primary choices in OpenCode
131
- - Shows a welcome message with next steps the first time you run `/swarm`
129
+ - Creates project config at `.opencode/opencode-swarm.json` with all agents enabled
130
+ - Selects the Swarm architect as the default
131
+ - Shows a welcome message with next steps
132
132
 
133
133
  ---
134
134
 
@@ -142,7 +142,8 @@ No animated GIF is shipped in the repo — instead, here is the exact terminal s
142
142
  # 1. Install the plugin (5s)
143
143
  bunx opencode-swarm install
144
144
 
145
- # 2. Open opencode and select the Swarm architect in the agent/mode picker
145
+ # 2. Open opencode Swarm auto-selects architect on first run
146
+ # (the architect is auto-selected; manual selection is only needed to override)
146
147
  opencode
147
148
 
148
149
  # 3. Inside the OpenCode session, verify Swarm is live (5s)
@@ -166,7 +167,7 @@ Build me a JWT auth helper with tests.
166
167
  │ ✓ created .opencode/opencode-swarm.json │
167
168
  │ │
168
169
  │ $ opencode │
169
- │ [Swarm] Welcome! Run /swarm diagnose, then /swarm agents
170
+ │ [Swarm] Welcome! Architect auto-selected. Type /swarm help
170
171
  │ │
171
172
  │ > /swarm help │
172
173
  │ Available commands: status, plan, agents, help, diagnose... │
@@ -217,7 +218,7 @@ in your `opencode-swarm.json`.
217
218
 
218
219
  ## Commands
219
220
 
220
- Core subcommands at a glance:
221
+ All 43 subcommands at a glance:
221
222
 
222
223
  ```bash
223
224
  /swarm help [command] # List all commands or get detailed help for a specific command
@@ -233,7 +234,7 @@ Use `/swarm help` to see all available commands categorized by function. Use `/s
233
234
 
234
235
  Nine commands display a ⚠️ warning in help output because they share names with Claude Code built-in slash commands (e.g., `/plan`, `/reset`, `/status`). The warning reminds you to always use `/swarm <command>` — the bare CC command does something different and sometimes destructive. See [docs/commands.md#claude-code-command-conflicts](docs/commands.md#claude-code-command-conflicts) for the full conflict registry.
235
236
 
236
- See [docs/commands.md](docs/commands.md) for the full command reference.
237
+ See [docs/commands.md](docs/commands.md) for the full reference (43 commands).
237
238
 
238
239
  ## Command Aliases
239
240
 
@@ -367,14 +368,11 @@ No API key required. Excellent starting point:
367
368
  "agents": {
368
369
  "coder": { "model": "opencode/minimax-m2.5-free" },
369
370
  "reviewer": { "model": "opencode/big-pickle" },
370
- "critic": { "model": "opencode/big-pickle" },
371
371
  "explorer": { "model": "opencode/big-pickle" }
372
372
  }
373
373
  }
374
374
  ```
375
375
 
376
- Zen's roster changes. Always confirm current IDs with `/models` in OpenCode or `https://opencode.ai/zen/v1/models` before pasting a model into config. Do not copy private workspace providers such as `grove-openai/*` unless that provider appears in your own OpenCode model list.
377
-
378
376
  ### Paid Providers
379
377
 
380
378
  For production, mix providers by role:
@@ -383,14 +381,11 @@ For production, mix providers by role:
383
381
  |---|---|---|
384
382
  | architect | OpenCode UI selection | Needs strongest reasoning |
385
383
  | coder | minimax-coding-plan/MiniMax-M2.5 | Fast, accurate code generation |
386
- | critic | opencode/gpt-5.5 or your strongest reasoning model | Challenges the architect before coding |
387
- | reviewer | zai-coding-plan/glm-5 or a different strong model | Different training from coder |
388
- | test_engineer | opencode/big-pickle or another model distinct from coder | Catches test blind spots |
384
+ | reviewer | zai-coding-plan/glm-5 | Different training from coder |
385
+ | test_engineer | minimax-coding-plan/MiniMax-M2.5 | Same strengths as coder |
389
386
  | explorer | google/gemini-2.5-flash | Fast read-heavy analysis |
390
387
  | sme | kimi-for-coding/k2p5 | Strong domain expertise |
391
388
 
392
- Model assignment rule of thumb: architect and critic should be your strongest pair, and they should not be the same blind spot. Coder/test_engineer can be faster coding models; explorer/docs/curator can be cheaper readers. Do not put a premium model on `designer` while leaving `critic` on a weaker model.
393
-
394
389
  ### Provider Formats
395
390
 
396
391
  | Provider | Format | Example |
@@ -411,7 +406,7 @@ Automatic fallback to a secondary model on transient errors:
411
406
  "agents": {
412
407
  "coder": {
413
408
  "model": "anthropic/claude-sonnet-4-20250514",
414
- "fallback_models": ["opencode/big-pickle"]
409
+ "fallback_models": ["opencode/gpt-5-nano"]
415
410
  }
416
411
  }
417
412
  }
@@ -1149,15 +1144,15 @@ Config file location: `~/.config/opencode/opencode-swarm.json` (global) or `.ope
1149
1144
  ```json
1150
1145
  {
1151
1146
  "agents": {
1152
- "architect": { "model": "opencode/claude-opus-4-6" },
1153
- "coder": { "model": "opencode/minimax-m2.5", "fallback_models": ["opencode/big-pickle"] },
1154
- "explorer": { "model": "opencode/big-pickle" },
1155
- "sme": { "model": "opencode/kimi-k2.6" },
1156
- "critic": { "model": "opencode/gpt-5.5" },
1147
+ "architect": { "model": "anthropic/claude-opus-4-6" },
1148
+ "coder": { "model": "minimax-coding-plan/MiniMax-M2.5", "fallback_models": ["minimax-coding-plan/MiniMax-M2.1"] },
1149
+ "explorer": { "model": "minimax-coding-plan/MiniMax-M2.1" },
1150
+ "sme": { "model": "kimi-for-coding/k2p5" },
1151
+ "critic": { "model": "zai-coding-plan/glm-5" },
1157
1152
  "reviewer": { "model": "zai-coding-plan/glm-5", "fallback_models": ["opencode/big-pickle"] },
1158
- "test_engineer": { "model": "opencode/minimax-m2.5" },
1159
- "docs": { "model": "opencode/big-pickle" },
1160
- "designer": { "model": "opencode/kimi-k2.6" }
1153
+ "test_engineer": { "model": "minimax-coding-plan/MiniMax-M2.5" },
1154
+ "docs": { "model": "zai-coding-plan/glm-4.7-flash" },
1155
+ "designer": { "model": "kimi-for-coding/k2p5" }
1161
1156
  },
1162
1157
  "guardrails": {
1163
1158
  "max_tool_calls": 200,
@@ -1406,7 +1401,7 @@ bun test
1406
1401
  - [Installation Guide](docs/installation.md) — comprehensive reference
1407
1402
  - [Architecture Deep Dive](docs/architecture.md) — control model, pipeline, tools
1408
1403
  - [Design Rationale](docs/design-rationale.md) — why every major decision
1409
- - [Commands Reference](docs/commands.md) — full `/swarm` command reference
1404
+ - [Commands Reference](docs/commands.md) — all 41 `/swarm` subcommands
1410
1405
  - [Modes Guide](docs/modes.md) — session modes (Turbo, Full-Auto) and project modes (strict/balanced/fast)
1411
1406
  - [Configuration](docs/configuration.md) — all config keys and examples
1412
1407
  - [Planning Guide](docs/planning.md) — task format, phase structure, sizing