claude-cook 1.11.3 → 1.11.5
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/agents/cook-pm.md +3 -1
- package/commands/cook/pm-start.md +14 -8
- package/package.json +1 -1
package/agents/cook-pm.md
CHANGED
|
@@ -109,7 +109,9 @@ When running under `/cook:pm-start` and `pm-loop.sh`, you MUST avoid asking the
|
|
|
109
109
|
|
|
110
110
|
## PM Loop Launch is MANDATORY
|
|
111
111
|
|
|
112
|
-
When spawned by `/cook:pm-start`, you MUST launch `pm-loop.sh
|
|
112
|
+
When spawned by `/cook:pm-start`, you MUST launch `pm-loop.sh` as a **regular foreground Bash command** after executing the first cycle. The only exception is when `--manual` flag is explicitly set. Without the loop, the PM does one cycle and stops — defeating the purpose of autonomous operation.
|
|
113
|
+
|
|
114
|
+
**IMPORTANT:** Use the Bash tool as a regular foreground command (do NOT set `run_in_background`). This streams live output directly in the conversation area so the user sees progress bars, status updates, and poll results in real-time. Do NOT use `--background` flag, `nohup`, `setsid`, `disown`, or `&`. Do NOT set `timeout` on the Bash tool — the loop runs indefinitely until milestone complete or `.pm-stop`. The user can press Ctrl+B to push the loop to background and interact with Claude.
|
|
113
115
|
|
|
114
116
|
</philosophy>
|
|
115
117
|
|
|
@@ -142,38 +142,44 @@ Follow the action for the detected state as defined in `pm-cycle.md`:
|
|
|
142
142
|
|
|
143
143
|
**You MUST launch pm-loop.sh unless `--manual` flag is explicitly set.** This is not optional. The loop is what makes the PM autonomous — without it, the PM does one cycle and stops.
|
|
144
144
|
|
|
145
|
-
**If `--manual` is NOT set**,
|
|
145
|
+
**If `--manual` is NOT set**, launch pm-loop.sh as a **foreground Bash command** immediately after the first cycle completes:
|
|
146
146
|
|
|
147
147
|
```bash
|
|
148
148
|
~/.claude/scripts/pm-loop.sh \
|
|
149
149
|
--phase={X} \
|
|
150
150
|
--interval={poll_interval} \
|
|
151
151
|
--max-iterations={max_iterations} \
|
|
152
|
-
--background \
|
|
153
152
|
${init_flag} \
|
|
154
153
|
${prd_flag}
|
|
155
154
|
```
|
|
156
155
|
|
|
157
|
-
**IMPORTANT:**
|
|
156
|
+
**IMPORTANT:**
|
|
157
|
+
|
|
158
|
+
- Use the Bash tool as a **regular foreground command** (do NOT set `run_in_background`). This streams live output directly in the conversation area so the user sees progress bars, status updates, and poll results in real-time.
|
|
159
|
+
- Do NOT use `--background` flag, `nohup`, `setsid`, `disown`, or `&`.
|
|
160
|
+
- Do NOT set `timeout` on the Bash tool — the loop runs indefinitely until milestone complete or `.pm-stop`.
|
|
161
|
+
- The user can press **Ctrl+B** at any time to push the loop to background and interact with Claude. They can check on it later via `/bashes` or by asking Claude to check the output.
|
|
158
162
|
|
|
159
163
|
Where:
|
|
160
164
|
- `${init_flag}` is `--init` if the `--init` flag was provided
|
|
161
165
|
- `${prd_flag}` is `--prd=<file>` if provided
|
|
162
166
|
- Phase is auto-detected or from arguments
|
|
163
167
|
|
|
164
|
-
|
|
168
|
+
Before launching, present to user:
|
|
165
169
|
```
|
|
166
170
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
167
|
-
PM ► LOOP
|
|
171
|
+
PM ► LAUNCHING LOOP
|
|
168
172
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
169
173
|
|
|
170
|
-
PM loop
|
|
171
|
-
Polling every {interval}s
|
|
174
|
+
PM loop starting. Live output will stream below.
|
|
175
|
+
Polling every {interval}s.
|
|
172
176
|
|
|
177
|
+
Press Ctrl+B to push to background and interact.
|
|
173
178
|
Stop with: /cook:pm-stop
|
|
174
|
-
Status: /cook:pm-status
|
|
175
179
|
```
|
|
176
180
|
|
|
181
|
+
Then immediately invoke the Bash tool with the pm-loop.sh command.
|
|
182
|
+
|
|
177
183
|
Stop with: `touch .planning/.pm-stop` | `/cook:pm-stop`
|
|
178
184
|
|
|
179
185
|
**If `--manual` IS set**, do NOT launch the loop. Present:
|
package/package.json
CHANGED