@chorus-aidlc/chorus-openclaw-plugin 0.4.0 → 0.5.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 +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 +113 -96
- package/skills/develop/SKILL.md +195 -51
- package/skills/idea/SKILL.md +136 -149
- package/skills/openspec-aware/SKILL.md +425 -0
- package/skills/proposal/SKILL.md +155 -157
- package/skills/proposal-reviewer/SKILL.md +117 -0
- package/skills/quick-dev/SKILL.md +31 -7
- package/skills/review/SKILL.md +105 -33
- package/skills/task-reviewer/SKILL.md +113 -0
- package/skills/yolo/SKILL.md +498 -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.0"
|
|
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
|
```
|
|
@@ -134,9 +145,27 @@ Each task and proposal includes a `commentCount` field — use it to decide whic
|
|
|
134
145
|
chorus_get_documents({ projectUuid: "<project-uuid>" })
|
|
135
146
|
```
|
|
136
147
|
|
|
148
|
+
> **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.)
|
|
149
|
+
>
|
|
150
|
+
> **⛔ 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).
|
|
151
|
+
>
|
|
152
|
+
> 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.
|
|
153
|
+
>
|
|
154
|
+
> 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.
|
|
155
|
+
|
|
137
156
|
### Step 5: Start Working
|
|
138
157
|
|
|
158
|
+
**Sub-agent**: checkin to the task first:
|
|
159
|
+
```
|
|
160
|
+
chorus_session_checkin_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Then mark as in-progress:
|
|
139
164
|
```
|
|
165
|
+
# Sub-agent:
|
|
166
|
+
chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress", sessionUuid: "<session-uuid>" })
|
|
167
|
+
|
|
168
|
+
# Main agent:
|
|
140
169
|
chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress" })
|
|
141
170
|
```
|
|
142
171
|
|
|
@@ -154,7 +183,8 @@ Report periodically with `chorus_report_work`. Include:
|
|
|
154
183
|
```
|
|
155
184
|
chorus_report_work({
|
|
156
185
|
taskUuid: "<task-uuid>",
|
|
157
|
-
report: "Progress:\n- Created src/services/auth.service.ts\n- Commit: abc1234\n- Remaining: unit tests"
|
|
186
|
+
report: "Progress:\n- Created src/services/auth.service.ts\n- Commit: abc1234\n- Remaining: unit tests",
|
|
187
|
+
sessionUuid: "<session-uuid>"
|
|
158
188
|
})
|
|
159
189
|
```
|
|
160
190
|
|
|
@@ -163,7 +193,8 @@ Report with status update when complete:
|
|
|
163
193
|
chorus_report_work({
|
|
164
194
|
taskUuid: "<task-uuid>",
|
|
165
195
|
report: "All implementation complete:\n- Files: ...\n- PR: https://github.com/org/repo/pull/42\n- All tests passing",
|
|
166
|
-
status: "to_verify"
|
|
196
|
+
status: "to_verify",
|
|
197
|
+
sessionUuid: "<session-uuid>"
|
|
167
198
|
})
|
|
168
199
|
```
|
|
169
200
|
|
|
@@ -188,6 +219,12 @@ chorus_report_criteria_self_check({
|
|
|
188
219
|
|
|
189
220
|
### Step 8: Submit for Verification
|
|
190
221
|
|
|
222
|
+
**Sub-agents** — checkout first:
|
|
223
|
+
```
|
|
224
|
+
chorus_session_checkout_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
Then submit:
|
|
191
228
|
```
|
|
192
229
|
chorus_submit_for_verify({
|
|
193
230
|
taskUuid: "<task-uuid>",
|
|
@@ -195,54 +232,145 @@ chorus_submit_for_verify({
|
|
|
195
232
|
})
|
|
196
233
|
```
|
|
197
234
|
|
|
235
|
+
> `to_verify` does NOT unblock downstream tasks — only `done` (after admin verification) does.
|
|
236
|
+
|
|
237
|
+
### Step 8.5: Run the Task Reviewer (inline — no hook on OpenClaw)
|
|
238
|
+
|
|
239
|
+
> **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.
|
|
240
|
+
|
|
241
|
+
Obtain an independent VERDICT before the task is verified:
|
|
242
|
+
|
|
243
|
+
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:
|
|
244
|
+
> `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.`
|
|
245
|
+
|
|
246
|
+
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.
|
|
247
|
+
|
|
248
|
+
3. **Read the VERDICT and act:**
|
|
249
|
+
```
|
|
250
|
+
chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
|
|
251
|
+
```
|
|
252
|
+
Find the most recent comment containing `VERDICT:`:
|
|
253
|
+
- **VERDICT: PASS** — All AC verified, no issues. Proceed to admin verification.
|
|
254
|
+
- **VERDICT: PASS WITH NOTES** — All AC verified, minor notes. Proceed to admin verification (notes are non-blocking).
|
|
255
|
+
- **VERDICT: FAIL** — BLOCKERs found. Do NOT verify. Fix the BLOCKERs listed in the reviewer's comment, then resubmit (Step 9).
|
|
256
|
+
|
|
257
|
+
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.
|
|
258
|
+
|
|
198
259
|
### Step 9: Handle Review Feedback
|
|
199
260
|
|
|
200
|
-
If the
|
|
261
|
+
If the reviewer returns **FAIL**, or the task is reopened after verification:
|
|
262
|
+
|
|
263
|
+
**All acceptance criteria are reset to pending** when a task is reopened.
|
|
201
264
|
|
|
202
265
|
1. Check feedback:
|
|
203
266
|
```
|
|
204
267
|
chorus_get_task({ taskUuid: "<task-uuid>" })
|
|
205
268
|
chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
|
|
206
269
|
```
|
|
207
|
-
2. Fix
|
|
270
|
+
2. Fix every BLOCKER listed in the reviewer's FAIL comment.
|
|
271
|
+
3. Checkin again (sub-agent), fix issues, report fixes, resubmit, and re-run the reviewer (Step 8.5).
|
|
208
272
|
|
|
209
273
|
### Step 10: Task Complete
|
|
210
274
|
|
|
211
275
|
Once Admin verifies (status: `done`), move to the next available task (back to Step 2).
|
|
212
276
|
|
|
277
|
+
### Step 11: Idea Completion Report (advisory)
|
|
278
|
+
|
|
279
|
+
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.
|
|
280
|
+
|
|
213
281
|
---
|
|
214
282
|
|
|
215
|
-
##
|
|
283
|
+
## Session (Sub-Agents Only)
|
|
216
284
|
|
|
217
|
-
|
|
285
|
+
> **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
286
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
287
|
+
1. `chorus_create_session({ name })` — once at the start, unless the host already gave you a `sessionUuid`
|
|
288
|
+
2. `chorus_session_checkin_task({ sessionUuid, taskUuid })` — before starting work on each task
|
|
289
|
+
3. Pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution
|
|
290
|
+
4. `chorus_session_checkout_task({ sessionUuid, taskUuid })` — when done with each task
|
|
291
|
+
5. `chorus_close_session({ sessionUuid })` — when the sub-agent finishes (no hook closes it for you)
|
|
224
292
|
|
|
225
|
-
|
|
293
|
+
To keep a long-running session visible/active, send `chorus_session_heartbeat({ sessionUuid })` periodically (any session-touching tool also refreshes it).
|
|
226
294
|
|
|
227
|
-
|
|
295
|
+
**Main agent / Team Lead**: no session needed — call tools without `sessionUuid`.
|
|
228
296
|
|
|
229
297
|
---
|
|
230
298
|
|
|
231
|
-
##
|
|
299
|
+
## Wave-Based Execution on OpenClaw
|
|
300
|
+
|
|
301
|
+
> **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.
|
|
302
|
+
|
|
303
|
+
### Sequential wave loop
|
|
304
|
+
|
|
305
|
+
```
|
|
306
|
+
loop:
|
|
307
|
+
# 1. Find ready tasks (all dependencies done/closed)
|
|
308
|
+
unblocked = chorus_get_unblocked_tasks({ projectUuid: "<project-uuid>" })
|
|
309
|
+
|
|
310
|
+
if no unblocked tasks and all tasks done/closed:
|
|
311
|
+
break # All complete
|
|
312
|
+
|
|
313
|
+
if no unblocked tasks but some remain (not done):
|
|
314
|
+
break with escalation note # stuck — likely a failed review blocking the DAG
|
|
315
|
+
|
|
316
|
+
# 2. Work each unblocked task yourself, in order:
|
|
317
|
+
for each task in unblocked:
|
|
318
|
+
chorus_claim_task({ taskUuid: task.uuid })
|
|
319
|
+
chorus_update_task({ taskUuid: task.uuid, status: "in_progress" })
|
|
320
|
+
# ... read context, implement, run tests (Steps 4-7) ...
|
|
321
|
+
chorus_report_work({ taskUuid: task.uuid, report: "...", status: "to_verify" })
|
|
322
|
+
chorus_report_criteria_self_check({ taskUuid: task.uuid, criteria: [...] })
|
|
323
|
+
chorus_submit_for_verify({ taskUuid: task.uuid, summary: "..." })
|
|
324
|
+
# Step 8.5: run the task-reviewer inline; act on its VERDICT
|
|
325
|
+
# If you have task:admin, verify the task to "done" (this unblocks dependents)
|
|
326
|
+
|
|
327
|
+
# 3. Loop — chorus_get_unblocked_tasks now returns the next wave
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
> **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
331
|
|
|
233
|
-
|
|
332
|
+
> **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
333
|
|
|
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
|
|
334
|
+
### Optional: sub-agent dispatch
|
|
238
335
|
|
|
239
|
-
|
|
336
|
+
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:
|
|
337
|
+
|
|
338
|
+
```
|
|
339
|
+
Your Chorus task UUID: <task-uuid>
|
|
340
|
+
Project UUID: <project-uuid>
|
|
341
|
+
|
|
342
|
+
Session handling is MANUAL on OpenClaw:
|
|
343
|
+
1. chorus_create_session({ name: "<worker-name>" }) -> keep the sessionUuid
|
|
344
|
+
2. chorus_session_checkin_task({ sessionUuid, taskUuid })
|
|
345
|
+
3. chorus_update_task({ taskUuid, status: "in_progress", sessionUuid })
|
|
346
|
+
4. implement, then chorus_report_work({ ..., sessionUuid })
|
|
347
|
+
5. chorus_report_criteria_self_check({ taskUuid, criteria: [...] })
|
|
348
|
+
6. chorus_session_checkout_task({ sessionUuid, taskUuid })
|
|
349
|
+
7. chorus_submit_for_verify({ taskUuid, summary })
|
|
350
|
+
8. chorus_close_session({ sessionUuid })
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
The main agent still owns review + verification between waves.
|
|
354
|
+
|
|
355
|
+
### MCP Access for Sub-Agents
|
|
356
|
+
|
|
357
|
+
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.
|
|
358
|
+
|
|
359
|
+
### Troubleshooting
|
|
360
|
+
|
|
361
|
+
| Problem | Solution |
|
|
362
|
+
|---------|----------|
|
|
363
|
+
| 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 |
|
|
364
|
+
| 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` |
|
|
365
|
+
| 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 |
|
|
366
|
+
| Task stuck in wrong status | Use `chorus_update_task` to reset, or have the worker re-checkin |
|
|
367
|
+
| 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
368
|
|
|
241
369
|
---
|
|
242
370
|
|
|
243
371
|
## Work Report Best Practices
|
|
244
372
|
|
|
245
|
-
**Good report (enables continuity):**
|
|
373
|
+
**Good report (enables session continuity):**
|
|
246
374
|
```
|
|
247
375
|
Implemented password reset flow:
|
|
248
376
|
|
|
@@ -273,14 +401,30 @@ Acceptance criteria:
|
|
|
273
401
|
|
|
274
402
|
## Tips
|
|
275
403
|
|
|
276
|
-
- **Read task comments first** — they contain previous work reports for continuity
|
|
404
|
+
- **Read task comments first** — they contain previous work reports for session continuity
|
|
277
405
|
- **Check upstream dependencies** — read `dependsOn` tasks and their comments for interfaces/APIs
|
|
278
406
|
- **Read the originating proposal** — understand design rationale and task DAG
|
|
279
407
|
- **Use `commentCount`** — skip fetching comments on entities with count 0
|
|
280
408
|
- Report progress frequently — include file paths, commits, and PRs
|
|
281
409
|
- Write detailed submit summaries — Admin needs them to verify
|
|
282
|
-
-
|
|
283
|
-
-
|
|
410
|
+
- Always run the reviewer inline after submit (Step 8.5) — OpenClaw has no hook to remind you
|
|
411
|
+
- Sessions are manual on OpenClaw — create, checkin/checkout, and close your own session as a sub-agent
|
|
412
|
+
- If blocked, add a comment and consider releasing the task
|
|
413
|
+
- One task at a time: finish or release before claiming another
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
## When to Release a Task
|
|
418
|
+
|
|
419
|
+
Release if:
|
|
420
|
+
- You can't complete it (missing knowledge, blocked)
|
|
421
|
+
- A higher-priority task needs attention
|
|
422
|
+
- You won't finish in a reasonable timeframe
|
|
423
|
+
|
|
424
|
+
```
|
|
425
|
+
chorus_release_task({ taskUuid: "<task-uuid>" })
|
|
426
|
+
chorus_add_comment({ targetType: "task", targetUuid: "<task-uuid>", content: "Releasing: reason..." })
|
|
427
|
+
```
|
|
284
428
|
|
|
285
429
|
---
|
|
286
430
|
|