Breaking Down Tasks (Task Decomposition) › Why Agents Need to Decompose Tasks

Michael BrenndoerferJuly 19, 20252 min read
AI Agent HandbookAll chapters
Part 9 of 15Planning - Agents with a Plan
Chapter 24Breaking Down Tasks (Task Decomposition) › Why Agents Need to Decompose Tasks
Reading section 2 of 12 · Why Agents Need to Decompose Tasks · 2 minSection 2 of 12 · 2 min

Book contents

Section 2 of 12 · 2 min read

Breaking Down Tasks (Task Decomposition) › Why Agents Need to Decompose TasksOne section · Sections in this chapter2 / 12 ↓

Let's see what happens when an agent tries to handle a complex request without decomposition. Imagine you ask your assistant:

"Help me prepare for my client presentation next Friday. I need to research the client's industry, create a slide deck, practice my delivery, and send a meeting invite to the team."

That's actually four different subtasks bundled into one request. If the agent tries to do everything at once, it might:

  • Miss one of the subtasks entirely
  • Start working on steps in the wrong order (like practicing before creating the slides)
  • Get overwhelmed and produce a confused or incomplete response

Here's what an unprepared agent might output:

In[3]:
Code
## Using Claude Sonnet 4.5 for its superior agent reasoning capabilities
import os
from anthropic import Anthropic

client = Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))

response = client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=300,
    messages=[{
        "role": "user",
        "content": "Help me prepare for my client presentation next Friday. I need to research the client's industry, create a slide deck, practice my delivery, and send a meeting invite to the team."
    }]
)

print(response.content[0].text)
Out[3]:
Console
I'll help you break this down into a manageable plan for your presentation preparation. Here's a structured approach:

## **Immediate Priority (This Week)**

**1. Research the Client's Industry**
- Identify key trends, challenges, and competitors
- Review recent news and market reports
- Understand regulatory environment if applicable
- Time needed: 3-4 hours

**2. Send Meeting Invite**
- Do this ASAP so your team can plan accordingly
- Include: date, time, attendees, agenda, any prep materials
- Time needed: 15 minutes

## **Mid-Week Tasks**

**3. Create Slide Deck**
- Outline key messages first
- Structure: Problem → Solution → Value/ROI → Next Steps
- Keep it visual and concise (10-15 slides max)
- Time needed: 4-6 hours

## **Later in Week**

**4. Practice Delivery**
- Run through 2-3 times alone
- Practice once with a colleague for feedback
- Time your presentation
- Anticipate questions
- Time needed: 2-3 hours

## **Suggested Timeline**
- **Monday-Tuesday**: Research + send invite
- **Wednesday-Thursday**: Build deck
- **Thursday-Friday**: Practice runs
- **Weekend/Monday**: Final refinements

**

The model might respond with something like:

I can help you prepare for your presentation! You should start by researching the client's industry, looking at recent news and trends. For the slide deck, consider using a template that highlights key points. Practice your delivery a few times to build confidence, and don't forget to send a calendar invite to your team with the meeting details.

That's not terrible, but notice what's missing: the agent hasn't actually done anything. It's given you advice, but it hasn't organized the work into actionable steps, determined what order to tackle them, or begun executing any of them.

Compare that to what we want: an agent that breaks down the request into clear subtasks and can work through them systematically.