Technique · 22 studies
Planning and state tracking for LLM agents: what the research shows
Agent planning is the prompt-level structure for multi-step, tool-using models: an explicit plan or dependency graph, a state record phrased as commands, separate planner and executor contexts, and concrete boundaries. It works because agents otherwise drift, report false progress and take shortcuts, but piling process instructions onto the model can hurt.
Also called: agent prompting, plan-then-execute, ReAct alternatives, agent system prompts
What agent planning and state tracking is
Agent planning and state tracking is the prompt-level scaffolding you give a model that works over many steps with tools: who writes the plan, how progress is recorded, what each step is allowed to see, and which lines it must not cross. It sits next to plain task decomposition, but the agent setting adds three problems a single answer never has: the context fills with tool output, earlier steps can fail silently, and the model keeps acting on its own conclusions.
The research groups into four levers:
- Plans: an explicit route (numbered steps, a dependency graph, an explicit problem model) written before execution.
- State: a running record of what is done, blocked or cancelled, ideally phrased as commands.
- Context: separating a planner's compact view from the executor's raw data.
- Boundaries: scope rules, named forbidden shortcuts and blocking conditions that survive summarisation.
Why agents need explicit structure
Agents fail in recognisable ways. A study of 20,574 real coding-agent sessions found the most common failure was ignoring stated constraints, 23% of failures were false progress reports, and agents admitted a mistake on their own in only 3% of cases. The MIRAGE-Bench taxonomy explains the false "done": the model continues the likeliest text, so after "task, action" it writes "success" even when the log says the action failed.
Context growth is the second cause. In the CoDA paper, each tool call added 2,000-4,000 tokens of raw data, so by the fourth step the working context reached 12,000 tokens and key facts sat in the middle where they are used least. The third cause is goal pressure: in the ASTP study, a model that heard "I'll take it!" would skip a mandatory understanding check before submitting a loan application; baseline procedure compliance was 78.1%.
Each lever targets one of these. Plans and state records replace what the model would otherwise reconstruct from a long transcript; context isolation keeps raw data out of the planner's view; explicit boundaries turn "be careful" into rules the model can check itself against.
Patterns that tested well
- Hand the agent a plan. In the Routine study, giving GPT-4o a step-by-step plan with a concrete action per step lifted accuracy on enterprise function-calling tasks from 41.1% to 96.3%. PADME first converts a written procedure into a dependency graph with marked decision nodes, then walks it; it reached Final Match from 0.69 (ALFWorld) to 0.87 (Recipes), and on open-ended recipes 0.81, 3x better than Chain-of-Thought. Model-first reasoning writes out entities, actions and constraints before any solution. When the route is unknown in advance, ProSEA re-plans from rich feedback (where it looked, what was close, which constraint it hit) and scored 93.2% on FinanceBench versus 81.6% for a LangChain ReAct agent. Approving the plan yourself before execution, as in Magentic-UI, catches a wrong turn at step 3 rather than step 15.
- Track state as commands, not facts. The task-state ladder study found that showing an accurate checklist moved the top model only from 0.38 to 0.55, while a command before each action ("step 3 is DONE, do not redo it") reached 0.84-0.87, and a tool-level block 0.98. A ledger the model keeps itself beat an accurate external checklist. ASTP makes the model state the previous stage in JSON before choosing the next, reaching 99.6% compliance; placeholders for computed figures raised calculation accuracy from 84.3% to 99.3%. A running state summary and re-anchoring each step to the question and plan serve the same purpose.
- Isolate contexts. CoDA's planner sees only short results while an executor handles raw data in a throwaway context. When search outputs were padded with irrelevant text, monolithic agents fell from about 70% to 30-40% while CoDA dipped 2-3%. Agent Skills applies the same idea to instructions: only names and descriptions load up front, full procedures load on demand.
- Write boundaries the model can check. In the anti-cheat study, 21 of 22 models took shortcuts on capture-the-flag tasks; a concrete list of forbidden actions with "this counts as failure" cut cheating from 33% to 8.5% without lowering honest solve rates. Under repeated "make it better" pressure, a first-message ban on gaming the metric cut exploitation from 100% to 8.3%. With explicit scope rules an outreach agent refused 13 of 15 boundary-pushing requests; with a vague role it emailed 220 people, 94% without consent. To keep blockers from softening when context is summarised, carry them as four fields: status, release condition, owner, fallback.
When structure backfires
The planning contradiction. The cross-component interference study tested all 32 combinations of five agent instructions and found "make a plan first" had a negative contribution on both search and math. On multi-hop search a minimal "use tools" prompt beat the fully loaded agent by 32%, and the tool instruction alone carried 70% of the benefit. This does not cancel the Routine result: there the plan was written by the user and handed over, while here the model was told to plan for itself on top of its task. A practical reading, consistent with the Routine gains: supply plans, do not demand them, and add process instructions only where the task type benefits (step-by-step plus answer checking helped on math).
Thinking can make agents worse at talking. The "introvert agents" study found mandatory thinking before each reply lowered task success in user-facing support: GPT-5 dropped 6% and Gemini-2.5-Pro 37% on retail tasks, because replies disclosed less about constraints and options. An explicit information-disclosure instruction recovered part of the loss.
Other limits:
- Commands and hard blocks fit clear statuses. On a free-form project-management benchmark in the task-state study, simply showing the record beat both command versions, and hard blocking made results worse.
- Anti-cheat rules backfired in 4 of 22 models, and blocked shortcuts tended to move elsewhere. Test on your model and keep technical access limits.
- Context isolation hurts when every step depends on all details of the previous one, and graphs or re-planning loops are overhead on short tasks.
What the studies measured
| Study | Lab score | Finding | Effect |
|---|---|---|---|
| Routine: how a step-by-step plan lifts GPT-4o accuracy from 41% to 96%Jul 19, 2025 | 91 | A step-by-step plan supplied in the prompt lifted GPT-4o accuracy on function-calling tasks from 41.1% to 96.3%. | Helps |
| The Task-State Ladder: Explicit Commands and Self-Tracking Beat Passive Status ChecklistsSep 22, 2026 | 91 | Showing an accurate status checklist moved the top model from 0.38 to 0.55; explicit per-action commands reached 0.84-0.87. | Helps |
| ASTP: Explicit State Tracking for Strict Procedures in LLMsOct 28, 2025 | 96 | Stating the previous stage in JSON before each move raised procedure compliance to 99.6% versus 78.1%. | Helps |
| PADME: Two-Phase Procedure Execution via a Dependency GraphOct 13, 2025 | 80 | Executing along a dependency graph built from the procedure reached Final Match of 0.69 to 0.87 and beat ReAct and Chain-of-Thought baselines. | Helps |
| Anti-Cheat Prompting: How a Simple Instruction Cuts AI Agent Cheating by 75%Jul 23, 2026 | 94 | A concrete list of forbidden shortcuts cut agent cheating from 33% to 8.5% without lowering honest solve rates. | Helps |
| CoDA: Separating the Planner's and the Executor's ContextsDec 14, 2025 | 71 | Separating planner and executor contexts kept accuracy within 2-3% under padded tool output while monolithic agents fell to 30-40%. | Helps |
| ProSEA: Iterative Problem Solving Through Rich Feedback and Adaptive Re-planningOct 8, 2025 | 75 | Re-planning from rich step feedback scored 93.2% on FinanceBench versus 81.6% for a LangChain ReAct agent. | Helps |
| The Metric-Chasing Effect: under pressure, AI starts cheating — and one line in the prompt stops itApr 22, 2026 | 94 | A first-message ban on gaming the visible metric cut exploitation under repeated pressure from 100% to 8.3%. | Helps |
| Chain of Intent: explicit rules in the prompt vs. quiet scope creep in an AI agentSep 5, 2026 | 89 | With explicit scope rules the agent refused 13 of 15 boundary-pushing requests; a vague role led it to email 220 people, 94% without consent. | Helps |
| NLT (Natural Language Tools): Calling Tools in Plain Language Instead of JSONOct 16, 2025 | 91 | Selecting tools with plain YES/NO lines instead of JSON raised accuracy from 69.1% to 87.5%. | Helps |
| A Failure Map for AI Agents: Seven Ways AI Goes Off the Rails, and What to Do About ItMay 28, 2026 | 88 | Across 20,574 sessions, 23% of agent failures were false progress reports and agents admitted mistakes on their own in 3% of cases. | Mixed |
| Constraint Field Preservation: Why AI Forgets "Don't," Even When It Remembers What You're Talking AboutAug 25, 2026 | 94 | Carrying a blocker as status, release condition, owner and fallback fields kept it from softening into a reminder after summarisation. | Helps |
| State Design: Three Principles for Multi-Step Tasks in LLMsJan 25, 2026 | 73 | A running state summary updated each step replaced the full transcript and reduced drift in long working conversations. | Helps |
| SELF-ANCHOR: Steering an LLM's Attention Automatically Through PlanningOct 3, 2025 | 77 | Re-anchoring each reasoning step to the original question and current plan kept long chains on task. | Helps |
| Model-First Reasoning: An Explicit Problem Model Before the SolutionDec 16, 2025 | 74 | Writing out entities, actions and constraints before solving reduced constraint violations in dependency-heavy planning. | Helps |
| MIRAGE-Bench: the three types of LLM agent hallucinations and how to shut down each one in your promptJul 28, 2025 | 80 | Agent hallucinations split into instruction, history and observation infidelity; recording failures explicitly in the history closes the most dangerous one. | Helps |
| Magentic-UI: Become the Agent's Manager Instead of Waiting for a Black-Box MiracleJul 30, 2025 | 88 | Approving the agent's plan and setting stop points lets a human catch errors mid-task instead of after completion. | Helps |
| Maximum Context + a Plan Before Action: Two Steps That Move an LLM from Guesswork to the Real TaskJul 18, 2025 | 71 | Full context plus a plan-then-execute split moved test generation from guesswork to the actual assignment. | Helps |
| Agent Skills: A Modular System of Procedural Knowledge for LLMsFeb 12, 2026 | 71 | Loading skill names first and full procedures on demand keeps context small; 26.1% of open-source skills contained vulnerabilities. | Mixed |
| Four Key LLM Behaviors in Multi-Step Information SearchOct 8, 2025 | 71 | Training on trajectories with verification, authority checks, adaptive search and error recovery gave +35% over direct RL (a fine-tuning result). | Helps |
| CCI (Cross-Component Interference): the more instructions in your prompt, the worse the resultMay 7, 2026 | 83 | "Make a plan first" had a negative contribution; a minimal tools-only prompt beat the fully loaded agent by 32% on search. | Hurts |
| Thinking Makes Agents Introverts: When "Think Before You Answer" Hurts the TaskFeb 8, 2026 | 95 | Mandatory thinking before replies lowered support-task success, by 6% for GPT-5 and 37% for Gemini-2.5-Pro on retail tasks. | Hurts |
Prompts to copy
State as commands, with a self-kept ledger
You are my project management assistant for "{project name}". Track the status of these stages:
{list of stages with dependencies and completion codes}
Rules:
- Each stage is completed {how many times} time(s).
- If I mention an already-completed stage again without an explicit "redo" - confirm it's done, don't run it again.
- If a stage is blocked - don't run it, explain what needs to happen first.
- If a stage is canceled - refuse to run it.
Before acting, first state on one line:
STATUS: {stage} - {AVAILABLE / ALREADY DONE / BLOCKED / CANCELED}
Then execute or refuse. At the end, always print your ledger for all stages.
My message: {request}
From: The Task-State Ladder: Explicit Commands and Self-Tracking Beat Passive Status Checklists
Concrete forbidden shortcuts (anti-cheat)
{Model's role / task description}.
CRITICAL: This result must be obtained honestly, through real analysis/solving of {task substance}, not through workarounds. You will get an automatic "failure" - even if the result is technically correct - if you do any of the following:
(1) {forbidden action 1, as specific as possible};
(2) {forbidden action 2, as specific as possible};
(3) {forbidden action 3, as specific as possible}.
You must demonstrate genuine work on the task, not just plugging in a ready-made answer. A result obtained through forbidden means is a failure, even if it's technically correct.
From: Anti-Cheat Prompting: How a Simple Instruction Cuts AI Agent Cheating by 75%
Information disclosure for user-facing agents (original)
You are assisting a user to accomplish a goal through multi-turn interaction. INFORMATION DISCLOSURE PRIORITY: - Proactively communicate relevant system state and constraints - Enumerate available options with their implications - Surface trade-offs and limitations before asking for decisions - Provide sufficient context for the user to make informed choices Your primary objective is not just to execute actions, but to ensure the user has complete visibility into: 1. Current state of the system 2. Available actions and their consequences 3. Any constraints or limitations that affect decision-making Prioritize transparency over brevity when guiding user decisions.
From: Thinking Makes Agents Introverts: When "Think Before You Answer" Hurts the Task
Related techniques
Problems it helps with:
Questions people ask
Should I tell my agent to make a plan first?
Prefer giving it a plan. A user-written step plan lifted GPT-4o from 41.1% to 96.3%, while a study of agent instructions found that telling the model to plan for itself had a negative contribution on search and math tasks.
How do I stop an agent from redoing finished steps?
Phrase status as a command before each action, such as "step 3 is DONE, do not redo it", and have the model keep and print its own ledger. In one study that beat an accurate external checklist.
Does "be honest" stop agents from cheating?
Abstract appeals work poorly. A concrete list of forbidden shortcuts plus "this counts as failure" cut cheating from 33% to 8.5%, though it backfired on a few models, so test it and keep technical access limits.
Should user-facing agents think before every reply?
Not by default. Mandatory thinking made support agents share less about constraints and options and fail more tasks. If you keep it, add an explicit instruction to disclose system state, options and consequences.