@chorus-aidlc/chorus-openclaw-plugin 0.4.0 → 0.5.3
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 +208 -278
- package/dist/commands.d.ts +5 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +147 -0
- package/dist/commands.js.map +1 -0
- package/dist/config.d.ts +38 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +57 -0
- package/dist/config.js.map +1 -0
- package/dist/event-router.d.ts +55 -0
- package/dist/event-router.d.ts.map +1 -0
- package/dist/event-router.js +157 -0
- package/dist/event-router.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-client.d.ts +37 -0
- package/dist/mcp-client.d.ts.map +1 -0
- package/dist/mcp-client.js +137 -0
- package/dist/mcp-client.js.map +1 -0
- package/dist/mcp-registration.d.ts +25 -0
- package/dist/mcp-registration.d.ts.map +1 -0
- package/dist/mcp-registration.js +93 -0
- package/dist/mcp-registration.js.map +1 -0
- package/dist/sse-listener.d.ts +37 -0
- package/dist/sse-listener.d.ts.map +1 -0
- package/dist/sse-listener.js +152 -0
- package/dist/sse-listener.js.map +1 -0
- package/dist/wake.d.ts +67 -0
- package/dist/wake.d.ts.map +1 -0
- package/dist/wake.js +234 -0
- package/dist/wake.js.map +1 -0
- package/openclaw.plugin.json +13 -12
- package/package.json +23 -5
- package/skills/brainstorm/SKILL.md +163 -0
- package/skills/chorus/SKILL.md +114 -97
- package/skills/develop/SKILL.md +197 -52
- package/skills/idea/SKILL.md +136 -150
- package/skills/openspec-aware/SKILL.md +425 -0
- package/skills/proposal/SKILL.md +162 -153
- package/skills/proposal-reviewer/SKILL.md +118 -0
- package/skills/quick-dev/SKILL.md +34 -10
- package/skills/review/SKILL.md +109 -35
- package/skills/task-reviewer/SKILL.md +113 -0
- package/skills/yolo/SKILL.md +501 -0
- package/src/commands.ts +138 -71
- package/src/config.ts +23 -10
- package/src/event-router.ts +46 -54
- package/src/index.ts +56 -83
- package/src/mcp-client.ts +17 -0
- package/src/mcp-registration.ts +142 -0
- package/src/openclaw-sdk.d.ts +95 -0
- package/src/wake.ts +310 -0
- package/src/tools/admin-tools.ts +0 -126
- package/src/tools/common-tools.ts +0 -575
- package/src/tools/dev-tools.ts +0 -105
- package/src/tools/pm-tools.ts +0 -411
package/skills/develop/SKILL.md
CHANGED
|
@@ -1,47 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: develop
|
|
3
|
-
description: Chorus Development workflow — claim tasks, report work, and
|
|
3
|
+
description: Chorus Development workflow — claim tasks, report work, manage sessions, and run wave-based execution on OpenClaw.
|
|
4
|
+
license: AGPL-3.0
|
|
4
5
|
metadata:
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
author: chorus
|
|
7
|
+
version: "0.9.4"
|
|
8
|
+
category: project-management
|
|
9
|
+
mcp_server: chorus
|
|
7
10
|
---
|
|
8
11
|
|
|
9
12
|
# Develop Skill
|
|
10
13
|
|
|
11
|
-
This skill covers the **Development** stage of the AI-DLC workflow: claiming Tasks, writing code, reporting progress, and
|
|
14
|
+
This skill covers the **Development** stage of the AI-DLC workflow: claiming Tasks, writing code, reporting progress, submitting for verification, and managing sessions for sub-agent observability.
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
> **Tool namespace:** Chorus tools are exposed by the connected MCP server under a `chorus__` prefix on OpenClaw (e.g. `chorus__chorus_claim_task`). Bare names are used below for readability — prepend `chorus__` when invoking. See `/chorus` for the full rule.
|
|
14
17
|
|
|
15
18
|
---
|
|
16
19
|
|
|
17
20
|
## Overview
|
|
18
21
|
|
|
19
|
-
Developer Agents take Tasks created by PM Agents (via `/proposal`) and turn them into working code. Each task follows
|
|
22
|
+
Developer Agents take Tasks created by PM Agents (via `/proposal`) and turn them into working code. Each task follows:
|
|
20
23
|
|
|
21
24
|
```
|
|
22
|
-
|
|
25
|
+
claim --> in_progress --> report work --> self-check AC --> submit for verify --> reviewer --> Admin /review
|
|
23
26
|
```
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
claim --> in_progress --> report work --> self-check AC --> submit for verify --> Admin /review
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## Task Status Lifecycle
|
|
34
|
-
|
|
35
|
-
| Status | Meaning |
|
|
36
|
-
|--------|---------|
|
|
37
|
-
| `open` | Available for claiming |
|
|
38
|
-
| `assigned` | Claimed by an agent, not yet started |
|
|
39
|
-
| `in_progress` | Active development |
|
|
40
|
-
| `to_verify` | Submitted for admin verification |
|
|
41
|
-
| `done` | Verified by admin — unblocks downstream tasks |
|
|
42
|
-
| `closed` | Closed by admin (also unblocks downstream) |
|
|
43
|
-
|
|
44
|
-
> **Important:** `to_verify` does NOT unblock downstream tasks — only `done` or `closed` does.
|
|
28
|
+
For multi-task execution, OpenClaw runs **sequential waves** (the main agent works tasks in dependency order) — see [Wave-Based Execution](#wave-based-execution-on-openclaw) below.
|
|
45
29
|
|
|
46
30
|
---
|
|
47
31
|
|
|
@@ -52,7 +36,8 @@ claim --> in_progress --> report work --> self-check AC --> submit for verify --
|
|
|
52
36
|
| Tool | Purpose |
|
|
53
37
|
|------|---------|
|
|
54
38
|
| `chorus_claim_task` | Claim an open task (open -> assigned) |
|
|
55
|
-
| `
|
|
39
|
+
| `chorus_release_task` | Release a claimed task (assigned -> open) |
|
|
40
|
+
| `chorus_update_task` | Update task status (in_progress / to_verify) |
|
|
56
41
|
| `chorus_submit_for_verify` | Submit task for admin verification with summary |
|
|
57
42
|
|
|
58
43
|
**Work Reporting:**
|
|
@@ -67,6 +52,18 @@ claim --> in_progress --> report work --> self-check AC --> submit for verify --
|
|
|
67
52
|
|------|---------|
|
|
68
53
|
| `chorus_report_criteria_self_check` | Report self-check results (passed/failed + optional evidence) on structured acceptance criteria |
|
|
69
54
|
|
|
55
|
+
**Session (sub-agents only — main agent skips these):**
|
|
56
|
+
|
|
57
|
+
| Tool | Purpose |
|
|
58
|
+
|------|---------|
|
|
59
|
+
| `chorus_create_session` | Create a session for a sub-agent (manual on OpenClaw — see below) |
|
|
60
|
+
| `chorus_session_checkin_task` | Checkin to a task before starting work |
|
|
61
|
+
| `chorus_session_checkout_task` | Checkout from a task when work is done |
|
|
62
|
+
| `chorus_close_session` | Close the session when the sub-agent finishes |
|
|
63
|
+
|
|
64
|
+
Sub-agents: always pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution.
|
|
65
|
+
Main agent / Team Lead: call these tools without `sessionUuid` — no session needed.
|
|
66
|
+
|
|
70
67
|
**Shared tools** (checkin, query, comment, search, notifications): see `/chorus`
|
|
71
68
|
|
|
72
69
|
---
|
|
@@ -81,6 +78,20 @@ chorus_checkin()
|
|
|
81
78
|
|
|
82
79
|
Review your persona, current assignments, and pending work counts.
|
|
83
80
|
|
|
81
|
+
### Step 1.5: Manage Your Session (Sub-Agents Only)
|
|
82
|
+
|
|
83
|
+
**Skip if you are the main agent.**
|
|
84
|
+
|
|
85
|
+
> **OpenClaw difference:** the Claude Code plugin auto-creates and auto-injects a sub-agent's session via a SubagentStart hook. **OpenClaw does not run that hook.** Session handling is **manual**: if you are a sub-agent and the host did not hand you a `sessionUuid`, create one yourself once at the start, keep it for all task operations, and close it when you finish.
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
# Create your own session (only if no sessionUuid was provided to you)
|
|
89
|
+
chorus_create_session({ name: "<descriptive-worker-name>" })
|
|
90
|
+
# -> keep the returned sessionUuid for every task call below
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
If the OpenClaw host *did* inject a `sessionUuid` into your prompt (some hosts forward parent context), reuse it instead of creating a new one. When in doubt, create one — duplicate idle sessions are harmless and auto-go-inactive after 1h.
|
|
94
|
+
|
|
84
95
|
### Step 2: Find Work
|
|
85
96
|
|
|
86
97
|
```
|
|
@@ -126,17 +137,36 @@ Each task and proposal includes a `commentCount` field — use it to decide whic
|
|
|
126
137
|
|
|
127
138
|
4. **Read the originating proposal** for design intent:
|
|
128
139
|
```
|
|
129
|
-
chorus_get_proposal({ proposalUuid: "<proposal-uuid>" })
|
|
140
|
+
chorus_get_proposal({ proposalUuid: "<proposal-uuid>", section: "documents" })
|
|
130
141
|
```
|
|
142
|
+
(`chorus_get_proposal` defaults to `section: "basic"` — just metadata + a draft index. Pass `section: "documents"` for the design docs, or `section: "full"` for docs + task drafts.)
|
|
131
143
|
|
|
132
144
|
5. **Read project documents** (PRD, tech design, ADR):
|
|
133
145
|
```
|
|
134
146
|
chorus_get_documents({ projectUuid: "<project-uuid>" })
|
|
135
147
|
```
|
|
136
148
|
|
|
149
|
+
> **Document update flow (OpenSpec mode):** if the originating proposal `description` contains a line `OpenSpec change slug: <slug>`, the project's PRD / tech_design / spec Documents are **mirrors** of files under `openspec/changes/<slug>/`. To update such a Document (e.g. clarify an AC, fix a spec scenario before resubmitting), load the `openspec-aware` skill and follow §3.8: edit the local `.md` file first, then mirror through the `chorus-api.sh` wrapper with `json_encode_file` and `chorus_check_response`. (OpenClaw runs `openspec-aware`'s detection inline — there is no SessionStart hook; see `openspec-aware` §1.)
|
|
150
|
+
>
|
|
151
|
+
> **⛔ Do not** call `chorus_pm_update_document` directly from the MCP harness with a hand-typed `content` field in OpenSpec mode. The local file is the source of truth; agent-typed content drifts and burns tokens (`openspec-aware` §2 Rule 1).
|
|
152
|
+
>
|
|
153
|
+
> When the LAST task of an OpenSpec idea is verified, run the archive flow yourself (`openspec-aware` §3.9): run `openspec archive <slug> --yes`, then mirror each emitted `openspec/specs/<capability>/spec.md` back via §3.8. **OpenClaw has no PostToolUse hook to remind you** — check after each verify whether the just-verified task was the last of its idea, and if so trigger the archive flow yourself.
|
|
154
|
+
>
|
|
155
|
+
> In the no-OpenSpec fallback (no slug line, or no `openspec` CLI), edit the Document content directly via the existing MCP tool with no wrapper, no local file step.
|
|
156
|
+
|
|
137
157
|
### Step 5: Start Working
|
|
138
158
|
|
|
159
|
+
**Sub-agent**: checkin to the task first:
|
|
160
|
+
```
|
|
161
|
+
chorus_session_checkin_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Then mark as in-progress:
|
|
139
165
|
```
|
|
166
|
+
# Sub-agent:
|
|
167
|
+
chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress", sessionUuid: "<session-uuid>" })
|
|
168
|
+
|
|
169
|
+
# Main agent:
|
|
140
170
|
chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress" })
|
|
141
171
|
```
|
|
142
172
|
|
|
@@ -154,7 +184,8 @@ Report periodically with `chorus_report_work`. Include:
|
|
|
154
184
|
```
|
|
155
185
|
chorus_report_work({
|
|
156
186
|
taskUuid: "<task-uuid>",
|
|
157
|
-
report: "Progress:\n- Created src/services/auth.service.ts\n- Commit: abc1234\n- Remaining: unit tests"
|
|
187
|
+
report: "Progress:\n- Created src/services/auth.service.ts\n- Commit: abc1234\n- Remaining: unit tests",
|
|
188
|
+
sessionUuid: "<session-uuid>"
|
|
158
189
|
})
|
|
159
190
|
```
|
|
160
191
|
|
|
@@ -163,7 +194,8 @@ Report with status update when complete:
|
|
|
163
194
|
chorus_report_work({
|
|
164
195
|
taskUuid: "<task-uuid>",
|
|
165
196
|
report: "All implementation complete:\n- Files: ...\n- PR: https://github.com/org/repo/pull/42\n- All tests passing",
|
|
166
|
-
status: "to_verify"
|
|
197
|
+
status: "to_verify",
|
|
198
|
+
sessionUuid: "<session-uuid>"
|
|
167
199
|
})
|
|
168
200
|
```
|
|
169
201
|
|
|
@@ -188,6 +220,12 @@ chorus_report_criteria_self_check({
|
|
|
188
220
|
|
|
189
221
|
### Step 8: Submit for Verification
|
|
190
222
|
|
|
223
|
+
**Sub-agents** — checkout first:
|
|
224
|
+
```
|
|
225
|
+
chorus_session_checkout_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Then submit:
|
|
191
229
|
```
|
|
192
230
|
chorus_submit_for_verify({
|
|
193
231
|
taskUuid: "<task-uuid>",
|
|
@@ -195,54 +233,145 @@ chorus_submit_for_verify({
|
|
|
195
233
|
})
|
|
196
234
|
```
|
|
197
235
|
|
|
236
|
+
> `to_verify` does NOT unblock downstream tasks — only `done` (after admin verification) does.
|
|
237
|
+
|
|
238
|
+
### Step 8.5: Run the Task Reviewer (inline — no hook on OpenClaw)
|
|
239
|
+
|
|
240
|
+
> **OpenClaw difference:** the Claude Code plugin relies on a PostToolUse hook to inject a "spawn the reviewer" reminder after `chorus_submit_for_verify`. **OpenClaw has no such hook.** Run the reviewer step **inline**, right here, immediately after submitting. Do not wait for an injected reminder.
|
|
241
|
+
|
|
242
|
+
Obtain an independent VERDICT before the task is verified:
|
|
243
|
+
|
|
244
|
+
1. **Preferred — spawn a reviewer sub-agent.** Use the OpenClaw `sessions_spawn` tool to spawn a sub-agent whose `task` tells it to **invoke the `/task-reviewer` skill** (bundled with this plugin) against the task, then wait for it (poll the `subagents` tool or use `sessions_yield` — do NOT detach; you need the VERDICT before proceeding). The sub-agent inherits the plugin skills, so `/task-reviewer` is available to it; that skill is read-only (read-only bash for tests/build allowed) and posts a `VERDICT:` comment on the task. Example task prompt:
|
|
245
|
+
> `Run the /task-reviewer skill to verify taskUuid <uuid>. Read the task, its AC, the proposal documents, and the code; run the project's tests; verify each AC independently; post your VERDICT comment on the task when done.`
|
|
246
|
+
|
|
247
|
+
2. **Fallback — review it yourself.** If `sessions_spawn` is unavailable on your host (spawning disabled by policy), perform the review yourself as a **focused, read-only pass** following the `/task-reviewer` skill's procedure: read `chorus_get_task`, `chorus_get_comments`, the originating proposal and its documents; read the code that implements each AC (do not trust the developer summary); run the project's test/build commands; verify each acceptance criterion independently. Then record the result yourself via `chorus_add_comment` ending with a `VERDICT:` line (PASS / PASS WITH NOTES / FAIL). Do NOT modify project files during this pass — it is review-only (read-only bash for tests/build is fine). Use the same BLOCKER vs NOTE classification the `/task-reviewer` skill defines.
|
|
248
|
+
|
|
249
|
+
3. **Read the VERDICT and act:**
|
|
250
|
+
```
|
|
251
|
+
chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
|
|
252
|
+
```
|
|
253
|
+
Find the most recent comment containing `VERDICT:`:
|
|
254
|
+
- **VERDICT: PASS** — All AC verified, no issues. Proceed to admin verification.
|
|
255
|
+
- **VERDICT: PASS WITH NOTES** — All AC verified, minor notes. Proceed to admin verification (notes are non-blocking).
|
|
256
|
+
- **VERDICT: FAIL** — BLOCKERs found. Do NOT verify. Fix the BLOCKERs listed in the reviewer's comment, then resubmit (Step 9).
|
|
257
|
+
|
|
258
|
+
If you spawned a sub-agent and no new `VERDICT:` comment appears after it returns, it exhausted its turn budget. Respawn it ONCE with a concise-budget hint: *"Stay within turn budget. Skip deep verification. Fetch task/proposal/comments, run only the core tests, and post your VERDICT within the first 12 turns."* If the second attempt still produces no VERDICT, fall back to reviewing manually (Step 8.5 fallback) and post the VERDICT yourself.
|
|
259
|
+
|
|
198
260
|
### Step 9: Handle Review Feedback
|
|
199
261
|
|
|
200
|
-
If the
|
|
262
|
+
If the reviewer returns **FAIL**, or the task is reopened after verification:
|
|
263
|
+
|
|
264
|
+
**All acceptance criteria are reset to pending** when a task is reopened.
|
|
201
265
|
|
|
202
266
|
1. Check feedback:
|
|
203
267
|
```
|
|
204
268
|
chorus_get_task({ taskUuid: "<task-uuid>" })
|
|
205
269
|
chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
|
|
206
270
|
```
|
|
207
|
-
2. Fix
|
|
271
|
+
2. Fix every BLOCKER listed in the reviewer's FAIL comment.
|
|
272
|
+
3. Checkin again (sub-agent), fix issues, report fixes, resubmit, and re-run the reviewer (Step 8.5).
|
|
208
273
|
|
|
209
274
|
### Step 10: Task Complete
|
|
210
275
|
|
|
211
276
|
Once Admin verifies (status: `done`), move to the next available task (back to Step 2).
|
|
212
277
|
|
|
278
|
+
### Step 11: Idea Completion Report (advisory)
|
|
279
|
+
|
|
280
|
+
If the task you just self-verified was the LAST one of its Idea (every Task across every approved Proposal is now `done`/`closed`) and you have `document:write`, offer to call `chorus_create_report`. On OpenClaw, ask the user as a plain-text prompt (e.g. "This was the last task of the idea. Want me to write a completion report? Reply yes/no.") — there is no `AskUserQuestion` primitive. The tool description carries the section template. Skip on decline.
|
|
281
|
+
|
|
213
282
|
---
|
|
214
283
|
|
|
215
|
-
##
|
|
284
|
+
## Session (Sub-Agents Only)
|
|
216
285
|
|
|
217
|
-
|
|
286
|
+
> **OpenClaw difference:** session lifecycle is **manual** on OpenClaw. The Claude Code plugin automates creation, heartbeat, and cleanup via hooks; OpenClaw does not run those hooks. A sub-agent therefore manages its own session:
|
|
218
287
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
288
|
+
1. `chorus_create_session({ name })` — once at the start, unless the host already gave you a `sessionUuid`
|
|
289
|
+
2. `chorus_session_checkin_task({ sessionUuid, taskUuid })` — before starting work on each task
|
|
290
|
+
3. Pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution
|
|
291
|
+
4. `chorus_session_checkout_task({ sessionUuid, taskUuid })` — when done with each task
|
|
292
|
+
5. `chorus_close_session({ sessionUuid })` — when the sub-agent finishes (no hook closes it for you)
|
|
224
293
|
|
|
225
|
-
|
|
294
|
+
To keep a long-running session visible/active, send `chorus_session_heartbeat({ sessionUuid })` periodically (any session-touching tool also refreshes it).
|
|
226
295
|
|
|
227
|
-
|
|
296
|
+
**Main agent / Team Lead**: no session needed — call tools without `sessionUuid`.
|
|
228
297
|
|
|
229
298
|
---
|
|
230
299
|
|
|
231
|
-
##
|
|
300
|
+
## Wave-Based Execution on OpenClaw
|
|
301
|
+
|
|
302
|
+
> **OpenClaw difference:** OpenClaw has **no Agent Teams / `TeamCreate` primitive**. The Claude Code plugin can spawn a parallel team per wave; on OpenClaw you (the main agent) execute tasks **sequentially** in dependency order. This is slower than parallel teams but completes the same pipeline.
|
|
303
|
+
|
|
304
|
+
### Sequential wave loop
|
|
305
|
+
|
|
306
|
+
```
|
|
307
|
+
loop:
|
|
308
|
+
# 1. Find ready tasks (all dependencies done/closed)
|
|
309
|
+
unblocked = chorus_get_unblocked_tasks({ projectUuid: "<project-uuid>" })
|
|
310
|
+
|
|
311
|
+
if no unblocked tasks and all tasks done/closed:
|
|
312
|
+
break # All complete
|
|
313
|
+
|
|
314
|
+
if no unblocked tasks but some remain (not done):
|
|
315
|
+
break with escalation note # stuck — likely a failed review blocking the DAG
|
|
316
|
+
|
|
317
|
+
# 2. Work each unblocked task yourself, in order:
|
|
318
|
+
for each task in unblocked:
|
|
319
|
+
chorus_claim_task({ taskUuid: task.uuid })
|
|
320
|
+
chorus_update_task({ taskUuid: task.uuid, status: "in_progress" })
|
|
321
|
+
# ... read context, implement, run tests (Steps 4-7) ...
|
|
322
|
+
chorus_report_work({ taskUuid: task.uuid, report: "...", status: "to_verify" })
|
|
323
|
+
chorus_report_criteria_self_check({ taskUuid: task.uuid, criteria: [...] })
|
|
324
|
+
chorus_submit_for_verify({ taskUuid: task.uuid, summary: "..." })
|
|
325
|
+
# Step 8.5: run the task-reviewer inline; act on its VERDICT
|
|
326
|
+
# If you have task:admin, verify the task to "done" (this unblocks dependents)
|
|
327
|
+
|
|
328
|
+
# 3. Loop — chorus_get_unblocked_tasks now returns the next wave
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
> **Critical:** `to_verify` does NOT resolve dependencies — only `done` or `closed` does. A task must be **verified to `done`** (by an Admin, or by you if you hold `task:admin`) before its dependents become unblocked. If you lack `task:admin`, submit each task for verify and ask the project's admin to verify between waves, then re-run `chorus_get_unblocked_tasks`.
|
|
232
332
|
|
|
233
|
-
|
|
333
|
+
> **Claude-Code-only optimization (degrades to sequential here):** under the Claude Code plugin, each wave can be dispatched in parallel via `TeamCreate` + per-task sub-agents. OpenClaw has no such primitive, so the loop above runs serially. Do NOT attempt to call `TeamCreate` on OpenClaw — it does not exist.
|
|
234
334
|
|
|
235
|
-
|
|
236
|
-
- Use `chorus_get_unblocked_tasks` to find tasks with all dependencies resolved
|
|
237
|
-
- Use `addDependsOn` / `removeDependsOn` in `chorus_update_task` to manage dependencies
|
|
335
|
+
### Optional: sub-agent dispatch
|
|
238
336
|
|
|
239
|
-
|
|
337
|
+
If your OpenClaw host *does* support spawning worker sub-agents (not Agent Teams, just generic sub-agents), you may hand each a task. Because there is no SubagentStart hook, the worker prompt **must** include the manual session instructions explicitly:
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
Your Chorus task UUID: <task-uuid>
|
|
341
|
+
Project UUID: <project-uuid>
|
|
342
|
+
|
|
343
|
+
Session handling is MANUAL on OpenClaw:
|
|
344
|
+
1. chorus_create_session({ name: "<worker-name>" }) -> keep the sessionUuid
|
|
345
|
+
2. chorus_session_checkin_task({ sessionUuid, taskUuid })
|
|
346
|
+
3. chorus_update_task({ taskUuid, status: "in_progress", sessionUuid })
|
|
347
|
+
4. implement, then chorus_report_work({ ..., sessionUuid })
|
|
348
|
+
5. chorus_report_criteria_self_check({ taskUuid, criteria: [...] })
|
|
349
|
+
6. chorus_session_checkout_task({ sessionUuid, taskUuid })
|
|
350
|
+
7. chorus_submit_for_verify({ taskUuid, summary })
|
|
351
|
+
8. chorus_close_session({ sessionUuid })
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
The main agent still owns review + verification between waves.
|
|
355
|
+
|
|
356
|
+
### MCP Access for Sub-Agents
|
|
357
|
+
|
|
358
|
+
If you dispatch sub-agents, ensure they can reach the Chorus MCP server — the plugin config (and therefore the `chorus__*` tools) must be available in the sub-agent's environment, and the API key must carry the needed permissions.
|
|
359
|
+
|
|
360
|
+
### Troubleshooting
|
|
361
|
+
|
|
362
|
+
| Problem | Solution |
|
|
363
|
+
|---------|----------|
|
|
364
|
+
| Sub-agent can't access Chorus MCP tools | Verify the Chorus MCP server is registered/connected for the sub-agent and the API key has developer permissions |
|
|
365
|
+
| UI doesn't show active workers | Sub-agent forgot `chorus_session_checkin_task`, or never created a session. Check `chorus_get_session` / `chorus_list_sessions` |
|
|
366
|
+
| Session disappears from Settings | No activity for 1h (default lists hide stale sessions). The session row still exists — reachable via `chorus_list_sessions` / `chorus_get_session`. Send `chorus_session_heartbeat` (or any session-touching tool) to make it visible again |
|
|
367
|
+
| Task stuck in wrong status | Use `chorus_update_task` to reset, or have the worker re-checkin |
|
|
368
|
+
| Duplicate sessions | On OpenClaw the sub-agent creates its own session — if it created several, close extras via `chorus_close_session` or the Settings page |
|
|
240
369
|
|
|
241
370
|
---
|
|
242
371
|
|
|
243
372
|
## Work Report Best Practices
|
|
244
373
|
|
|
245
|
-
**Good report (enables continuity):**
|
|
374
|
+
**Good report (enables session continuity):**
|
|
246
375
|
```
|
|
247
376
|
Implemented password reset flow:
|
|
248
377
|
|
|
@@ -273,14 +402,30 @@ Acceptance criteria:
|
|
|
273
402
|
|
|
274
403
|
## Tips
|
|
275
404
|
|
|
276
|
-
- **Read task comments first** — they contain previous work reports for continuity
|
|
405
|
+
- **Read task comments first** — they contain previous work reports for session continuity
|
|
277
406
|
- **Check upstream dependencies** — read `dependsOn` tasks and their comments for interfaces/APIs
|
|
278
407
|
- **Read the originating proposal** — understand design rationale and task DAG
|
|
279
408
|
- **Use `commentCount`** — skip fetching comments on entities with count 0
|
|
280
409
|
- Report progress frequently — include file paths, commits, and PRs
|
|
281
410
|
- Write detailed submit summaries — Admin needs them to verify
|
|
282
|
-
-
|
|
283
|
-
-
|
|
411
|
+
- Always run the reviewer inline after submit (Step 8.5) — OpenClaw has no hook to remind you
|
|
412
|
+
- Sessions are manual on OpenClaw — create, checkin/checkout, and close your own session as a sub-agent
|
|
413
|
+
- If blocked, add a comment and consider releasing the task
|
|
414
|
+
- One task at a time: finish or release before claiming another
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
## When to Release a Task
|
|
419
|
+
|
|
420
|
+
Release if:
|
|
421
|
+
- You can't complete it (missing knowledge, blocked)
|
|
422
|
+
- A higher-priority task needs attention
|
|
423
|
+
- You won't finish in a reasonable timeframe
|
|
424
|
+
|
|
425
|
+
```
|
|
426
|
+
chorus_release_task({ taskUuid: "<task-uuid>" })
|
|
427
|
+
chorus_add_comment({ targetType: "task", targetUuid: "<task-uuid>", content: "Releasing: reason..." })
|
|
428
|
+
```
|
|
284
429
|
|
|
285
430
|
---
|
|
286
431
|
|