@adamancyzhang/claude-orchestrator 0.3.1 → 0.3.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.
Files changed (61) hide show
  1. package/README.md +76 -77
  2. package/dist/cli/commands.d.ts +2 -2
  3. package/dist/cli/commands.js +51 -24
  4. package/dist/cli/commands.js.map +1 -1
  5. package/dist/config.d.ts +8 -2
  6. package/dist/config.js +6 -2
  7. package/dist/config.js.map +1 -1
  8. package/dist/executor/runner.d.ts +19 -0
  9. package/dist/executor/runner.js +59 -0
  10. package/dist/executor/runner.js.map +1 -0
  11. package/dist/executor/template.d.ts +12 -0
  12. package/dist/executor/template.js +42 -0
  13. package/dist/executor/template.js.map +1 -0
  14. package/dist/hooks/engine.d.ts +22 -0
  15. package/dist/hooks/engine.js +50 -0
  16. package/dist/hooks/engine.js.map +1 -0
  17. package/dist/index.js +16 -15
  18. package/dist/index.js.map +1 -1
  19. package/dist/leader/chain-router.d.ts +22 -0
  20. package/dist/leader/chain-router.js +163 -0
  21. package/dist/leader/chain-router.js.map +1 -0
  22. package/dist/leader/event-bus.d.ts +1 -1
  23. package/dist/leader/event-bus.js +1 -1
  24. package/dist/leader/event-bus.js.map +1 -1
  25. package/dist/leader/index.d.ts +1 -2
  26. package/dist/leader/index.js +30 -18
  27. package/dist/leader/index.js.map +1 -1
  28. package/dist/leader/state.js +9 -0
  29. package/dist/leader/state.js.map +1 -1
  30. package/dist/leader/tui.d.ts +8 -0
  31. package/dist/leader/tui.js +66 -4
  32. package/dist/leader/tui.js.map +1 -1
  33. package/dist/leader/watcher.d.ts +4 -5
  34. package/dist/leader/watcher.js +8 -25
  35. package/dist/leader/watcher.js.map +1 -1
  36. package/dist/models/schemas.d.ts +256 -0
  37. package/dist/models/schemas.js +25 -0
  38. package/dist/models/schemas.js.map +1 -1
  39. package/dist/skills/CLAUDE.md +1 -1
  40. package/dist/skills/claude-orchestrator/SKILL.md +124 -60
  41. package/dist/templates/{leader-decompose.md → worker-decompose.md} +6 -8
  42. package/dist/templates/worker-evaluate.md +41 -0
  43. package/dist/utils/exec.js +2 -0
  44. package/dist/utils/exec.js.map +1 -1
  45. package/dist/utils/logger.d.ts +10 -0
  46. package/dist/utils/logger.js +22 -0
  47. package/dist/utils/logger.js.map +1 -0
  48. package/dist/worker/evaluator.d.ts +13 -0
  49. package/dist/worker/evaluator.js +112 -0
  50. package/dist/worker/evaluator.js.map +1 -0
  51. package/dist/worker/watcher.d.ts +11 -5
  52. package/dist/worker/watcher.js +98 -84
  53. package/dist/worker/watcher.js.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/leader/decision-engine.d.ts +0 -35
  56. package/dist/leader/decision-engine.js +0 -102
  57. package/dist/leader/decision-engine.js.map +0 -1
  58. package/dist/leader/task-generator.d.ts +0 -34
  59. package/dist/leader/task-generator.js +0 -93
  60. package/dist/leader/task-generator.js.map +0 -1
  61. package/dist/templates/leader-decide.md +0 -59
@@ -323,3 +323,259 @@ export declare const DismissMessageInput: z.ZodObject<{
323
323
  instance_id: string;
324
324
  message_id: string;
325
325
  }>;
326
+ export declare const ChainTaskDefSchema: z.ZodObject<{
327
+ title: z.ZodString;
328
+ description: z.ZodString;
329
+ criteria: z.ZodString;
330
+ priority: z.ZodNumber;
331
+ }, "strip", z.ZodTypeAny, {
332
+ title: string;
333
+ description: string;
334
+ priority: number;
335
+ criteria: string;
336
+ }, {
337
+ title: string;
338
+ description: string;
339
+ priority: number;
340
+ criteria: string;
341
+ }>;
342
+ export type ChainTaskDef = z.infer<typeof ChainTaskDefSchema>;
343
+ export declare const ChainDefSchema: z.ZodObject<{
344
+ chain_id: z.ZodString;
345
+ chain_title: z.ZodString;
346
+ tasks: z.ZodObject<{
347
+ plan: z.ZodNullable<z.ZodObject<{
348
+ title: z.ZodString;
349
+ description: z.ZodString;
350
+ criteria: z.ZodString;
351
+ priority: z.ZodNumber;
352
+ }, "strip", z.ZodTypeAny, {
353
+ title: string;
354
+ description: string;
355
+ priority: number;
356
+ criteria: string;
357
+ }, {
358
+ title: string;
359
+ description: string;
360
+ priority: number;
361
+ criteria: string;
362
+ }>>;
363
+ build: z.ZodObject<{
364
+ title: z.ZodString;
365
+ description: z.ZodString;
366
+ criteria: z.ZodString;
367
+ priority: z.ZodNumber;
368
+ }, "strip", z.ZodTypeAny, {
369
+ title: string;
370
+ description: string;
371
+ priority: number;
372
+ criteria: string;
373
+ }, {
374
+ title: string;
375
+ description: string;
376
+ priority: number;
377
+ criteria: string;
378
+ }>;
379
+ verify: z.ZodObject<{
380
+ title: z.ZodString;
381
+ description: z.ZodString;
382
+ criteria: z.ZodString;
383
+ priority: z.ZodNumber;
384
+ }, "strip", z.ZodTypeAny, {
385
+ title: string;
386
+ description: string;
387
+ priority: number;
388
+ criteria: string;
389
+ }, {
390
+ title: string;
391
+ description: string;
392
+ priority: number;
393
+ criteria: string;
394
+ }>;
395
+ review: z.ZodObject<{
396
+ title: z.ZodString;
397
+ description: z.ZodString;
398
+ criteria: z.ZodString;
399
+ priority: z.ZodNumber;
400
+ }, "strip", z.ZodTypeAny, {
401
+ title: string;
402
+ description: string;
403
+ priority: number;
404
+ criteria: string;
405
+ }, {
406
+ title: string;
407
+ description: string;
408
+ priority: number;
409
+ criteria: string;
410
+ }>;
411
+ accept: z.ZodObject<{
412
+ title: z.ZodString;
413
+ description: z.ZodString;
414
+ criteria: z.ZodString;
415
+ priority: z.ZodNumber;
416
+ }, "strip", z.ZodTypeAny, {
417
+ title: string;
418
+ description: string;
419
+ priority: number;
420
+ criteria: string;
421
+ }, {
422
+ title: string;
423
+ description: string;
424
+ priority: number;
425
+ criteria: string;
426
+ }>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ plan: {
429
+ title: string;
430
+ description: string;
431
+ priority: number;
432
+ criteria: string;
433
+ } | null;
434
+ build: {
435
+ title: string;
436
+ description: string;
437
+ priority: number;
438
+ criteria: string;
439
+ };
440
+ verify: {
441
+ title: string;
442
+ description: string;
443
+ priority: number;
444
+ criteria: string;
445
+ };
446
+ review: {
447
+ title: string;
448
+ description: string;
449
+ priority: number;
450
+ criteria: string;
451
+ };
452
+ accept: {
453
+ title: string;
454
+ description: string;
455
+ priority: number;
456
+ criteria: string;
457
+ };
458
+ }, {
459
+ plan: {
460
+ title: string;
461
+ description: string;
462
+ priority: number;
463
+ criteria: string;
464
+ } | null;
465
+ build: {
466
+ title: string;
467
+ description: string;
468
+ priority: number;
469
+ criteria: string;
470
+ };
471
+ verify: {
472
+ title: string;
473
+ description: string;
474
+ priority: number;
475
+ criteria: string;
476
+ };
477
+ review: {
478
+ title: string;
479
+ description: string;
480
+ priority: number;
481
+ criteria: string;
482
+ };
483
+ accept: {
484
+ title: string;
485
+ description: string;
486
+ priority: number;
487
+ criteria: string;
488
+ };
489
+ }>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ chain_id: string;
492
+ chain_title: string;
493
+ tasks: {
494
+ plan: {
495
+ title: string;
496
+ description: string;
497
+ priority: number;
498
+ criteria: string;
499
+ } | null;
500
+ build: {
501
+ title: string;
502
+ description: string;
503
+ priority: number;
504
+ criteria: string;
505
+ };
506
+ verify: {
507
+ title: string;
508
+ description: string;
509
+ priority: number;
510
+ criteria: string;
511
+ };
512
+ review: {
513
+ title: string;
514
+ description: string;
515
+ priority: number;
516
+ criteria: string;
517
+ };
518
+ accept: {
519
+ title: string;
520
+ description: string;
521
+ priority: number;
522
+ criteria: string;
523
+ };
524
+ };
525
+ }, {
526
+ chain_id: string;
527
+ chain_title: string;
528
+ tasks: {
529
+ plan: {
530
+ title: string;
531
+ description: string;
532
+ priority: number;
533
+ criteria: string;
534
+ } | null;
535
+ build: {
536
+ title: string;
537
+ description: string;
538
+ priority: number;
539
+ criteria: string;
540
+ };
541
+ verify: {
542
+ title: string;
543
+ description: string;
544
+ priority: number;
545
+ criteria: string;
546
+ };
547
+ review: {
548
+ title: string;
549
+ description: string;
550
+ priority: number;
551
+ criteria: string;
552
+ };
553
+ accept: {
554
+ title: string;
555
+ description: string;
556
+ priority: number;
557
+ criteria: string;
558
+ };
559
+ };
560
+ }>;
561
+ export type ChainDef = z.infer<typeof ChainDefSchema>;
562
+ export declare const EvalDecisionSchema: z.ZodObject<{
563
+ decision: z.ZodEnum<["activate_next", "feedback", "close_chain"]>;
564
+ reason: z.ZodString;
565
+ feedback: z.ZodOptional<z.ZodString>;
566
+ nextLink: z.ZodOptional<z.ZodString>;
567
+ suggestedWorker: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ decision: "activate_next" | "feedback" | "close_chain";
570
+ reason: string;
571
+ feedback?: string | undefined;
572
+ nextLink?: string | undefined;
573
+ suggestedWorker?: string | null | undefined;
574
+ }, {
575
+ decision: "activate_next" | "feedback" | "close_chain";
576
+ reason: string;
577
+ feedback?: string | undefined;
578
+ nextLink?: string | undefined;
579
+ suggestedWorker?: string | null | undefined;
580
+ }>;
581
+ export type EvalDecision = z.infer<typeof EvalDecisionSchema>;
@@ -175,4 +175,29 @@ export const DismissMessageInput = z.object({
175
175
  instance_id: z.string(),
176
176
  message_id: z.string(),
177
177
  });
