Skip to content

Commit e3b8add

Browse files
committed
feat(workflow): add plan file persistence and todo tracking
- implement plan file creation and step data appending - add TodoWrite integration for step progress tracking - update workflow mode selection with detailed explanations - add xml templates for each step's data storage
1 parent b81975a commit e3b8add

10 files changed

+874
-80
lines changed

prompts/templates/ali/chained/step-01-mode-selection.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,43 @@ Briefly outline what's coming:
130130

131131
Ready to start building!"
132132

133+
## Step 1 Data to Store
134+
135+
**Note:** Cannot write to plan file yet (no workflow_name). Store this XML in memory for Step 2 to write.
136+
137+
**XML Template for Step 1:**
138+
139+
```xml
140+
<step-01 completed="true" timestamp="{ISO timestamp}">
141+
<mode>{quick|expert}</mode>
142+
<brainstorming enabled="{true|false}">
143+
<problem>{user's problem description or empty}</problem>
144+
<agent-ideas>{brainstorming insights or empty}</agent-ideas>
145+
<flow-concept>{flow concept or empty}</flow-concept>
146+
</brainstorming>
147+
</step-01>
148+
```
149+
150+
**On User Confirmation:**
151+
152+
1. Store the XML data in memory (will be written in Step 2)
153+
2. Use TodoWrite to mark Step 01 completed and Step 02 in_progress:
154+
155+
```javascript
156+
TodoWrite([
157+
{ content: "Step 01: Mode Selection", status: "completed", activeForm: "Mode selection completed" },
158+
{ content: "Step 02: Workflow Definition", status: "in_progress", activeForm: "Defining workflow" },
159+
{ content: "Step 03: Main Agents", status: "pending", activeForm: "Defining main agents" },
160+
{ content: "Step 04: Prompts & Placeholders", status: "pending", activeForm: "Creating prompts" },
161+
{ content: "Step 05: Controller Agent", status: "pending", activeForm: "Creating controller" },
162+
{ content: "Step 06: Sub-Agents", status: "pending", activeForm: "Configuring sub-agents" },
163+
{ content: "Step 07: Modules", status: "pending", activeForm: "Configuring modules" },
164+
{ content: "Step 08: Assembly & Validation", status: "pending", activeForm: "Assembling workflow" }
165+
])
166+
```
167+
168+
3. Tell user: "✓ Mode and brainstorming choices recorded. Press **Enter** to proceed."
169+
133170
{ali_step_completion}
134171

135172
## SUCCESS METRICS
@@ -138,6 +175,7 @@ Ready to start building!"
138175
- User has decided on brainstorming (yes/no)
139176
- If brainstorming: insights captured for use in subsequent steps
140177
- Mode and brainstorming choice stored
178+
- TodoWrite updated with step progress
141179
- User understands the 8-step journey ahead
142180

143181
## FAILURE METRICS
@@ -147,3 +185,4 @@ Ready to start building!"
147185
- Not capturing brainstorming insights when generated
148186
- Pressuring user into brainstorming
149187
- Using file read/search tools (forbidden in step 1)
188+
- Not updating TodoWrite on completion

0 commit comments

Comments
 (0)