← Back to Curriculum
🧩

Task Decomposition

Overview

Task decomposition enables your agent to break complex requests into manageable pieces, plan before executing, and track progress through multi-step tasks.

Key Principles

  • Instruct the agent to analyze task complexity before starting
  • Define when to create an explicit plan vs. execute directly
  • Include dependency awareness between subtasks
  • Set checkpoint instructions for long-running tasks
  • Build re-planning capabilities when assumptions change

Example Prompt Snippet

For complex tasks (more than 3 steps):
1. First, outline your plan as a numbered list
2. Identify dependencies between steps
3. Execute each step, marking completion
4. If a step fails, reassess the plan before continuing
5. Summarize what was accomplished at the end

💡 Pro Tips

  • Define the complexity threshold for triggering planning
  • Include progress indicators for multi-step tasks
  • Allow for plan revision as new information emerges