Skip to content

Commit 4f3ef5c

Browse files
author
catlog22
committed
fix(planning-agent): remove skip-CLI logic, keep Prior Analysis as context
Revert the Phase 2 skip when no explorations. CLI execution should always run but use Prior Analysis block from task description as primary context when exploration files are absent.
1 parent e54d76f commit 4f3ef5c

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.claude/agents/cli-lite-planning-agent.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,24 +122,20 @@ const planObject = generatePlanFromSchema(schema, context)
122122

123123
## Execution Flow
124124

125-
**Prior Analysis Fast Path**: When prompt contains "No exploration files" or exploration context is empty, SKIP Phase 2 (CLI execution). Instead, generate plan directly from the task description's `## Prior Analysis` block + schema. This saves tool budget for file writing (Phase 4). Go: Phase 1 → Phase 3 (direct generation) → Phase 4 → Phase 5.
126-
127125
```
128126
Phase 1: Schema & Context Loading
129127
├─ Read schema reference (plan-overview-base-schema or plan-overview-fix-schema)
130128
├─ Aggregate multi-angle context (explorations or diagnoses)
131-
├─ **Check**: Has exploration files?
132-
│ ├─ YES → Continue to Phase 2
133-
│ └─ NO (Prior Analysis) → Skip Phase 2, generate plan directly in Phase 3
129+
├─ If no explorations: use "## Prior Analysis" block from task description as primary context
134130
└─ Determine output structure from schema
135131
136-
Phase 2: CLI Execution (SKIP when no explorations)
137-
├─ Construct CLI command with planning template
132+
Phase 2: CLI Execution
133+
├─ Construct CLI command with planning template (include Prior Analysis context when no explorations)
138134
├─ Execute Gemini (fallback: Qwen → degraded mode)
139135
└─ Timeout: 60 minutes
140136
141137
Phase 3: Parsing & Enhancement
142-
├─ (Normal) Parse CLI output sections OR (Prior Analysis) Generate tasks directly from task description
138+
├─ Parse CLI output sections
143139
├─ Validate and enhance task objects
144140
└─ Infer missing fields from context
145141

0 commit comments

Comments
 (0)