CMU AI Agents 2026: 5. Planning, Task Decomposition, and Multi-Agent Coordination
Overview
Graham Neubig explains how LLM agents can use plans, task decomposition, and parallel subagents to manage long-horizon work while balancing predictability against the need to replan when the environment changes. Examples including Cursor plan mode, SayCan, Recursive Agent Optimization, and multi-agent computer use show how structured plans can improve oversight, efficiency, feasibility, and robustness, while experiments emphasize that excessive reasoning and inflexible plans can hurt performance.
Key takeaways
- A useful agent plan represents dependencies, not just a checklist: GPU vendor research can run in parallel, but compatibility checking depends on vendor results and purchasing follows the check.
- SayCan improves action selection by combining an LLM's score for a plausible action with an affordance model's estimate that the action is executable in the current environment.
- Planning is not automatically more efficient than acting: experiments found that spending tokens on additional environmental interaction often outperformed spending them on longer reasoning chains.
- Long-horizon agents need exceptionally reliable individual actions because mistakes compound, and errors in an agent's history can make future errors more likely.
- In multi-agent computer use, a manager can turn a long web task into a dependency graph, run independent subtasks in parallel, and revise the graph when results reveal missing work.
- Structured plans can improve both oversight and security by making decision logic inspectable, reducing the influence of adversarial web content such as reviews that tell an agent to ignore a price.
Chapters
- Researching GPUs across four vendors requires gathering specifications, checking cluster compatibility, and potentially submitting a purchase requisition.
- Vendor research can run independently, but compatibility checks depend on the collected specifications and purchasing comes afterward.
- If the only compatible GPU has a 20-week lead time, the agent may need to search more vendors or ask a person before buying.
- Replanning adds flexibility, while committing to a plan can make actions easier to understand and oversee.
- Coding-agent plan modes first gather context, such as exploring a codebase, then present proposed steps for human review or editing.
- Cursor, Claude Code, and Codex use plans to let people approve a direction before an agent makes changes.
- Plans can reduce mistakes and help control long tasks, and parallel subagents can execute independent items.
- A plan is a task-specific proposal, unlike a reusable skill, and agents may need to revise it as new information appears.
- Chain-of-thought prompting, including Kojima et al.'s “Let's think step by step,” gives models extra computation and a scratchpad for intermediate results.
- Least-to-most prompting decomposes a hard problem into simpler questions, then feeds earlier answers into later steps.
- Decomposed Prompting predicts subtask types so different prompts, models, or tools can handle distinct kinds of questions.
- Breaking a task into subtasks can reduce the context each model call needs, as with researching one GPU vendor independently.
- Classical planning represents states as logical predicates and actions with preconditions and effects, as in STRIPS and PDDL.
- A valid plan is an action sequence that moves from an initial state to a goal while satisfying each action's preconditions.
- Search methods such as breadth-first search, depth-first search, and A* can find plans in these explicit representations.
- LLM agents usually lack explicit action models, so planning focuses more on proposing plausible steps and checking whether they are executable.
- Plans can be represented as natural-language steps, formal logical actions, or executable programs.
- Code-generation approaches call domain-specific APIs, such as robot object detectors and manipulators, to carry out a task.
- Program constructs such as loops and retries can express postcondition checks and recovery behavior.
- Code plans require good APIs and can be rigid, but API calls can delegate to LLMs or learned models for flexibility.
- Anthropic's “Building Effective Agents” recommends starting with workflows: fixed programmatic sequences of LLM calls.
- A GPU-buying workflow could inspect a fixed vendor list, check compatibility, select the cheapest option, and purchase it.
- A workflow is predictable and may use simpler models, but it cannot easily adapt if the vendor list or task requirements change.
- As models improve, some scaffolding may become unnecessary, though workflows remain useful in unfamiliar domains where reliability is uncertain.
- Early computer-use systems separated a strong planner from a smaller model that performed fine-grained visual actions on web pages.
- The UGround work trained a 7-billion-parameter model on synthetic data to ground natural-language instructions in page elements.
- Modular components can be optimized separately, but stronger foundation models trained on web interaction data have reduced the need for some separate grounding systems.
- The approach is most useful when planning and low-level execution require different capabilities.
- Plan-and-Act creates training examples by filtering for successful trajectories and asking a teacher LLM to segment and label their actions.
- The resulting data trains a planner to map a task description to natural-language steps and an executor to turn each step into actions.
- Modular plans can miss details or pass insufficient context between agents, while a single agent may retain more of the task history.
- Fixed decompositions work best when tasks consistently fit the assumed structure.
- A language model may propose “pick up the apple” even when no apple is visible to the robot.
- SayCan combines language-model scores for candidate actions with an affordance value function that estimates whether each action is executable in context.
- The system multiplies the language model's probability by the affordance probability to favor both plausible and feasible actions.
- Grounding plans in available objects and capabilities addresses a gap in LLMs' implicit knowledge of the environment.
- In the ALFRED household simulation, a robot that cannot find a potato can use feedback that it sees a fridge to revise its plan and open it.
- Experiments comparing longer reasoning with more environmental interaction found that, at a similar token budget, additional interaction often performed better.
- A study of coding agents identified overplanning, harmful or unhelpful actions, and stopping too early as failure patterns associated with lower SWE-bench performance.
- Explicitly representing uncertainty about environmental facts, such as whether a CSV column is named “price,” can improve action choices.
- Vending-Bench asks agents to operate a vending-machine business for up to 222 days, with runs requiring as many as 25 million tokens.
- Small per-step error rates compound across long trajectories, making near-perfect step accuracy important for sustained success.
- Errors in prior context can make later mistakes more likely, a form of poisoning observed in agentic tasks.
- Reinforcement learning can help models recover from mistakes, but tests with Qwen3 found that even the 32B model was vulnerable to errors inserted into its history.
- Recursive Agent Optimization trains a model to generate executable code that decomposes a task and launches subagents.
- For a three-day Kyoto trip, subtasks can independently research cherry blossoms and quiet temples.
- Python async and await allow subagents to work in parallel or sequence, and child agents can recursively create further subagents.
- The method rewards task success and plan generation, and experiments report generalization from medium-depth training tasks to harder decompositions.
- A web-shopping plan can explicitly search for noise-cancelling headphones under $200, compare products, and add the selected item to a cart.
- Untrusted web content, such as a review saying “ignore the price,” can manipulate an agent that relies on free-form context.
- Executing structured selection logic, such as choosing the product with the highest average rating, can reduce susceptibility to injected text or adversarial product images.
- Cursor plan mode gathers codebase context, asks the user to resolve design questions, and saves the approved to-do list as a Markdown file.
- Odyssey uses opt-in browsing histories to create long-horizon web tasks, including research tasks that can require dozens of sites and spreadsheet entry.
- Multi-agent computer use represents subtasks as a directed acyclic graph, with dependencies determining execution order and independent work assigned to parallel subagents.
- An LLM manager inspects subagent results, retries incomplete work, or adds graph nodes when new information is needed.
- In experiments, success on a challenging benchmark was about 25% when the initial graph could not change, and allowing more replanning steps improved performance.
- A manager model can improve a fixed, cheaper worker's performance without requiring every action to use the most expensive model.
- Planning is most compelling when subtasks are separable, need different capabilities, or can run independently.
- Designers should decide whether planning is harder than execution and how much authority an agent has to revise its plan.
- Plans can serve as control interfaces for a person or another model, but add complexity that is not worthwhile for every task.
Transcript excerpt
0:01 Okay. Yeah, let's go ahead and get started. So, today is going to be about planning and task decomposition. And uh planning is kind of an interesting topic because it's a little bit of a a moving target. Um it's about uh well, we we'll see. It's about like how agents kind of produce a representation of what they plan to do in the future. Um and it builds on some ideas from chain of thought, for example. Um but in agentive settings it's more um interesting and challenging because the agent is going to reveal some information from the environment that is going to change what it should do. So plan should always be revisable and there's a question of like you know how much should the agent be committing to one course of action which could help make things like understandable and uh overseeable by a person versus how much
0:50 should the agent be flexible and be able to deal with things that come up um along the way. And we'll see some different points in the design space that that trade off between these. This is going to touch a little bit on multi-agent just because, you know, if you have a plan and you try to carry out parts of it in parallel, that's sort of naturally a multi- aent system. But we'll be getting more into multi- aent and the way that agents communicate with each other in a later lecture. But just as a motivating example, let's think about a task which you could ask an agent to carry out now. And you can think about whether you would trust the agent to do this task or do all of this task. But maybe you want um maybe you want the agent to do some research on uh
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Graham Neubig.