178
+ // ── Chain & Evaluation Schemas ──
179
+ export const ChainTaskDefSchema = z.object({
180
+ title: z.string(),
181
+ description: z.string(),
182
+ criteria: z.string(),
183
+ priority: z.number().int().min(0).max(2),
184
+ });
185
+ export const ChainDefSchema = z.object({
186
+ chain_id: z.string(),
187
+ chain_title: z.string(),
188
+ tasks: z.object({
189
+ plan: ChainTaskDefSchema.nullable(),
190
+ build: ChainTaskDefSchema,
191
+ verify: ChainTaskDefSchema,
192
+ review: ChainTaskDefSchema,
193
+ accept: ChainTaskDefSchema,
194
+ }),
195
+ });
196
+ export const EvalDecisionSchema = z.object({
197
+ decision: z.enum(["activate_next", "feedback", "close_chain"]),
198
+ reason: z.string(),
199
+ feedback: z.string().optional(),
200
+ nextLink: z.string().optional(),
201
+ suggestedWorker: z.string().nullable().optional(),
202
+ });
178
203
  //# sourceMappingURL=schemas.js.map
@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I,EAAE,kBAAkB,CAAC,QAAQ,EAAE;QACnC,KAAK,EAAE,kBAAkB;QACzB,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EAAE,kBAAkB;KAC3B,CAAC;CACH,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC"}
@@ -38,7 +38,7 @@ Leader (协调层)
38
38
  Multi-agent orchestration CLI backed by ZooKeeper。所有角色都使用它来完成基础设施操作:注册实例、认领任务、发送消息、读写共享上下文。
