Flashcard: why break a complex goal into subtasks before acting?
Task decomposition breaks a complex goal into smaller sub-tasks. It reduces per-step reasoning load, makes failures localizable, enables specialization, and creates natural gates for evaluation and human review.
Imagine being asked to plan a wedding in one shot: pick venue, send invites, book caterer, plan music, everything. That is overwhelming and easy to mess up. Now imagine breaking it into a list of small tasks: pick venue first, then send invites once the date is set, then book the caterer once the count is known. Each step is easier on its own, and if something goes wrong you know exactly which step failed. You can also assign different people to different steps. Agents work the same way. Breaking a complex goal into smaller sub-tasks makes each step easier, makes failures easier to find, lets the agent use different tools for different sub-tasks, and lets a human review the work between steps if it matters.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define task decomposition as partitioning a complex goal into smaller sub-tasks. Distinguish explicit (Plan-and-Execute) from implicit (ReAct). Cover the four benefits: lower reasoning load, localizable failures, specialization across tools and models, and evaluation or review gates. Name the over-decomposition anti-pattern. Close with the natural reasoning seams heuristic and the role of decomposition in 2026 multi-agent frameworks.
Real products, models, and research that use this idea.
- OpenAI Deep Research decomposes a research goal into outline, then section, then claim sub-tasks, with each section's retrieval and synthesis happening independently before recomposition.
- Anthropic claude-code decomposes a refactor into per-file edits, each with its own retrieval and edit sub-tasks, so a failed test on one file localizes the failure without invalidating the others.
- CrewAI assigns different decomposed sub-tasks to different specialised agents: a researcher agent for data gathering, a writer agent for synthesis, a critic agent for review.
- GitHub Copilot Workspace decomposes a feature request into spec, plan, and per-file edit sub-tasks, with explicit human-review gates between each stage.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow is task decomposition different from Plan-and-Execute, given that they sound similar?
QHow does decomposition enable specialization across models?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating task decomposition as one specific pattern like Plan and Execute. Decomposition is a structural choice that appears in nearly every multi-step agent pattern: ReAct decomposes implicitly per turn, Plan and Execute decomposes up front.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.