opencode-swarm 6.22.4 → 6.22.5
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 +18 -8
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,11 @@ OpenCode Swarm is a plugin for [OpenCode](https://opencode.ai) that turns a sing
|
|
|
8
8
|
|
|
9
9
|
You do **not** manually switch between Swarm's internal agents during normal use.
|
|
10
10
|
|
|
11
|
-
You
|
|
11
|
+
You must **explicitly choose a Swarm architect** in the OpenCode GUI before starting. The architect name shown in OpenCode is config-driven — you can define multiple architects with different model assignments in your configuration, and those custom names will appear in the GUI dropdown.
|
|
12
|
+
|
|
13
|
+
If you use OpenCode's default `Build` / `Plan` options instead of selecting a Swarm architect, the plugin is bypassed entirely.
|
|
14
|
+
|
|
15
|
+
Once you select a Swarm architect, that architect coordinates the internal pipeline behind the scenes, and all project state is persisted to `.swarm/` so work can resume later.
|
|
12
16
|
|
|
13
17
|
```bash
|
|
14
18
|
npm install -g opencode-swarm
|
|
@@ -93,15 +97,16 @@ What they tell you:
|
|
|
93
97
|
* `/swarm agents` shows the registered internal agents and model assignments
|
|
94
98
|
* `/swarm config` shows the resolved configuration currently in effect
|
|
95
99
|
|
|
96
|
-
### 4.
|
|
100
|
+
### 4. Select a Swarm architect and start
|
|
97
101
|
|
|
98
|
-
|
|
102
|
+
1. **Choose a Swarm architect** in the OpenCode GUI (the exact name depends on your configuration — you can define multiple architects with different model assignments)
|
|
103
|
+
2. Then describe what you want to build.
|
|
99
104
|
|
|
100
105
|
```text
|
|
101
106
|
Build a REST API with user registration, login, and JWT auth.
|
|
102
107
|
```
|
|
103
108
|
|
|
104
|
-
You do **not** manually choose `
|
|
109
|
+
You do **not** manually choose `coder`, `reviewer`, `critic`, or other internal agents. The **architect** coordinates them automatically after you select it.
|
|
105
110
|
|
|
106
111
|
### 5. Understand first run vs later runs
|
|
107
112
|
|
|
@@ -152,9 +157,11 @@ You only need to specify the agents you want to override.
|
|
|
152
157
|
|
|
153
158
|
## Common First-Run Questions
|
|
154
159
|
|
|
155
|
-
### "Do I need to
|
|
160
|
+
### "Do I need to select a Swarm architect?"
|
|
161
|
+
|
|
162
|
+
**Yes.** You must explicitly choose a Swarm architect agent in the OpenCode GUI before starting your session. The architect name shown in OpenCode is config-driven — you can define multiple architects with different model assignments in your configuration.
|
|
156
163
|
|
|
157
|
-
|
|
164
|
+
If you use the default OpenCode `Build` / `Plan` options without selecting a Swarm architect, the plugin is bypassed entirely.
|
|
158
165
|
|
|
159
166
|
### "Why did the second run start coding immediately?"
|
|
160
167
|
|
|
@@ -1156,8 +1163,11 @@ Upcoming: v6.22 focuses on further context optimization and agent coordination i
|
|
|
1156
1163
|
|
|
1157
1164
|
## FAQ
|
|
1158
1165
|
|
|
1159
|
-
### Do I need to
|
|
1160
|
-
|
|
1166
|
+
### Do I need to select a Swarm architect?
|
|
1167
|
+
|
|
1168
|
+
**Yes.** You must explicitly choose a Swarm architect agent in the OpenCode GUI before starting your session. The architect name shown in OpenCode is config-driven — you can define multiple architects with different model assignments in your configuration.
|
|
1169
|
+
|
|
1170
|
+
If you use the default OpenCode `Build` / `Plan` options without selecting a Swarm architect, the plugin is bypassed entirely.
|
|
1161
1171
|
|
|
1162
1172
|
### Why did Swarm start coding immediately on my second run?
|
|
1163
1173
|
Because Swarm resumes from `.swarm/` state when it exists. Check `/swarm status` to see the current mode.
|
package/dist/index.js
CHANGED
|
@@ -60922,7 +60922,8 @@ var OpenCodeSwarm = async (ctx) => {
|
|
|
60922
60922
|
}
|
|
60923
60923
|
}
|
|
60924
60924
|
}
|
|
60925
|
-
|
|
60925
|
+
const normalizedTool = input.tool.replace(/^[^:]+[:.]/, "");
|
|
60926
|
+
if (normalizedTool === "Task" || normalizedTool === "task") {
|
|
60926
60927
|
const sessionId = input.sessionID;
|
|
60927
60928
|
const beforeSession = swarmState.agentSessions.get(sessionId);
|
|
60928
60929
|
const beforeStates = beforeSession?.taskWorkflowStates ? Object.entries(beforeSession.taskWorkflowStates).map(([k, v]) => `${k}=${v}`).join(",") : "(none)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.22.
|
|
3
|
+
"version": "6.22.5",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|