Planning

In AI, planning is working out a sequence of actions that will take a system from its current situation to a goal; for AI agents it means deciding the steps of a task before and while carrying them out.

Planning is one of the oldest branches of AI. Automated planning starts with a description of the current state, a goal and the actions available, and searches for a sequence of actions that reaches the goal. STRIPS, developed by Richard Fikes and Nils Nilsson at SRI International in 1971, described each action by its preconditions, which must hold before it can run, and its effects. STRIPS and PDDL, the Planning Domain Definition Language, remain among the most commonly used languages for classical planning.

Language model agents plan differently. They usually write the plan in plain language, as a list of steps, then carry it out and revise it when tool results come back. Plan-and-Solve prompting, presented at ACL 2023, asked models to first devise a plan that divides a task into subtasks and then follow it, aimed at errors where the model skips a step. ReAct goes further and interleaves reasoning with actions, so the plan updates as observations arrive. Claude Code, for example, has a plan mode in which a research subagent gathers context before a plan is proposed.

Take an agent asked to organise a team away day. A sensible plan is to check calendars for a free date, shortlist venues, compare prices, then draft an email for a manager to approve. The result of each step changes the next: if no venue is free on the chosen date, the plan has to loop back. Good planning means knowing which steps depend on which, and when to stop and ask.

Whether language models can really plan is disputed. PlanBench, a benchmark built from domains used by the planning research community, found in 2022 and 2023 that plan generation fell short even for state-of-the-art models. In a 2024 ICML position paper, Subbarao Kambhampati and colleagues argued that autoregressive models cannot plan or check their own plans by themselves, and proposed pairing them with external verifiers. Another approach has the model translate a problem into PDDL and hand it to a classical planner.

In practice, an agent's written plan is one of the most useful things to review before letting it act. Plans checked against something outside the model, such as tests, a validator or a person, are more reliable than plans the model only checks itself. A confident plan is still not a correct one.

Common questions

What is planning in AI agents?

It is the agent's process of deciding what steps to take to reach a goal, in what order, and revising those steps as it learns more. Language model agents usually write the plan out in text, carry out the steps with tools and update the plan when results come back.

Can large language models plan?

They can produce plausible plans for many everyday tasks, but research benchmarks such as PlanBench have found them weak at generating correct plans in formal planning problems. Some researchers argue they should be paired with external checkers rather than trusted to plan alone.

What is the difference between planning and reasoning?

Reasoning is drawing conclusions from information, such as working through a maths problem. Planning is a kind of reasoning about actions: choosing a sequence of steps that changes the world from where it is to where you want it. An agent needs both, since it has to reason about what each step will do.

What are STRIPS and PDDL?

STRIPS is an early planning system from SRI International, developed in 1971, that describes actions by their preconditions and effects. PDDL, the Planning Domain Definition Language, is one of the most commonly used languages for writing classical planning problems, and benchmarks such as PlanBench draw on domains from the International Planning Competition.

Finding more

Search for "automated planning", "LLM planning benchmark" or "LLM-Modulo" to see both the classical field and the debate about language models. Good sources include research papers on arXiv and in conference proceedings such as ICML, ACL and NeurIPS, textbooks on AI planning, and encyclopedia articles that cite them. Treat product claims that an agent can plan anything with care unless they show how plans are checked.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.