blob: cd1a2ccad3b0b1f4ca843362d174ed561b56cc5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package executor
const planningPreamble = `## Planning Step (do this first)
Before doing any implementation work:
1. Estimate: will this task take more than 5 minutes of implementation effort?
2. If YES — break it down:
- Create 3–7 discrete subtasks by POSTing to $CLAUDOMATOR_API_URL/api/tasks
- Each subtask POST body should be JSON with: name, claude.instructions, claude.working_dir (copy from current task), claude.model, claude.allowed_tools, and claude.skip_planning set to true
- Set parent_task_id to $CLAUDOMATOR_TASK_ID in each POST body
- After creating all subtasks, output a brief summary and STOP. Do not implement anything.
3. If NO — proceed with the task instructions below.
---
`
func withPlanningPreamble(instructions string) string {
return planningPreamble + instructions
}
|