39
39
 
40
40
  - **入口**: `claude-orchestrator <command>`
41
- - **关键命令**: `register`, `claim-task`, `complete-task`, `push-task`, `send-message`, `set-context`, `get-context`
41
+ - **关键命令**: `register`, `claim-task`, `complete-task`, `push-task`, `send-message`
42
42
  - **适用角色**: 所有角色
43
43
 
44
44
  ### task-planning
@@ -22,51 +22,88 @@ Every CLI command talks directly to ZooKeeper. Instance discovery is via ephemer
22
22
  ## Setup
23
23
 
24
24
  ```bash
25
- pip install -e .
25
+ npm install -g @adamancyzhang/claude-orchestrator
26
26
  docker-compose up -d # start ZooKeeper
27
27
  ```
28
28
 
29
+ Initialize environment:
30
+
31
+ ```bash
32
+ # Leader (team coordinator):
33
+ claude-orchestrator setup --leader --name Tom
34
+
35
+ # Worker (the doers):
36
+ claude-orchestrator setup --name Jerry --role builder
37
+ ```
38
+
39
+ This creates:
40
+ - `.claude-orchestrator/agents/` — message templates (7 templates for leader + 5 worker links)
41
+ - `.claude/skills/` — 8 Claude Code skills (responsibility chain + infrastructure)
42
+ - `.claude-orchestrator/config.json` — project config (name, role)
43
+ - `~/.claude-orchestrator/config.json` — global config (ZK hosts, CLI command, cache dir)
44
+
29
45
  Verify:
30
46
 
31
47
  ```bash
32
- claude-orchestrator status
33
- # {"status": "healthy", "zookeeper": "connected", "instances_online": 0}
48
+ claude-orchestrator config
49
+ # Shows current configuration
34
50
  ```
35
51
 
36
52
  ## Global Options
37
53
 
38
54
  | Option | Env var | Default | Description |
39
55
  |--------|---------|---------|-------------|
40
- | `--zk-hosts` | `ZK_HOSTS` | `127.0.0.1:2181` | ZooKeeper connection string |
41
- | `--instance-id` | — | auto (from config) | Override stored instance ID |
56
+ | `--zookeeper`, `-z` | `ZK_HOSTS` | `127.0.0.1:2181` | ZooKeeper connection string |
57
+ | `--instance-id`, `-i` | — | auto (from config) | Override stored instance ID |
42
58
 
43
59
  ## Commands
44
60
 
61
+ ### Leader
62
+
63
+ ```bash
64
+ claude-orchestrator leader --name Tom
65
+ # Launches read-only TUI: team panel, task board, event log
66
+ ```
67
+
68
+ Only one Leader at a time (ZK ephemeral node). The TUI shows who's online, what tasks are in each state, and a scrolling event log.
69
+
45
70
  ### Registration
46
71
 
47
- **Register** this instance:
72
+ **Setup** one-time initialization:
48
73
 
49
74
  ```bash
50
- claude-orchestrator register --name Jerry-Dev --role developer
51
- # {"id": "a1b2c3d4...", "name": "Jerry-Dev", "role": "developer", "status": "idle", ...}
75
+ claude-orchestrator setup --leader --name Tom # Leader
76
+ claude-orchestrator setup --name Jerry --role builder # Worker
77
+ claude-orchestrator setup --name Lucy --role verifier \
78
+ --cache-dir ~/shared/sessions --command "claude -p" # Custom CLI
52
79
  ```
53
80
 
54
- The returned `id` is saved to `~/.claude-orchestrator/config.json`. Pass `--instance-id` on re-registration to reuse the same identity.
81
+ Setup options:
55
82
 
