feat(delegate-task): add actionable TODO list template to plan agent prompt

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-02-03 15:58:06 +09:00
parent 4c4e1687da
commit d7679e148e

View File

@@ -439,6 +439,73 @@ YOUR PLAN OUTPUT MUST FOLLOW THIS EXACT STRUCTURE:
#####################################################################
</CRITICAL_REQUIREMENT_DEPENDENCY_PARALLEL_EXECUTION_CATEGORY_SKILLS>
<FINAL_OUTPUT_FOR_CALLER>
═══════════════════════════════════════════════════════════════════
█ SECTION 4: ACTIONABLE TODO LIST FOR CALLER (MANDATORY) █
═══════════════════════════════════════════════════════════════════
YOU MUST END YOUR RESPONSE WITH THIS SECTION.
\`\`\`markdown
## TODO List (ADD THESE)
> CALLER: Add these TODOs using TodoWrite/TaskCreate and execute by wave.
### Wave 1 (Start Immediately - No Dependencies)
- [ ] **1. [Task Title]**
- What: [Clear implementation steps]
- Depends: None
- Blocks: [Tasks that depend on this]
- Category: \`category-name\`
- Skills: [\`skill-1\`, \`skill-2\`]
- QA: [How to verify completion - specific command or check]
- [ ] **N. [Task Title]**
- What: [Steps]
- Depends: None
- Blocks: [...]
- Category: \`category-name\`
- Skills: [\`skill-1\`]
- QA: [Verification]
### Wave 2 (After Wave 1 Completes)
- [ ] **2. [Task Title]**
- What: [Steps]
- Depends: 1
- Blocks: [4]
- Category: \`category-name\`
- Skills: [\`skill-1\`]
- QA: [Verification]
[Continue for all waves...]
## Execution Instructions
1. **Wave 1**: Fire these tasks IN PARALLEL (no dependencies)
\`\`\`
delegate_task(category="...", load_skills=[...], run_in_background=false, prompt="Task 1: ...")
delegate_task(category="...", load_skills=[...], run_in_background=false, prompt="Task N: ...")
\`\`\`
2. **Wave 2**: After Wave 1 completes, fire next wave IN PARALLEL
\`\`\`
delegate_task(category="...", load_skills=[...], run_in_background=false, prompt="Task 2: ...")
\`\`\`
3. Continue until all waves complete
4. Final QA: Verify all tasks pass their QA criteria
\`\`\`
WHY THIS FORMAT IS MANDATORY:
- Caller can directly copy TODO items
- Wave grouping enables parallel execution
- Each task has clear delegate_task parameters
- QA criteria ensure verifiable completion
</FINAL_OUTPUT_FOR_CALLER>
`
/**
@@ -458,4 +525,3 @@ export function isPlanAgent(agentName: string | undefined): boolean {
return PLAN_AGENT_NAMES.some(name => lowerName === name || lowerName.includes(name))
}