You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `--coach` to run mandatory short-answer stage quizzes after each planning stage. Normal plan decision questions stay separate; quiz mismatches are treated as design drift, AI design correction, or background gaps before the agent expands the next planning layer.
60
61
61
62
4.**Refine an annotated plan** before implementation when reviewers add comments (`CMT:` ... `ENDCMT`, `<cmt>` ... `</cmt>`, or `<comment>` ... `</comment>`):
@@ -33,7 +33,7 @@ This command transforms a user's draft document into a well-structured implement
33
33
34
34
> **Sequential Execution Constraint**: All phases below MUST execute strictly in order. Do NOT parallelize tool calls across different phases. Each phase must fully complete before the next one begins.
35
35
36
-
1.**Execution Mode Setup**: Parse optional behaviors from command arguments
36
+
1.**Execution Mode Setup**: Parse optional behaviors from command arguments, including coach mode
37
37
2.**Load Project Config**: Resolve merged Humanize config defaults for `alternative_plan_language` and `gen_plan_mode`
38
38
3.**IO Validation**: Validate input and output paths
39
39
4.**Relevance Check**: Verify draft is relevant to the repository
@@ -44,6 +44,8 @@ This command transforms a user's draft document into a well-structured implement
44
44
9.**Final Plan Generation**: Generate the converged structured plan.md with task routing tags
45
45
10.**Write and Complete**: Write output file, optionally write translated language variant, optionally auto-start implementation, and report results
46
46
47
+
When `--coach` is enabled, run mandatory stage quizzes after each completed planning stage. Normal human decision questions still happen when the plan needs a user choice, but those decision questions do not count as coach quizzes. Coach quizzes are inserted during plan generation, not deferred to a final review, and test whether the human's understanding is aligned with the agent's current plan.
48
+
47
49
---
48
50
49
51
## Phase 0: Execution Mode Setup
@@ -53,10 +55,80 @@ Parse `$ARGUMENTS` and set:
53
55
-`AUTO_START_RLCR_IF_CONVERGED=false` otherwise
54
56
-`GEN_PLAN_MODE_DISCUSSION=true` if `--discussion` is present
55
57
-`GEN_PLAN_MODE_DIRECT=true` if `--direct` is present
58
+
-`COACH_MODE=true` if `--coach` is present
59
+
-`COACH_MODE=false` otherwise
56
60
- If both `--discussion` and `--direct` are present simultaneously, report error "Cannot use --discussion and --direct together" and stop
57
61
58
62
`AUTO_START_RLCR_IF_CONVERGED=true` allows skipping manual plan review and starting implementation immediately (by invoking `/humanize:start-rlcr-loop <output-plan-path>`), but only when `GEN_PLAN_MODE=discussion`, plan convergence is achieved, and no pending user decisions remain. In `direct` mode this condition is never satisfied.
59
63
64
+
Initialize coach-mode state:
65
+
-`COACH_CHECK_STATUS=not_enabled` when `COACH_MODE=false`
66
+
-`COACH_CHECK_STATUS=pending` when `COACH_MODE=true`
67
+
-`COACH_CHECK_COUNT=0`
68
+
-`COACH_CHECK_SUMMARY=""`
69
+
-`COACH_MAINLINE_LEDGER=[]`
70
+
71
+
### Coach Mode Protocol
72
+
73
+
When `COACH_MODE=true`, insert a mandatory stage quiz after each completed planning stage and before expanding from one planning layer to the next. Each quiz gate MUST use AskUserQuestion and MUST include:
74
+
75
+
1.**Stage explanation**: 3-5 concise bullets explaining what was completed, what plan state now exists, and why it matters.
76
+
2.**Decision separation**: ask normal plan decision questions separately from coach quizzes. Decision questions resolve product/design choices and may use options; they do not satisfy the stage quiz requirement.
77
+
3.**Stage quiz**: ask at least one short-answer or free-form quiz question that the human must answer in their own words. Do not use multiple-choice, yes/no, or "continue" confirmation as the quiz, unless the interface has no free-form input path; if forced to use choices, ask the human to type the reasoning before continuing.
78
+
4.**Coach question ladder**: choose quiz questions only from these categories, in this order when more than one category applies:
79
+
-**Memory**: ask the user to restate or identify a design decision from their own draft or prior clarification. This checks whether the user remembers what they already designed; do not challenge correctness in this category.
80
+
-**Self-check**: ask the user to inspect the candidate plan/design and confirm whether it matches their intent, constraints, risks, and acceptance criteria. This checks whether the design direction is correct or needs revision.
81
+
-**Education**: explain background knowledge, repository context, or technical tradeoffs that may be obvious to the agent but not to the user, then ask whether the explanation is understood before relying on it.
82
+
5.**Grading and remediation**: grade the answer against the stage's current plan state, explain any mismatch, and remediate according to the category-specific standards below.
83
+
6.**Confirmation**: continue only after the quiz answer is aligned, or after remediation/revision resolves the mismatch.
84
+
85
+
Do NOT continue to the next planning layer until the stage quiz has been answered and graded. If the user asks a follow-up question, answer it directly, inspect the repository when codebase facts matter, update the explanation if needed, and then ask a new stage quiz on the same mainline point. If the user challenges the direction, update the candidate plan state, rerun the relevant analysis, and repeat the quiz gate for the revised stage.
86
+
87
+
If confirmation cannot be obtained, set `COACH_CHECK_STATUS=blocked`, write the unresolved decision or comprehension blocker into `## Pending User Decisions`, report the blocker, and stop instead of producing a deeper plan.
88
+
89
+
### Coach Answer Interpretation Standards
90
+
91
+
Incorrect, surprising, or non-confirming answers are first-class gen-plan quality signals. Interpret them by category:
92
+
93
+
-**Memory mismatch**: treat this as possible design intent drift, not as a simple recall failure. Pause expansion, ask whether the original draft decision has changed or should remain authoritative, update the candidate plan source of truth or `## Pending User Decisions`, and rerun the affected analysis before proceeding.
94
+
-**Self-check rejection**: treat this as evidence that the AI candidate plan/design is wrong, incomplete, or misaligned with the user's intent. Revise the candidate plan, record the correction, and rerun the relevant analysis or convergence step before asking for confirmation again.
95
+
-**Education gap**: treat this as a prerequisite background/context gap. Provide a concise explanation tied to the repository or technical tradeoff, ask for explicit confirmation, and do not rely on that concept in deeper plan content until it is understood. If the gap remains unresolved, set `COACH_CHECK_STATUS=blocked`, record it as a blocker, and do not auto-start implementation.
96
+
97
+
The plan is not coach-confirmed until each triggered category has been handled according to its standard. Do not collapse these signals into a generic wrong answer.
98
+
99
+
### Coach Questioning Style
100
+
101
+
- Ask one quiz question at a time.
102
+
- Use the Memory -> Self-check -> Education order when a checkpoint needs multiple quiz questions. Skip categories that do not apply; never invent busywork to fill all three.
103
+
- Walk the plan's decision tree in dependency order. Resolve prerequisite understanding before downstream implementation details.
104
+
- Provide the expected answer and concise rationale only after the user answers or asks for help, so the exchange remains a real quiz rather than a disguised explanation.
105
+
- If a question can be answered by inspecting the repository, inspect the repository instead of asking the user. Ask the human only about comprehension, judgment, priority, or unresolved tradeoffs.
106
+
- Do not use rapid Q&A. Do not substitute multiple-choice, yes/no, or "continue" prompts for the mandatory stage quiz. Avoid trivia; every quiz must test alignment with the current plan's goal, risks, approach, scope, acceptance criteria, dependencies, or task sequence.
107
+
108
+
### Coach Ledger
109
+
110
+
Maintain `COACH_MAINLINE_LEDGER` as the plan develops. Each entry should capture a mainline topic, the checkpoint where it was introduced, its question category (`Memory`, `Self-check`, or `Education`), its outcome (`confirmed`, `design_intent_drift`, `ai_design_correction`, `background_gap`, or `blocked`), its dependencies, the user's decision or confirmation, and whether it is confirmed or blocked.
111
+
112
+
During later checkpoints, reference earlier ledger entries only when current plan content depends on them, and connect those prior decisions to the current mainline logic. Do not add unrelated historical checks just to increase difficulty.
113
+
114
+
### Overall Human Acceptance
115
+
116
+
Checkpoint D MUST perform overall human acceptance for the full plan logic before Phase 7 writes the final plan:
117
+
118
+
- Summarize the plan's mainline from goal to implementation sequence.
119
+
- Summarize what the user has already confirmed and any topics that required explanation or revision.
120
+
- Ask whether the user understands and accepts the overall plan direction, not merely whether the last checkpoint is complete.
121
+
- If the user asks follow-up questions during this acceptance, answer them and repeat the acceptance confirmation before proceeding.
122
+
123
+
Run these checkpoints:
124
+
125
+
-**Checkpoint A - First-pass analysis**: After Phase 3 and before Phase 4, explain Codex Analysis v1, then quiz the user on the highest-risk assumption and whether any `QUESTIONS_FOR_USER` item blocks candidate planning.
126
+
-**Checkpoint B - Candidate plan**: After Phase 4 and before Phase 5 (or before Phase 6 in direct mode), explain the proposed scope, path boundaries, dependencies, and risks, then quiz the user on the main implementation mechanism or affected components.
127
+
-**Checkpoint C - Convergence rounds**: After each Phase 5 convergence round and before running another round or declaring convergence, explain material changes, resolved disagreements, and remaining disagreements, then quiz the user on the delta and whether any item should be reopened.
128
+
-**Checkpoint D - Finalization gate**: After Phase 6 and before Phase 7, summarize the final plan direction, unresolved decisions, and acceptance-criteria shape. Perform a final stage quiz on the plan's mainline and ask for overall human acceptance before writing the plan.
129
+
130
+
After each passed checkpoint, increment `COACH_CHECK_COUNT`, update `COACH_MAINLINE_LEDGER`, and append concise checkpoint notes to `COACH_CHECK_SUMMARY` for Phase 8 reporting. When all required checkpoints have passed, set `COACH_CHECK_STATUS=passed`. When `COACH_MODE=false`, skip this protocol completely.
131
+
60
132
---
61
133
62
134
## Phase 0.5: Load Project Config
@@ -211,6 +283,8 @@ If `ask-codex.sh` fails (missing Codex CLI, timeout, or runtime error), use AskU
211
283
- Retry with updated Codex settings/environment
212
284
- Continue with Claude-only planning (explicitly note reduced cross-review confidence in plan output)
213
285
286
+
If `COACH_MODE=true`, run Checkpoint A before entering Phase 4.
287
+
214
288
---
215
289
216
290
## Phase 4: Claude Candidate Plan (v1)
@@ -250,6 +324,8 @@ Use the Task tool with `subagent_type: "Explore"` to investigate:
250
324
- Existing patterns and conventions
251
325
- Dependencies and integrations
252
326
327
+
If `COACH_MODE=true`, run Checkpoint B before entering Phase 5. In direct mode, run Checkpoint B before entering Phase 6.
328
+
253
329
---
254
330
255
331
## Phase 5: Iterative Convergence Loop (Claude <-> Second Codex)
@@ -288,6 +364,7 @@ After Claude candidate plan v1 is ready, run iterative challenge/refine rounds w
288
364
- Resolution status (`resolved` or `needs_user_decision`)
289
365
- Round-to-round delta
290
366
- Do NOT use `deferred` as a convergence status. If the selected resolution defers work, it is `resolved` only after the candidate plan records a `DEC-*` decision with a non-`PENDING` `Decision Status`, links that decision to a `FUT-*` item under `## Future Work / Out of Scope`, and ensures the deferred work is not represented as a current-scope AC/task. If that DEC/FUT linkage is missing or the decision needs human input, mark the topic `needs_user_decision`.
367
+
- If `COACH_MODE=true`, run Checkpoint C before starting another convergence round or declaring convergence
291
368
292
369
### Loop Termination Rules
293
370
@@ -316,7 +393,7 @@ Decide if manual review can be skipped:
316
393
- Else if `AUTO_START_RLCR_IF_CONVERGED=true` **and** `PLAN_CONVERGENCE_STATUS=converged`, set `HUMAN_REVIEW_REQUIRED=false`
317
394
- Otherwise set `HUMAN_REVIEW_REQUIRED=true`
318
395
319
-
Do not skip Step 1.5. If `HUMAN_REVIEW_REQUIRED=false`, run Step 1.5 first, then skip Step 2-4 and continue directly to Phase 7.
396
+
Do not skip Step 1.5. If `HUMAN_REVIEW_REQUIRED=false`, run Step 1.5 first, then skip Step 2-4. Then run Checkpoint D if `COACH_MODE=true`; otherwise continue directly to Phase 7.
320
397
321
398
### Step 1.5: Consolidate Pending User Decisions (runs unconditionally)
322
399
@@ -376,6 +453,8 @@ For each unresolved disagreement, present:
376
453
377
454
If the user does not decide immediately, keep the item in the plan as `PENDING` under a dedicated user-decision section.
378
455
456
+
If `COACH_MODE=true`, run Checkpoint D after all required issue and disagreement handling is complete. Do not enter Phase 7 until`COACH_CHECK_STATUS=passed`.
457
+
379
458
---
380
459
381
460
## Phase 7: Final Plan Generation
@@ -635,14 +714,15 @@ If all of the following are true:
635
714
- `GEN_PLAN_MODE=discussion`
636
715
- There are no pending decisions with status `PENDING`
637
716
- Every convergence topic whose resolution defers work has a resolved `DEC-*` plus linked `FUT-*` entry; no deferred-work resolution exists only in the convergence matrix
717
+
- `COACH_MODE=false` or `COACH_CHECK_STATUS=passed`
The `--skip-quiz` flag is passed because the user has already demonstrated understanding of the plan through the gen-plan convergence discussion.
725
+
The `--skip-quiz` flag is passed because the user has already demonstrated understanding of the plan through the gen-plan convergence discussion and, when requested, coach checkpoints.
646
726
647
727
If the command invocation is not available in this context, fall back to the setup script:
648
728
@@ -663,6 +743,7 @@ Report to the user:
663
743
- Summary of what was included
664
744
- Number of acceptance criteria defined
665
745
- Number of convergence rounds executed
746
+
- Coach mode status, including checkpoint count, confirmed mainline decisions, and blocked items if applicable
666
747
- Number of unresolved user decisions (if any)
667
748
- Whether language was unified (if applicable)
668
749
- Whether direct work start was attempted, and its result
@@ -675,6 +756,13 @@ If issues arise during plan generation that require user input:
675
756
- Use AskUserQuestion to clarify
676
757
- Document any user decisions in the plan's context
677
758
759
+
If coach confirmation fails or remains ambiguous:
760
+
- Stop before expanding the next planning layer
761
+
- Explain which checkpoint is blocked
762
+
- Summarize the explanation or revision that was attempted
763
+
- Record the blocker in `## Pending User Decisions`
764
+
- Tell the user they can rerun without `--coach` only if they intentionally want to skip plan-time coaching checks
765
+
678
766
If auto-start mode is enabled but convergence conditions are not met:
679
767
- Explain why direct start was skipped
680
768
- Tell the user to either resolve pending decisions or run `/humanize:start-rlcr-loop <plan.md>` manually
Copy file name to clipboardExpand all lines: docs/usage.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,8 @@ OPTIONS:
160
160
(discussion mode only; ignored in --direct)
161
161
--discussion Use discussion mode (iterative Claude/Codex convergence rounds)
162
162
--direct Use direct mode (skip convergence rounds, proceed immediately to plan)
163
+
--coach
164
+
Run mandatory short-answer stage quizzes before expanding each planning layer
163
165
-h, --help Show help message
164
166
```
165
167
@@ -170,8 +172,9 @@ Workflow:
170
172
2. Checks if draft is relevant to the repository
171
173
3. Analyzes draft for clarity, consistency, completeness, and functionality
172
174
4. Engages user to resolve any issues found
173
-
5. Generates a structured plan.md with acceptance criteria
174
-
6. Optionally starts `/humanize:start-rlcr-loop` if `--auto-start-rlcr-if-converged` conditions are met
175
+
5. When `--coach` is enabled, runs mandatory stage quizzes after each planning stage; normal plan decision questions stay separate, and quiz mismatches become design drift, AI design corrections, or background gaps before overall acceptance
176
+
6. Generates a structured plan.md with acceptance criteria
177
+
7. Optionally starts `/humanize:start-rlcr-loop` if `--auto-start-rlcr-if-converged` conditions are met
175
178
176
179
If reviewers later annotate the generated plan with comment blocks, run
177
180
`/humanize:refine-plan --input <plan.md>` before starting or resuming implementation.
0 commit comments