Commit 6d9b811
feat: make Agent Teams the primary execution model for /construct
Restructure the construct skill so that Agent Teams (parallel teammate
spawning, monitor/react loop, per-unit hat tracking) is the primary
execution path when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS is set.
The previous sequential subagent approach is preserved as a fallback.
- construct: Add team create/reconnect, parallel unit spawn, monitor
loop, team shutdown, and unitStates/teamName schema in iteration.json
- advance: Add Step 2c to spawn newly unblocked units as teammates
- fail: Add Step 4b with retry tracking (max 3) and teammate re-spawn
- reset: Add Step 1b for team cleanup (shutdown + TeamDelete)
- resume: Add Step 5b for team reconnection on resume
- enforce-iteration: Add teammate guard so unit sessions exit early
- subagent-context: Add Team Communication instructions for teammates
- inject-context: Add Agent Teams status display in session context
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c6a0326 commit 6d9b811
File tree
8 files changed
+401
-33
lines changed- hooks
- skills
- advance
- construct
- fail
- reset
- resume
8 files changed
+401
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
442 | 455 | | |
443 | 456 | | |
444 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
104 | 126 | | |
105 | 127 | | |
106 | 128 | | |
| |||
0 commit comments