Skip to content
Back to full roadmap
topiccore

Task Decomposition

Break a big goal into atomic subtasks — agent can solve each independently.

3 hours1 prereqs

Goal: "Analyze this contract" → subtasks: (1) Extract text, (2) Identify parties, (3) Spot critical clauses, (4) Score risk, (5) Summarize.

Patterns:

  • Top-down planning: model plans first, then each step
  • Recursive decomposition: if a subtask is complex, decompose recursively
  • Dependency graph: which subtask depends on which (DAG)

Prompt pattern: "Break this task into 5-7 atomic steps. Each step must be self-contained. Return the plan as JSON."

Prerequisites