opencode-swarm 7.1.1 → 7.3.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
- > ⚠️ **You must select the Swarm architect mode/agent in OpenCode after install.** 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 the Swarm architect once; 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
- > **You select a Swarm architect once in the OpenCode GUI.** The architect 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).
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
 
@@ -118,10 +118,15 @@ Switch session modes with `/swarm turbo [on|off]` or `/swarm full-auto [on|off]`
118
118
 
119
119
  The 15-minute guide covers:
120
120
  - Installation (`bunx opencode-swarm install`)
121
- - Selecting the architect in OpenCode
121
+ - First-run auto-configuration (architect selected automatically)
122
122
  - Running your first task
123
123
  - Troubleshooting common issues
124
124
 
125
+ On first run, Swarm automatically:
126
+ - Creates project config at `.opencode/opencode-swarm.json` with all agents enabled
127
+ - Selects the Swarm architect as the default
128
+ - Shows a welcome message with next steps
129
+
125
130
  ---
126
131
 
127
132
  ## 30-Second Demo
@@ -134,12 +139,12 @@ No animated GIF is shipped in the repo — instead, here is the exact terminal s
134
139
  # 1. Install the plugin (5s)
135
140
  bunx opencode-swarm install
136
141
 
137
- # 2. Open opencode and select the Swarm architect mode/agent in the picker
138
- # (this step is manual in the OpenCode UI without it, the plugin is bypassed)
142
+ # 2. Open opencode Swarm auto-selects architect on first run
143
+ # (the architect is auto-selected; manual selection is only needed to override)
139
144
  opencode
140
145
 
141
146
  # 3. Inside the OpenCode session, verify Swarm is live (5s)
142
- /swarm diagnose
147
+ /swarm help
143
148
  /swarm agents
144
149
 
145
150
  # 4. Kick off a task — the architect plans, then gates fire automatically (15s)
@@ -156,13 +161,13 @@ Build me a JWT auth helper with tests.
156
161
  ┌──────────────────────────────────────────────────────────────┐
157
162
  │ $ bunx opencode-swarm install │
158
163
  │ ✓ installed opencode-swarm │
159
- │ ✓ wrote ~/.config/opencode/opencode-swarm.json
164
+ │ ✓ created .opencode/opencode-swarm.json
160
165
  │ │
161
166
  │ $ opencode │
162
- │ [mode picker] select: Swarm Architect
167
+ │ [Swarm] Welcome! Architect auto-selected. Type /swarm help
163
168
  │ │
164
- │ > /swarm diagnose
165
- plugin loaded ✓ agents registered ✓ gates armed
169
+ │ > /swarm help
170
+ Available commands: status, plan, agents, help, diagnose...
166
171
  │ │
167
172
  │ > Build me a JWT auth helper with tests. │
168
173
  │ [architect] PLAN → critic gate → APPROVED │
@@ -213,6 +218,7 @@ in your `opencode-swarm.json`.
213
218
  All 41 subcommands at a glance:
214
219
 
215
220
  ```bash
221
+ /swarm help [command] # List all commands or get detailed help for a specific command
216
222
  /swarm status # Current phase and task
217
223
  /swarm plan [N] # Full plan or filtered by phase
218
224
  /swarm agents # Registered agents and models
@@ -221,8 +227,28 @@ All 41 subcommands at a glance:
221
227
  /swarm reset --confirm # Clear swarm state
222
228
  ```
223
229
 
230
+ Use `/swarm help` to see all available commands categorized by function. Use `/swarm help <command>` for detailed usage information on a specific command.
231
+
224
232
  See [docs/commands.md](docs/commands.md) for the full reference (41 commands).
225
233
 
234
+ ## Command Aliases
235
+
236
+ Some commands are available under deprecated names for backwards compatibility. Using the canonical name is recommended:
237
+
238
+ | Alias (deprecated) | Canonical command |
239
+ |--------------------|-------------------|
240
+ | `/swarm config-doctor` | `/swarm config doctor` |
241
+ | `/swarm diagnosis` | `/swarm diagnose` |
242
+ | `/swarm evidence-summary` | `/swarm evidence summary` |
243
+ | `/swarm doctor` | `/swarm config doctor` |
244
+ | `/swarm info` | `/swarm status` |
245
+ | `/swarm list-agents` | `/swarm agents` |
246
+ | `/swarm health` | `/swarm diagnose` |
247
+ | `/swarm check` | `/swarm preflight` |
248
+ | `/swarm clear` | `/swarm reset-session` |
249
+
250
+ Aliases are hidden from help output but still function. The canonical command should be used in scripts and documentation.
251
+
226
252
  ---
227
253
 
228
254
  ## The Agents
@@ -1278,6 +1304,7 @@ Control how tool outputs are summarized for LLM context.
1278
1304
 
1279
1305
  | Command | Description |
1280
1306
  |---------|-------------|
1307
+ | `/swarm help [command]` | List all commands or get detailed help for a specific command |
1281
1308
  | `/swarm status` | Current phase, task progress, agent count |
1282
1309
  | `/swarm plan [N]` | Full plan or filtered by phase |
1283
1310
  | `/swarm agents` | Registered agents with models and permissions |
@@ -0,0 +1 @@
1
+ export {};