56
- **Heartbeat** keep registration alive, optionally declare current task:
83
+ | Option | Default | Description |
84
+ |--------|---------|-------------|
85
+ | `--leader` | false | Initialize as Leader environment |
86
+ | `--name <name>` | — | Instance display name |
87
+ | `--role <role>` | builder | Role: planner, builder, verifier, reviewer, accepter |
88
+ | `--cache-dir <path>` | `~/.claude-orchestrator/sessions` | Shared cache directory |
89
+ | `--command <cmd>` | `claude --dangerously-skip-permissions --permission-mode dontAsk` | Claude CLI command |
90
+ | `--global` | false | Write only global config, skip project files |
91
+
92
+ **Register** — join the swarm:
57
93
 
58
94
  ```bash
59
- claude-orchestrator heartbeat
60
- claude-orchestrator heartbeat --current-task "fix-login-bug"
95
+ # Connect and listen for messages (reads name/role from .claude-orchestrator/config.json):
96
+ claude-orchestrator register
97
+ # Worker Watcher starts, listens for messages, processes via claude -p
98
+ # Press Ctrl+C to stop and unregister
61
99
  ```
62
100
 
63
- ZK session timeout is 30s. Call heartbeat regularly (every 30-60s) while working.
101
+ Registration creates an ephemeral ZK node. The instance auto-deregisters on disconnect (Ctrl+C or timeout). The Worker Watcher listens for messages on `/messages/{instance_id}` and processes them using the template that matches the message's `link` field.
64
102
 
65
- **List instances:**
103
+ **Unregister:**
66
104
 
67
105
  ```bash
68
- claude-orchestrator list-instances
69
- # [{"id": "...", "name": "Jerry-Dev", "role": "developer", "status": "busy", ...}, ...]
106
+ claude-orchestrator unregister
70
107
  ```
71
108
 
72
109
  ### Tasks
@@ -74,33 +111,66 @@ claude-orchestrator list-instances
74
111
  **Push a task** to the queue:
75
112
 
76
113
  ```bash
77
- claude-orchestrator push-task --title "Fix login bug" --description "..." --priority 0
78
- claude-orchestrator push-task --title "Review PR #42" --assignee <instance-id>
114
+ claude-orchestrator push-task --title "Implement login endpoint" --priority 0
115
+ claude-orchestrator push-task --title "Verify auth module" --link verify --priority 1
116
+ claude-orchestrator push-task --title "Review PR #42" --link review --assignee <instance-id>
117
+ claude-orchestrator push-task --title "Part 2" --chain-id chain-001 --depends-on task-0000000001
79
118
  ```
80
119
 
81
- Priority: `0` = HIGH, `1` = MEDIUM (default), `2` = LOW.
120
+ Push options:
121
+
122
+ | Option | Default | Description |
123
+ |--------|---------|-------------|
124
+ | `--title <text>` | required | Task title |
125
+ | `--description <text>` | "" | Task description |
126
+ | `--priority <n>` | 1 | 0=HIGH, 1=MEDIUM, 2=LOW |
127
+ | `--assignee <id>` | — | Target instance ID |
128
+ | `--link <link>` | — | Responsibility chain link: plan, build, verify, review, accept |
129
+ | `--chain-id <id>` | — | Group related tasks under one chain |
130
+ | `--depends-on <ids>` | — | Comma-separated task IDs this task depends on |
131
+ | `--blocked-by <ids>` | — | Comma-separated task IDs blocking this task |
82
132
 
83
133
  **Claim a task** — FIFO, higher priority first, assigned-to-you tasks jump the queue:
84
134
 
85
135
  ```bash
86
136
  claude-orchestrator claim-task
87
- # {"id": "task-0000000001", "title": "Fix login bug", ...} ← claimed
88
- # {"status": "no_tasks", "message": "No pending tasks available."} ← empty queue
137
+ # { "id": "task-0000000001", "title": "Implement login endpoint", "status": "claimed", ... }
138
+ # { "status": "no_tasks", "message": "No pending tasks available." }
89
139
  ```
90
140
 
91
141
  **Complete a task:**
92
142
 
93
143
  ```bash
94
- claude-orchestrator complete-task --task-id task-0000000001 --result "Fixed auth middleware, added tests"
144
+ claude-orchestrator complete-task --task-id task-0000000001 --result "PR #42 login endpoint with tests"
95
145
  ```
