From Plan to Action: How Well Do Agents Follow the Plan?
Organizations: University of Illinois Urbana-Champaign Urbana, USA · IBM New York, USA
Abstract
Agents are commonly instructed to follow a task-specific plan for guidance. However, it is unknown to what extent agents actually follow instructed plans. Without such an analysis, determining the extent agents comply with a given plan, it is impossible to assess whether a solution was reached through correct strategic reasoning or through other means, e.g., data contamination or overfitting to a benchmark. This paper presents the first extensive, systematic analysis of plan compliance in programming agents, examining 21,120 trajectories from SWE-agent across four LLMs on SWE-bench Verified and SWE-bench Pro under eight plan variations. Without an explicit plan, agents fall back on internalized workflows during training, which are often incomplete, overfit, or inconsistently applied. Providing the standard plan improves issue resolution, and we observe that periodic plan reminders can mitigate plan violations and improve task success. A subpar plan hurts performance even more than no plan at all. Surprisingly, inserting additional task-relevant phases in the early stage can degrade performance, particularly when these phases do not align with the model's internal problem-solving strategy. These findings call for fine-tuning paradigms that teach models to follow instructed plans, rather than encoding task-specific plans in them, so that they reason and act adaptively, rather than memorizing workflows.
Figures & tables
| Plan Setting | Plan Formulation | Plan Variation | Plan Description |
|---|---|---|---|
| Standard (Default) Plan | , , , | Baseline | Standard Navigation-Reproduction-Patch-Validation plan |
| No Plan | — | Reduction | Plan removed entirely from the system prompt |
| Default Plan - Reproduction | , , , | Reduction | Reproduction phase removed |
| Default Plan - Validation | , , , | Reduction | Validation (after patching) phase removed |
| Default Plan + Regression Test Execution | , , , , | Augmentation | Regression test execution phases added |
| Default Plan + Summary of Changes | , , , , | Augmentation | Summarizing changes before submission added |
Software Engineering Agents
Software Engineering Agents are AI systems that use code, tools, and feedback to perform software development tasks.
See all 344 papers