@@ -95,6 +95,87 @@ For each task:
9595
9696Wait for the builder to confirm completion before proceeding to the next task.
9797
98+ ## Plan Parsing
99+
100+ The planner returns tasks in a structured markdown format. Parse them reliably using these rules.
101+
102+ ### Expected Format
103+
104+ Each task follows this structure:
105+
106+ ``` markdown
107+ ### Task N: [ Title]
108+
109+ ** Priority:** P0-P3
110+ ** Complexity:** Low/Medium/High
111+ ** Description:** What needs to be done and why
112+ ** Files:** Comma-separated list of files
113+ ** Done when:** Acceptance criteria
114+ ```
115+
116+ ### Extraction Rules
117+
118+ 1 . ** Find tasks** - Look for headings matching ` ### Task \d+: (.+) `
119+ 2 . ** Extract number and title** - From the heading itself
120+ 3 . ** Extract full block** - Everything from the heading until the next ` ### Task ` or end of plan
121+ 4 . ** Preserve order** - Execute tasks in numbered order (Task 1, Task 2, etc.)
122+
123+ ### Example
124+
125+ ** Planner output:**
126+
127+ ``` markdown
128+ ## Development Plan
129+
130+ ### Task 1: Add input validation
131+
132+ ** Priority:** P1
133+ ** Complexity:** Medium
134+ ** Description:** API endpoints accept invalid data. Add zod schemas.
135+ ** Files:** src/api/users.ts, src/schemas/user.ts
136+ ** Done when:** Invalid requests return 400 with error details
137+
138+ ### Task 2: Fix null pointer bug
139+
140+ ** Priority:** P0
141+ ** Complexity:** Low
142+ ** Description:** User service crashes when email is missing.
143+ ** Files:** src/services/user.ts
144+ ** Done when:** Missing email handled gracefully
145+ ```
146+
147+ ** Extracted for builder invocation:**
148+
149+ ```
150+ Task 1: "Add input validation"
151+ → @opencoder-builder Execute this task: Add input validation
152+
153+ API endpoints accept invalid data. Add zod schemas.
154+ Files: src/api/users.ts, src/schemas/user.ts
155+ Done when: Invalid requests return 400 with error details
156+
157+ Task 2: "Fix null pointer bug"
158+ → @opencoder-builder Execute this task: Fix null pointer bug
159+
160+ User service crashes when email is missing.
161+ Files: src/services/user.ts
162+ Done when: Missing email handled gracefully
163+ ```
164+
165+ ### Passing to Builder
166+
167+ Include the task title and all context fields:
168+
169+ ```
170+ @opencoder-builder Execute this task: [Title]
171+
172+ [Description]
173+ Files: [Files]
174+ Done when: [Done when]
175+ ```
176+
177+ The builder needs the description, files, and acceptance criteria to complete the task correctly.
178+
98179## Git Operations
99180
100181### After Each Task Completes
0 commit comments