cowork-flow 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cowork-flow",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "CLI for installing and maintaining cowork-flow collaboration templates.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,15 +12,18 @@ Use this skill after a task is active and an approved `.cowork-flow/plans/*.md`
12
12
  1. Run `./.cowork-flow/run agent-team prepare <task-dir> --plan <plan-file>`.
13
13
  2. Review `agent-team/dispatch-plan.yaml` for unsafe parallelism, file conflicts, missing context, or weak agent matches.
14
14
  3. Run `./.cowork-flow/run agent-team next <task-dir>` to get ready assignments.
15
- 4. In Codex, dispatch the ready assignments to the recommended agent types. Tell each worker it is not alone in the codebase, must respect the write boundary, must not revert others' edits, and must list changed files.
16
- 5. While workers run, coordinate: answer questions, unblock context gaps, and integrate non-conflicting results.
17
- 6. Record outputs with `record-result` and reviews with `record-review`.
18
- 7. Use `retry` only after adding missing context, changing agent choice, or splitting an oversized assignment.
19
- 8. Run `complete` before claiming the agent team work is done.
15
+ 4. In Codex with `[features] multi_agent = true`, dispatch each ready assignment with `spawn_agent` using the generated `agent-team/assignments/<assignment-id>.md` prompt content. Dispatch multiple ready assignments in parallel only after confirming their write files do not overlap.
16
+ 5. Collect each spawned worker result with `wait_agent`, then call `close_agent` to free the worker slot. Tell each worker it is not alone in the codebase, must respect the write boundary, must not revert others' edits, and must list changed files.
17
+ 6. Only fall back to manual prompt execution when the current host does not expose `spawn_agent`, `wait_agent`, or `close_agent`. Do not use manual execution merely because the assignment is stored as Markdown.
18
+ 7. While workers run, coordinate: answer questions, unblock context gaps, and integrate non-conflicting results.
19
+ 8. Record outputs with `record-result` and reviews with `record-review`.
20
+ 9. Use `retry` only after adding missing context, changing agent choice, or splitting an oversized assignment.
21
+ 10. Run `complete` before claiming the agent team work is done.
20
22
 
21
23
  ## Rules
22
24
 
23
25
  - The script suggests; the main agent decides.
24
26
  - Do not parallelize assignments with overlapping write files.
25
27
  - Do not skip spec review or quality review.
28
+ - In Codex, `agent-team` is coordinator-dispatched: the Python script generates assignments, and the main agent performs the real `spawn_agent` / `wait_agent` / `close_agent` calls.
26
29
  - Do not rely on chat history for state; write results through `agent-team` commands.
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -13,10 +13,6 @@ agents:
13
13
  - code
14
14
  - test
15
15
  file_patterns:
16
- - "src/**"
17
- - "template/**"
18
- - "tests/**"
19
- - "test/**"
20
16
  risk_limits:
21
17
  max_parallel_write_conflicts: 0
22
18
  prompt: |
@@ -32,10 +28,6 @@ agents:
32
28
  - test
33
29
  - verification
34
30
  file_patterns:
35
- - "tests/**"
36
- - "test/**"
37
- - "src/**"
38
- - "template/**"
39
31
  risk_limits:
40
32
  max_parallel_write_conflicts: 0
41
33
  prompt: |
@@ -52,10 +44,6 @@ agents:
52
44
  - bugfix
53
45
  - code
54
46
  file_patterns:
55
- - "src/**"
56
- - "template/**"
57
- - "tests/**"
58
- - "test/**"
59
47
  risk_limits:
60
48
  max_parallel_write_conflicts: 0
61
49
  prompt: |
@@ -71,10 +59,6 @@ agents:
71
59
  - review
72
60
  - documentation
73
61
  file_patterns:
74
- - ".cowork-flow/changes/**"
75
- - ".cowork-flow/plans/**"
76
- - "README.md"
77
- - "template/**"
78
62
  risk_limits:
79
63
  max_parallel_write_conflicts: 0
80
64
  prompt: |
@@ -91,10 +75,6 @@ agents:
91
75
  - review
92
76
  - verification
93
77
  file_patterns:
94
- - "src/**"
95
- - "template/**"
96
- - "tests/**"
97
- - "test/**"
98
78
  risk_limits:
99
79
  max_parallel_write_conflicts: 0
100
80
  prompt: |
@@ -110,10 +90,6 @@ agents:
110
90
  - docs
111
91
  - documentation
112
92
  file_patterns:
113
- - "README.md"
114
- - "AGENTS.md"
115
- - ".cowork-flow/**/*.md"
116
- - ".agent/skills/**"
117
93
  risk_limits:
118
94
  max_parallel_write_conflicts: 0
119
95
  prompt: |
@@ -130,11 +106,6 @@ agents:
130
106
  - release
131
107
  - review
132
108
  file_patterns:
133
- - "package.json"
134
- - "package-lock.json"
135
- - "scripts/**"
136
- - "README.md"
137
- - ".cowork-flow/changes/**"
138
109
  risk_limits:
139
110
  max_parallel_write_conflicts: 0
140
111
  prompt: |
@@ -7,7 +7,7 @@ import re
7
7
  from pathlib import Path
8
8
 
9
9
 
10
- TASK_RE = re.compile(r"^### Task\s+(\d+):\s*(.+?)\s*$")
10
+ TASK_RE = re.compile(r"^#{2,3} Task\s+(\d+):\s*(.+?)\s*$")
11
11
  FILE_RE = re.compile(r"^-\s+(Create|Modify|Test):\s+`([^`]+)`")
12
12
  DEP_RE = re.compile(r"depends on Task\s+(\d+)", re.IGNORECASE)
13
13