From Plan to Action: How Well Do Agents Follow the Plan?
This paper presents a systematic analysis of 16,991 agent trajectories revealing that while explicit plans generally improve task success, agents often fail to follow them due to reliance on overfitted internal workflows, and that poorly designed or misaligned plans can actually degrade performance, highlighting the need for training paradigms that teach adaptive reasoning over plan memorization.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you hire a very smart, but slightly scattered, apprentice to fix a broken machine in your factory. You give them a recipe (a plan) to follow:
- Find the broken part.
- Test it to see how it breaks.
- Fix it.
- Check that the fix actually works.
This paper asks a simple but profound question: Does the apprentice actually follow the recipe, or do they just wing it?
The researchers studied thousands of "trials" where AI agents tried to fix real software bugs. They wanted to see if giving the AI a strict step-by-step plan actually helped, or if the AI just ignored the plan and relied on its own (sometimes messy) instincts.
Here is the breakdown of their findings, using some everyday analogies:
1. The "Ghost in the Machine" (Internal Habits)
Even when the researchers removed the recipe entirely, the AI didn't just panic. It fell back on habits it learned during its training.
- The Analogy: It's like asking a chef to cook a meal without a recipe. Even without the paper, they might still chop onions first, then fry the meat, because that's how they learned to cook.
- The Result: The AI followed the "standard" steps (Find, Test, Fix, Check) about 60–80% of the time, even without being told to. However, without the written plan, the success rate dropped. The plan acts like a safety rail; without it, the AI wanders off the path more often.
2. The "Bad Recipe" is Worse Than No Recipe
The researchers tried giving the AI a flawed recipe. For example, they told the AI: "Find the bug, then immediately fix it, skipping the testing step."
- The Analogy: Imagine a doctor telling you to skip the diagnosis and go straight to surgery.
- The Result: This was disastrous. The AI performed worse with a bad plan than with no plan at all. When the AI was forced to follow a broken workflow, it got confused and failed more often. It seems the AI prefers to ignore a bad instruction and rely on its own (better) instincts, but the bad instruction still messed up its focus.
3. The "Over-Engineered" Recipe
They also tried adding extra steps to the recipe, like "Write a summary of your changes" or "Run a whole bunch of old tests first."
- The Analogy: You tell the apprentice, "Before you fix the engine, you must also wash the car, check the oil, and write a poem about the tire pressure."
- The Result: This slowed the AI down and made it less successful. The AI got distracted by the extra, unnecessary steps. It turns out that less is more. If the plan doesn't match the AI's natural way of thinking, adding more steps just creates noise.
4. The "Nagging Reminder" Works
One of the most interesting findings was about reminders. As the AI worked longer, it started to forget the original plan (a phenomenon known as "context window pressure").
- The Analogy: Imagine a student taking a long exam. If the teacher whispers, "Remember, step 2 is testing!" every few minutes, the student stays on track.
- The Result: When the researchers periodically reminded the AI of the plan, the AI followed the instructions much better and fixed more bugs. The plan needs to be "top of mind" constantly.
5. The "Hard Mode" Problem
Finally, they tested the AI on harder, cleaner problems (SWE-bench Pro) that the AI hadn't seen before.
- The Analogy: The apprentice was great at fixing the specific broken toaster they practiced on (because they memorized the answer), but when given a brand new, complex microwave, they forgot the recipe entirely.
- The Result: On these harder, "clean" problems, the AI's compliance with the plan dropped significantly. It suggests that for the easy problems, the AI might have just been memorizing the solution rather than truly reasoning through the plan.
The Big Takeaway
The paper concludes that we are teaching AI the wrong way.
Currently, we are trying to "hard-code" specific recipes into the AI's brain. But the AI is like a human who learns best by understanding the logic of a task, not by memorizing a rigid list of steps.
- The Problem: If the recipe doesn't match the AI's internal logic, it fails.
- The Solution: Instead of giving the AI a rigid script, we should train it to be adaptable. We need to teach it how to think and reason so it can create its own plan on the fly, rather than forcing it to follow a script that might be wrong for the specific situation.
In short: AI agents are smart, but they are easily distracted. A good plan helps, but a bad plan hurts. The future isn't about giving them better scripts; it's about teaching them how to write their own.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.