Skip to content

Breaking a task into pieces an agent can finish

In this lesson we hand an agent a task that’s too big to check and read what comes back. Then we split the task into pieces, each with an input, an output, and a check. We write the brief for the first piece and run it, so that what we look at is one piece done and ticked off. The task is fictional and small enough to redo as often as you like.

You need any chat-capable agent you already have access to. Keep the brief from the previous lesson in mind: goal, context, limits and done-criteria. The pieces we make here are what those briefs get written for.

You coordinate a shared-bike pilot at a company campus. The pilot ran for eight weeks and the facilities manager wants a one-page report with three parts: how much the bikes were used, what the riders said, and what it costs to continue. You have one source per part. Read them once now, so that you can judge the agent’s work later.

The first source is the weekly usage export from the bike system.

Rides per week, pilot weeks 1 to 8

  • Week 1: 112
  • Week 2: 148
  • Week 3: 171
  • Week 4: 165
  • Week 5: 96 (docking station offline Wednesday and Thursday, count incomplete)
  • Week 6: 183
  • Week 7: 190
  • Week 8: 176

The second source is a note from the colleague who ran the rider survey.

Survey note

All 120 pilot participants got the survey and 41 replied. 33 said they would keep using the bikes if the scheme continues. 29 named “no bike available in the morning” as the biggest problem. 12 asked for helmets at the docking station. 6 wrote in the free-text box that the docking station is too far from the east entrance. I haven’t turned any of this into percentages.

The third source is the email from the bike vendor.

Email: continuing after the pilot

Thank you for running the pilot with us. The pilot period was free of charge. To continue we offer two options, both with a minimum term of twelve months. Option A is 1,800 per month for the bikes and the docking station, with your facilities team doing the maintenance. Option B is 2,400 per month and includes maintenance and replacement of damaged bikes. Both prices exclude tax.

Before you send anything, predict: if you paste all three sources under “write the one-page report for the facilities manager”, what comes back? Something well written, probably. Now ask a harder question. Which line of it could you check, and against what?

Try it. Paste the three sources into your agent with that one-line request, then read the result with the sources next to it. Here is the kind of thing that comes back. The transcript is illustrative, written to show the pattern rather than recorded from one model.

Prompt (illustrative, not a recorded transcript)

Write the one-page report on the bike pilot for the facilities manager.

[the three sources follow]

Response
**Shared-bike pilot: report**
The pilot was a clear success. Usage grew steadily over the eight weeks,
from 112 rides in the first week to around 190 a week by the end, and 80%
of riders want to keep the scheme. The main complaint was that bikes were
sometimes unavailable in the morning, which suggests adding capacity.
The price to continue is 1,800 per month on a twelve-month contract.
Given the strong uptake and positive feedback, we recommend continuing
and adding a second docking station near the east entrance.

Read it against the sources. The 80% is 33 out of 41 replies. The report never says 41, and the manager reads it as 80% of 120 participants. Week 5 and its offline days are gone. Option B, the maintenance quote, is gone too, and the contract now looks cheaper than it is. “Around 190 a week by the end” smooths weeks 6 to 8, which were 183, 190 and 176, into one rounded number. The docking station recommendation came from six free-text comments and is presented as a finding. And the survey has been folded into the usage paragraph, so there is no line you can point at and say “this one is wrong”.

None of this is the agent being careless. You gave it one task with three sources and no way to be right or wrong, and it filled every gap with a plausible choice. The report reads well, and reading well is the only thing you can check.

Task decomposition is splitting a large task into pieces small enough that each has a clear input, a clear output, and a way to check it. The report has a natural split, one piece per part, and each piece gets the three columns.

PieceInputOutputCheck
UsageThe usage exportA heading, one line per week, a total line, one line on week 5Eight weeks each appear once, the total equals the sum of the export, week 5 is marked incomplete, no count appears that isn’t in the export
RidersThe survey noteA heading and four bullets, each written as “n of 41 replies”Every count is in the note, 41 is named as the base, no percentages
CostThe vendor emailA heading, both options with the monthly price and what it includes, the twelve-month termBoth prices appear once and match the email, the twelve-month term is stated

Fill in the table and something else happens. Choices you never noticed in the one-line request become visible, and every one of them is yours. Does week 5 go in the report as it is, with a note, or get left out? Are survey numbers reported per reply or per participant? And does the report show one price or both? In the blended result the agent made each of them for you, silently, and the report looked finished. In the split they show up as blanks in the Output and Check columns, before any brief is written [1].

