Breaking Down Tasks (Task Decomposition) › The Core Idea: Think First, Act Second

Michael BrenndoerferJuly 19, 20251 min read
AI Agent HandbookAll chapters
Part 9 of 15Planning - Agents with a Plan
Chapter 24Breaking Down Tasks (Task Decomposition) › The Core Idea: Think First, Act Second
Reading section 3 of 12 · The Core Idea: Think First, Act Second · 1 minSection 3 of 12 · 1 min

Book contents

Section 3 of 12 · 1 min read

Breaking Down Tasks (Task Decomposition) › The Core Idea: Think First, Act SecondOne section · Sections in this chapter3 / 12 ↓

Task decomposition follows a simple but powerful principle: before you start working, figure out what work needs to be done.

This is different from the chain-of-thought reasoning we covered earlier. Chain-of-thought helps an agent think through a single problem step by step. Task decomposition is one level higher: it's about identifying multiple distinct problems that need to be solved, and organizing them into a coherent plan.

Think of it like the difference between:

  • Reasoning: "How do I calculate the answer to this math problem?" (thinking through one task)
  • Decomposition: "This assignment has three math problems, a written explanation, and a graph. Let me tackle them one at a time." (organizing multiple tasks)

For our assistant, task decomposition means taking a user request and generating a list of subtasks. Each subtask should be:

  1. Specific: Clear enough that the agent knows exactly what to do
  2. Achievable: Something the agent can actually accomplish with its available tools and capabilities
  3. Ordered: Arranged in a logical sequence where later steps can build on earlier ones

Let's see what this looks like in practice.