96
146
 
97
- **List tasks:**
147
+ **Poll tasks:**
98
148
 
99
149
  ```bash
100
- claude-orchestrator list-tasks
101
- claude-orchestrator list-tasks --status pending
102
- claude-orchestrator list-tasks --status claimed
103
- claude-orchestrator list-tasks --status completed
150
+ claude-orchestrator poll-task
151
+ claude-orchestrator poll-task --status pending
152
+ claude-orchestrator poll-task --status claimed
153
+ claude-orchestrator poll-task --status completed
154
+ claude-orchestrator poll-task --status blocked
155
+ claude-orchestrator poll-task --status failed
156
+ ```
157
+
158
+ **Task lifecycle commands:**
159
+
160
+ ```bash
161
+ claude-orchestrator task-block --task-id task-0000000001 --reason "Waiting for API key"
162
+ claude-orchestrator task-fail --task-id task-0000000001 --reason "Test environment unavailable"
163
+ claude-orchestrator task-retry --task-id task-0000000001
164
+ # → Re-queued with retry_count + 1 (max 3 retries)
165
+ ```
166
+
167
+ Task state machine:
168
+
169
+ ```
170
+ pending → claimed → in_progress → completed
171
+ → blocked → pending (retry)
172
+ → failed → pending (retry, max 3)
173
+ claimed → pending (Worker disconnect, Leader recovers orphan)
104
174
  ```
105
175
 
106
176
  ### Messages
@@ -108,7 +178,7 @@ claude-orchestrator list-tasks --status completed
108
178
  **Send a direct message:**
109
179
 
110
180
  ```bash
111
- claude-orchestrator send-message --to <instance-id> --content "Can you review my PR?"
181
+ claude-orchestrator send-message --to-name Jerry --content "Can you review my PR?"
112
182
  ```
113
183
 
114
184
  **Broadcast to all:**
@@ -117,64 +187,58 @@ claude-orchestrator send-message --to <instance-id> --content "Can you review my
117
187
  claude-orchestrator send-message --broadcast --content "CI is down, don't push"
118
188
  ```
119
189
 
120
- **Poll messages:**
190
+ **Request help** (broadcasts to all with help flag):
121
191
 
122
192
  ```bash
123
- claude-orchestrator poll-messages
124
- # [{"id": "msg-...", "type": "direct", "from_name": "Lucy-Test", "content": "...", "read": true}]
193
+ claude-orchestrator send-message --request-help --broadcast --content "How do I test the auth flow?"
125
194
  ```
126
195
 
127
- **Request help** (broadcasts to all):
196
+ **Poll messages:**
128
197
 
129
198
  ```bash
130
- claude-orchestrator request-help --question "How do I test the auth flow?" --context "stack trace..."
199
+ claude-orchestrator poll-message
200
+ # [{ "id": "msg-...", "type": "direct", "from_name": "Tom", "content": "...", "read": true }]
131
201
  ```
132
202
 
133
- ### Shared Context
134
-
135
- **Set:**
203
+ **Delete a message:**
136
204
 
137
205
  ```bash
138
- claude-orchestrator set-context --key ci_status --value "failing: auth tests"
206
+ claude-orchestrator delete-message --message-id msg-0000000000
139
207
  ```
140
208
 
141
- **Get:**
209
+ ### Config
142
210
 
143
211
  ```bash
144
- claude-orchestrator get-context --key ci_status
145
- # {"key": "ci_status", "value": "failing: auth tests"}
212
+ claude-orchestrator config
213
+ # Shows global and project configuration
146
214
  ```
147
215
 
148
- ### Status
216
+ ## Roles
149
217
 
150
- ```bash
151
- claude-orchestrator status
152
- # {"status": "healthy", "zookeeper": "connected", "instances_online": 3}
153
- ```
218
+ | Role | Value | Typical behavior |
219
+ |------|-------|-----------------|
220
+ | Leader | `leader` | Runs TUI, monitors team, recovers orphaned tasks |
221
+ | Planner | `planner` | Uses `task-planning` + `task-traceability` skills |
222
+ | Builder | `builder` | Uses `task-execution` + `task-traceability` skills |
223
+ | Verifier | `verifier` | Uses `task-verification` + `task-traceability` skills |
224
+ | Reviewer | `reviewer` | Uses `task-review` + `task-traceability` skills |
225
+ | Accepter | `accepter` | Uses `task-acceptance` + `task-traceability` skills |
154
226
 
155
227
  ## Workflow
156
228
 
157
229
  A typical agent session:
158
230
 
159
231
  ```bash