Make them now, in a line each. Week 5 goes in, marked incomplete, because leaving it out would hide the outage. Survey numbers are “n of 41 replies”, because the note counts replies and never participants. Both prices go in, because the manager is choosing between them. Those lines become limits in the briefs.

Checkpoint · sort

Checkpoint · scenario

You are about to brief the usage piece and you notice the flag on week 5 in the export. What do you do?

The usage piece is ready. Its input is one source and its output is fixed, and its check is a list you can tick. Its brief is the four parts from the previous lesson, with the check as the done-criteria. Send it now, with only the usage export pasted underneath. The other two sources stay out of this piece.

Prompt (illustrative, not a recorded transcript)

Write the “Usage” section of a report from the export below. Format: the heading “Usage”, then one line per week in the form “Week N: R rides”, then one line “Total: T rides”, then one line saying that the week 5 count is incomplete because the docking station was offline for two days.

Use only the export as your source. Include all eight weeks, week 5 with its count as given. Don’t add commentary, trends, or recommendations.

Done when: each of the eight weeks appears exactly once with the count from the export, the total equals the sum of the eight counts, the week 5 note is present, and no count appears that isn’t in the export.

[export follows]

Response
**Usage**
- Week 1: 112 rides
- Week 2: 148 rides
- Week 3: 171 rides
- Week 4: 165 rides
- Week 5: 96 rides
- Week 6: 183 rides
- Week 7: 190 rides
- Week 8: 176 rides
- Total: 1,241 rides
The week 5 count is incomplete because the docking station was offline on
two days that week.

Now tick the check, line by line. Eight weeks, each once? Count them. Each count as in the export? Compare them. The total? Add the eight numbers yourself. The export gives 1,241, so a total of 1,241 passes and anything else fails. Week 5 note present? Any count that isn’t in the export? Your own result differs in wording, and the check doesn’t care about wording. It is a list of yes or no, and every item takes seconds.

Compare this with the blended report. There you had one page and a feeling. Here you have one section and five ticks. A section that fails a tick goes back to the agent with the failing item, the way the previous lesson taught. The riders and cost pieces are unchanged while you do that.

Checkpoint · multi-choice

Which of these pieces are ready to have a brief written for them?

Select exactly 2.

Look at the usage piece once more. You could hand it over on its own with one source and no other context. You could check it on its own, with a list that took under a minute. If the total had been wrong, you would have redone that one piece and the riders and cost sections would have been untouched. Those are the marks of a good piece, and a piece missing one of them is a sign the split isn’t finished.

Splitting also moved the decisions to the right moment. In the one-prompt version you discovered the week 5 and percentage choices, if at all, by reading a finished report. In the split version they appeared as blanks in a table before anything ran, and you filled them in as limits in the brief. An agent that works through a task in steps is only as good as the check at the end of each step [2]. The steps and the checks are the part you supply.

Exercise

Write the briefs for the riders piece and the cost piece from the table, using the decisions you made about the survey base and the two prices as limits. Run the riders piece with only the survey note pasted underneath, then tick its check item by item. Keep it to the four bullets the table asks for. A good result is one where every count in the bullets is a number from the note, 41 is named as the base, and no percentage appears, so that a reader can’t mistake 33 replies for 80% of the campus. Which of the decisions in your brief would the agent have made for you, and could you have told?

Stretch: Ask the agent to assemble your three checked sections into the one-page report, with one check: no number changed. Then compare the result with the blended report from the start of the lesson.

Recap

  1. A task given as one prompt comes back blended, with the gaps filled by the agent’s own choices, and reading well is the only thing you can check.
  2. Split a large task into pieces that each have an input, an output, and a check. One source per piece, a fixed output, and a check you can tick.
  3. The split shows the decisions that are yours: which data goes in, what base a number uses, which of two options to show. Make them before the first brief, and write them into it as limits.
  4. A piece with an output but no check isn’t ready to brief. Write the check first, and use it as the done-criteria.
  5. A good piece can be handed over on its own and checked on its own. When it fails, you redo that piece and the other two are unchanged.

You can now

  • Writes a brief with goal, context, limits and done-criteria

  1. Anthropic. AI Fluency: Framework and foundations. Claude Academy. Course. Academy ai-fluency-framework-foundations
  2. DeepLearning.AI. Agentic AI: M1 workflows and autonomy, M2 reflection, M4 evals and error analysis, M5 autonomous agents. DeepLearning.AI. Course. DLAI-11