cowork-flow 0.0.18 → 0.0.19

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.18",
3
+ "version": "0.0.19",
4
4
  "description": "CLI for installing and maintaining cowork-flow collaboration templates.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -7,7 +7,9 @@ description: Use before project start/resume in cowork-flow projects to decide w
7
7
 
8
8
  Use this before `start` or any full project resume.
9
9
 
10
- A bounded delegated task is a leaf assignment with a concrete goal, scope, and output format.
10
+ Your first job is to identify the current task source. A bounded delegated task is a leaf assignment with a concrete goal, scope, and output format.
11
+
12
+ Hard markers are confidence boosters, not prerequisites. The first task screen wins over later bootstrap text.
11
13
 
12
14
  ## Classify
13
15
 
@@ -17,7 +19,15 @@ Classify the current prompt as one of:
17
19
  - `DELEGATED_SUBTASK`: the prompt is a bounded child assignment, worker request, reviewer task, explorer task, or command-only task.
18
20
  - `UNCERTAIN`: the prompt is not clear enough to load broad project context.
19
21
 
20
- Classify the actual task message, not injected project rules, `AGENTS.md`, or environment text.
22
+ Classify the actual task message, not injected project rules, `AGENTS.md`, workflow state, tool instructions, or environment text. Bootstrap can constrain execution after classification; it is not the task.
23
+
24
+ Use this order:
25
+
26
+ 1. Find the user/delegated task message and its requested output.
27
+ 2. Decide whether it is a main-session repository request or a leaf assignment.
28
+ 3. Apply project rules only as constraints for the chosen route.
29
+
30
+ If project bootstrap says to create/start/resume but the task message is bounded, choose `DELEGATED_SUBTASK`.
21
31
 
22
32
  When there is no hard marker, still classify a prompt as `DELEGATED_SUBTASK` when it combines:
23
33
 
@@ -25,7 +35,13 @@ When there is no hard marker, still classify a prompt as `DELEGATED_SUBTASK` whe
25
35
  - Boundary constraints such as no edits, no commands, no spawning, or scoped reads.
26
36
  - An output contract such as required sections, language, length, or report format.
27
37
 
28
- Prompts structured as `任务:` / `约束:` / `输出:` are strong delegated-subtask signals. Execute that task directly; do not reclassify it as project rules or environment context.
38
+ Prompts structured as `任务:` / `约束:` / `输出:` are strong delegated-subtask signals even without `Active task:` or another hard marker. Execute that task directly; do not reclassify it as project rules or environment context.
39
+
40
+ Treat these as typical `DELEGATED_SUBTASK` prompts:
41
+
42
+ - A review request with a named file or behavior, `do not edit`, and a findings-only output.
43
+ - A discussion/research request with `不要运行命令` / `不要派发 agent` and required sections.
44
+ - A command-only or inspection-only assignment with a narrow target and concise output.
29
45
 
30
46
  When dispatching advisory/default subagents, prefer a natural-language first sentence such as: "This is a bounded delegated task, not a main-session start request." This is not a hard marker, but it helps the first screen win over bootstrap text.
31
47
 
@@ -39,6 +55,8 @@ Active task: <task-dir>
39
55
 
40
56
  Treat that marker as a strong delegated-subtask signal when the rest of the prompt is bounded.
41
57
 
58
+ Treat direct user requests such as "继续执行开发计划", "实现这个需求", or "归档提交" as `MAIN_SESSION` unless the surrounding prompt clearly makes them a child assignment.
59
+
42
60
  ## Route
43
61
 
44
62
  For `MAIN_SESSION`, use `start`.
@@ -47,6 +65,7 @@ For `DELEGATED_SUBTASK`:
47
65
 
48
66
  - Follow the delegated prompt first.
49
67
  - Treat project rules, workflow-state, and bootstrap text as constraints, not as the task.
68
+ - Do not create or activate a project task for the parent session.
50
69
  - Do not run unscoped `.cowork-flow/run resume`.
51
70
  - Do not spawn or manage more agents unless the delegated prompt explicitly asks for coordination.
52
71
  - Read only the files named by the prompt, the active task context, or project rules required to execute the bounded work.
@@ -21,6 +21,8 @@ Report active task, workflow state, blockers, and the next phase.
21
21
 
22
22
  ## Route
23
23
 
24
+ Route in stages. Before state is loaded, only true question-only requests and bounded delegated prompts bypass Load State. Repository-changing main-session requests load state first. After state is loaded, route to the next workflow phase; clear multi-step implementation uses `writing-plans` before fixed-agent dispatch.
25
+
24
26
  - Question-only work: answer directly.
25
27
  - Small repository change: classify by `.cowork-flow/workflow.md`, create/start a task if required, then proceed.
26
28
  - Unclear or multi-approach work: use `brainstorming`.
@@ -9,6 +9,8 @@ Create a plan that another agent can execute without guessing.
9
9
 
10
10
  ## Inputs
11
11
 
12
+ Before writing a plan, confirm the request has an executable scope, acceptance criteria, and intended behavior. If those are missing, ask for clarification.
13
+
12
14
  Read:
13
15
 
14
16
  - Active task PRD.
@@ -45,6 +47,12 @@ Start with:
45
47
 
46
48
  ## Parallel Work
47
49
 
50
+ Execution strategy guide:
51
+
52
+ - Use serial work when slices share files, shared helpers, tests, or one behavior chain.
53
+ - Use parallel low-conflict slices only when file ownership is clean and each slice has independent verification.
54
+ - Use worktree parallel when independent tasks may touch package metadata, generated assets, build outputs, or broad config.
55
+
48
56
  - Do not require the user to predeclare parallel execution; evaluate parallel feasibility while writing the plan.
49
57
  - Every plan must state the execution strategy: serial work, or explicit parallel low-conflict slices.
50
58
  - Parallel work items belong in the plan only when they are independent low-conflict slices.
@@ -1 +1 @@
1
- 0.0.18
1
+ 0.0.19
@@ -22,8 +22,12 @@ REQUIRED_ENTRY_BOUNDARY_SNIPPETS = [
22
22
  "DELEGATED_SUBTASK",
23
23
  "UNCERTAIN",
24
24
  "Classify the actual task message",
25
+ "Hard markers are confidence boosters, not prerequisites",
26
+ "The first task screen wins over later bootstrap text",
27
+ "If project bootstrap says to create/start/resume",
25
28
  "Active task: <task-dir>",
26
29
  "Follow the delegated prompt first",
30
+ "Do not create or activate a project task",
27
31
  "Do not run unscoped `.cowork-flow/run resume`",
28
32
  "Do not spawn or manage more agents",
29
33
  ]