160
- # 1. Join the team
161
- claude-orchestrator register --name Jerry-Dev --role developer
162
-
163
- # 2. Check who's online
164
- claude-orchestrator list-instances
232
+ # 1. Initialize (first time only)
233
+ claude-orchestrator setup --name Jerry --role builder
165
234
 
166
- # 3. Work loop
167
- while true; do
168
- claude-orchestrator poll-messages # check for messages
169
- task=$(claude-orchestrator claim-task) # grab work
170
- if [ "$task" = "no_tasks" ]; then break; fi
171
- # ... execute the task ...
172
- claude-orchestrator complete-task --task-id <id> --result "Done: ..."
173
- done
235
+ # 2. Join the team — Worker Watcher auto-processes incoming messages via claude -p
236
+ claude-orchestrator register
237
+ # Press Ctrl+C to stop and unregister
174
238
  ```
175
239
 
176
240
  ## Error recovery
177
241
 
178
242
  - **ZooKeeper not connected**: check `docker-compose ps`, retry. ZK client auto-reconnects.
179
- - **"No instance_id found"**: register first, or pass `--instance-id`
180
- - **Registration expired**: ephemeral nodes cleaned up on disconnect. Re-register with same `--instance-id` to restore identity.
243
+ - **"No instance_id found"**: run `setup` first, or check `.claude-orchestrator/config.json`
244
+ - **Registration expired**: ephemeral nodes cleaned up on disconnect. Re-register to restore identity.
@@ -1,4 +1,4 @@
1
- You are a task decomposition specialist. Your job is to break down a requirement into a chain of tasks following the Plan → Build → Verify → Review → Accept responsibility chain.
1
+ You are {{name}}, a task decomposition specialist. Your role is {{preset_role}}. Break down the requirement below into a chain of tasks following the Plan → Build → Verify → Review → Accept responsibility chain.
2
2
 
3
3
  ## Responsibility Chain
4
4
 
@@ -8,24 +8,20 @@ You are a task decomposition specialist. Your job is to break down a requirement
8
8
  4. **Review** — Quality gate. Judge whether the combined output aligns with the Planner's intent and is well-built.
9
9
  5. **Accept** — Final acceptance. Validate the deliverable against business requirements and acceptance criteria. Make the Go/No-Go decision.
10
10
 
11
- ## Current Team
12
-
13
- {{team_status}}
14
-
15
11
  ## Requirement
16
12
 
17
- {{content}}
13
+ {{task_description}}
18
14
 
19
15
  ## Instructions
20
16
 
21
17
  1. Analyze the requirement. Identify how many independent delivery chains are needed (usually one, but complex requirements may need multiple).
22
18
  2. For each chain, define five link tasks. Plan is optional — omit it (set to null) when the requirement is already clear enough to start building directly. Build, Verify, Review, and Accept are mandatory.
23
19
  3. For each task, specify clear completion criteria — what "done" means for that specific link.
24
- 4. Assign a priority to each task: 0 (urgent, blocks critical path), 1 (high), 2 (normal), 3 (low).
20
+ 4. Assign a priority to each task: 0 (urgent), 1 (high), 2 (normal).
25
21
 
26
22
  ## Output Format
27
23
 
28
- Output exactly one JSON object per chain with fixed five slots:
24
+ Output exactly one JSON object per chain. Write the result to {{result_path}}.
29
25
 
30
26
  ```json
31
27
  {
@@ -67,3 +63,5 @@ Output exactly one JSON object per chain with fixed five slots:
67
63
  ```
68
64
 
69
65
  If plan is not needed, set it to null. Output ONLY the JSON. No explanation.
66
+
67
+ After completing the decomposition, include the full JSON as your completion report so the Leader can mechanically create the tasks.