Task decomposition strategies
What this covers
- Choose prompt chaining for predictable work and dynamic decomposition for open-ended work
- Split reviews into per-unit passes plus an integration pass
- Build investigation plans that adapt as they discover things
- Explain attention dilution as the reason several focused passes beat one long prompt
- Recognize that a fixed mapping phase and an adaptive plan can belong to one task
Key terms
- Prompt
- The instructions and information given to a model.
Choose the decomposition pattern that matches how predictable the work is.
Use prompt chaining for known workflows
When the steps are predictable, fix them. A code review might run: analyze each file on its own, then run a separate pass across files.
The reason to split is attention dilution. One prompt carrying twenty files and every review concern gets shallower results than several focused passes. Each pass has a job and the context to do it.
The cross-file pass is not optional. Per-file analysis structurally cannot see an inconsistency that only exists between files.
Four people each proofread their own section of a group paper and every section comes back clean. The paper still calls them participants in one section and subjects in another, because that inconsistency is not inside any single section.
Use dynamic decomposition when the work is discovered as it proceeds
"Add comprehensive tests to this legacy codebase" cannot be planned in advance, because the plan depends on what the codebase turns out to be.
Map the structure first. Identify high-impact areas. Then build a prioritized plan — and let it change as dependencies surface. Subtasks are generated from findings rather than guessed at the start.
Choosing
Ask whether you can enumerate the steps before starting.
If yes, chain them; the predictable order is useful. If the next step depends on what you discover, use dynamic decomposition. A fixed pipeline may otherwise miss important work or perform steps that are not needed.
prompt chainingdynamic decompositionmulti-pass review
Field note — common misconceptions
- MythThat one large context beats several focused passes
- ActuallyAttention dilutes across one long prompt; each focused pass has a job and the context for it.
- MythThat the plan for an open-ended task can be fixed up front
- ActuallyMap the structure first, then generate subtasks from findings and let the plan change.
- MythThat per-unit analysis alone will catch cross-unit problems
- ActuallyA separate cross-file pass is required, because the inconsistency exists in no single file.
Guided review
Review this lesson as a study deck
Review the lesson's main ideas in five guided slides, then test yourself with three flashcards.
Open Task 1.6 study deckCross-domain reasoning
Connect this idea
Delegation depends on context
A delegated task succeeds only when its scope is clear and the receiving agent gets the instructions, facts, saved state, and sources it needs.
- 1.2 · Orchestrate multi-agent systems with coordinator-subagent patterns
- 1.3 · Configure subagent invocation, context passing, and spawning
- 5.1 · Manage conversation context to preserve critical information
- 5.4 · Manage context effectively in large codebase exploration
- 5.6 · Preserve information provenance and handle uncertainty in multi-agent systems
Applied practice
Practice this lesson in a lab
Use a related lab to create a decision, implementation or diagram, evidence record, and review.
- Lab 2 · Coordinator and specialist agents
Coordinate three bounded specialists without losing provenance or hiding a coverage gap.