fix: yolo mode now skips confirmation gates in plan-phase

Restructured confirm_breakdown and decision_gate steps to check
mode FIRST with explicit skip instructions, preventing Claude from
reading through and executing the prompting path regardless of config.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2025-12-15 23:08:04 -06:00
parent 6fcd151b3d
commit 46d63991dd

View File

@@ -507,31 +507,27 @@ See ~/.claude/get-shit-done/references/scope-estimation.md for complete splittin
</step> </step>
<step name="confirm_breakdown"> <step name="confirm_breakdown">
**Check workflow config for gate behavior:** **FIRST: Check if confirmation gate is disabled**
```bash ```bash
cat .planning/config.json 2>/dev/null cat .planning/config.json 2>/dev/null
``` ```
Parse the config: **If `mode: "yolo"`** → Show summary below, then SKIP directly to write_phase_prompt step. Do NOT ask questions. Do NOT wait for confirmation.
- If `mode: "yolo"` → auto-approve
- If `mode: "interactive"` → prompt user
- If `mode: "custom"` → check `gates.confirm_breakdown`
**If auto-approved:**
``` ```
⚡ Auto-approved: Phase [X] breakdown ([N] tasks, [M] plan(s)) ⚡ Auto-approved: Phase [X] breakdown ([N] tasks, [M] plan(s))
[Show breakdown summary without prompting] [Brief breakdown summary - task names and types only]
Proceeding to plan creation... Proceeding to plan creation...
``` ```
**If prompting (interactive mode or custom with gate enabled):** ---
Present the breakdown inline: **Only if mode is "interactive" OR (mode is "custom" AND gates.confirm_breakdown is true), continue below:**
Present the breakdown inline and wait for confirmation:
**If single plan (2-3 tasks):** **If single plan (2-3 tasks):**
@@ -553,7 +549,7 @@ Does this breakdown look right? (yes / adjust / start over)
``` ```
Here's the proposed breakdown for Phase [X]: Here's the proposed breakdown for Phase [X]:
This phase requires 3 plans to maintain quality: This phase requires [N] plans to maintain quality:
### Plan 1: {phase}-01-PLAN.md - [Subsystem/Component Name] ### Plan 1: {phase}-01-PLAN.md - [Subsystem/Component Name]
1. [Task name] - [brief description] [type] 1. [Task name] - [brief description] [type]
@@ -564,9 +560,7 @@ This phase requires 3 plans to maintain quality:
1. [Task name] - [brief description] [type] 1. [Task name] - [brief description] [type]
2. [Task name] - [brief description] [type] 2. [Task name] - [brief description] [type]
### Plan 3: {phase}-03-PLAN.md - [Subsystem/Component Name] [Additional plans as needed...]
1. [Task name] - [brief description] [type]
2. [Task name] - [brief description] [type]
Each plan is independently executable and scoped to ~50% context. Each plan is independently executable and scoped to ~50% context.
@@ -595,25 +589,17 @@ Only ask if genuinely ambiguous. Don't ask obvious choices.
</step> </step>
<step name="decision_gate"> <step name="decision_gate">
After breakdown confirmed (or auto-approved): **FIRST: Check mode from config (already parsed in confirm_breakdown)**
**Check workflow config for gate behavior:** **If `mode: "yolo"`** → Output the message below, then SKIP directly to write_phase_prompt. Do NOT ask questions.
Read config from previous step (already parsed).
- If `mode: "yolo"` → auto-approve
- If `mode: "interactive"` → prompt user
- If `mode: "custom"` → check `gates.confirm_plan`
**If auto-approved:**
``` ```
⚡ Auto-approved: Create phase prompt for Phase [X] ⚡ Auto-approved: Create phase prompt for Phase [X]
``` ```
Proceed directly to write_phase_prompt. ---
**If prompting:** **Only if mode is "interactive" OR (mode is "custom" AND gates.confirm_plan is true), continue below:**
Use AskUserQuestion: Use AskUserQuestion: