Glossary

Agent planning

How an AI agent works out the steps needed to reach a goal before and during execution, and revises them as results come in.

Agent planning is the part of an AI agent that decides which steps to take to reach a goal and in what order. Instead of reacting one tool call at a time, a planning agent sketches a sequence of steps, works through them, and revises the plan when a step fails or returns something unexpected. Planning matters most for tasks with many steps, where an agent that only looks one move ahead tends to wander, repeat itself or stop early.

How agent planning works

Planning sits inside the agent loop. The model first turns the goal into a list of steps, usually through task decomposition. The agent then executes the steps with its tools, checks each result, and either moves on or updates the remaining plan. The plan itself is kept somewhere the agent can read back on each pass, such as an agent scratchpad or a to-do list held in agent state, so it survives as the context window fills up.

Most of the reasoning comes from the model. Prompting techniques such as chain-of-thought ask it to reason step by step before acting, and reasoning models do more of that thinking internally, spending extra test-time compute on the plan before the first tool call.

Common planning approaches

Approach

How it works

Suits

Interleaved (ReAct)

Reason about one step, act, observe, repeat

Short tasks where the next step depends on the last result

Plan and execute

Write the full plan first, then carry it out step by step

Tasks with a predictable shape, such as reports or migrations

Replanning

Plan first, then revise the remaining steps after each result

Long tasks where early findings change what comes next

Hierarchical

A planner assigns sub-goals to workers that plan their own steps

Large tasks split across several agents

Search-based

Explore several candidate plans and keep the most promising

Problems where a wrong early choice is costly

The interleaved style is the one described under ReAct agent. The hierarchical style is how a supervisor agent coordinates subagents, and it underpins most hierarchical agents and multi-agent systems. Search-based planning, such as the Tree of Thoughts method, trades extra model calls for better choices at each branch.

Why agent plans go wrong

Plans fail in a few predictable ways. The first plan is often written with too little information, so it assumes things the agent has not checked. Long plans drift: by step fifteen the agent has lost track of why step three mattered, a symptom of context rot. Agents also overcommit, carrying on with a plan after a step has shown it cannot work, or they loop, retrying the same failed action. And a plan built on stale facts is wrong from the start, which is why retrieval quality and stale knowledge matter as much as the planner.

The usual fixes are to replan after every few steps, to give the agent a way to check its own output through self-correction, to cap iterations and budget, and to show the plan to a person before risky steps, a form of human-in-the-loop review. Agent tracing makes it possible to see where a plan went wrong after the fact.

Planning across runs

Most planning happens within a single run and disappears when the run ends. Agents that work over days need the plan to persist. That means storing open tasks somewhere durable, remembering what worked last time as procedural memory, and picking up from saved state, which overlaps with long-running agents and durable execution.

Agent planning with Exabase

Exabase Workers plan inside each run with the built-in scratchpad-todo-write and scratchpad-todo-read tools, which keep a working to-do list as the Worker searches, reads and writes in its Base. For plans that should outlast a run, the task tools (task-create, task-edit, task-list) store tasks in the Base itself, where the next run or a person can pick them up; the Worker tools reference lists both sets.

For agents you build yourself, Exabase supplies the context a planner depends on. Memory keeps facts and preferences current across sessions, so a plan starts from what is true now, and Deep Search returns the specific passage a step needs instead of whole documents. The planning logic stays in your code and your chosen framework. Deep research agents are a typical use, and the knowledge base solution shows how a scheduled Worker keeps the underlying material fresh.

FAQs

What is planning in AI agents?

Planning is how an AI agent breaks a goal into an ordered set of steps, carries them out with its tools and revises the remaining steps as results come in.

What is the difference between planning and reasoning?

Reasoning is the model working through a problem in its output or internally. Planning uses that reasoning to produce a sequence of actions, which the agent then executes and updates.

What is plan-and-execute?

A design in which the agent writes the whole plan first and then carries out each step, often with a cheaper model for execution. It is efficient for predictable tasks and weaker when early results should change the plan.

Do reasoning models make planning unnecessary?

No. Reasoning models write better plans, but the agent still has to track the plan, check results and replan when a step fails. Those parts live in the agent’s code and state.

How do multi-agent systems plan?

Usually hierarchically: a supervisor splits the goal into sub-goals and hands each to a specialist agent that plans its own steps. See supervisor agent and single agent vs multi-agent.

Which frameworks support agent planning?

Most agent frameworks support planning patterns, either built in or as examples. The best AI agent frameworks roundup and CrewAI vs AutoGen compare how they approach it.

Related pages: Task decomposition, Agent loop, ReAct agent, Self-correction, Supervisor agent, Agent scratchpad, Reasoning models, Workers, Research agents use case, LangGraph vs OpenAI Agents SDK.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.