Contents
Figure 1: Planning in AI: STRIPS and PDDL Explained — a heap of building blocks, which is roughly what the blocks world looks like before a planner puts it in order
Your robot vacuum bumps into the same chair leg for the tenth time. Annoying, right? That's a planning failure, and STRIPS and PDDL exist to prevent exactly that kind of mess.
I first met these two in a grad-level AI course. I spent an entire weekend trying to make a virtual robot stack three blocks in the right order. The robot won. Twice. Let me save you that weekend.
What Is Planning in AI?
AI planning means finding a sequence of actions that takes a system from a starting state to a goal state. You tell the computer where you are, where you want to end up, and what moves it can make. The computer figures out the route.
Think of a GPS, but for anything. Robots, warehouse schedulers, game characters, and spacecraft all rely on the same basic idea. Ever wondered how a rover on Mars decides what to do when nobody can steer it in real time? Planning handles that.
Planning differs from simple decision-making because order matters. You can't unlock a door after you walk through it. A planner has to reason about what each action needs and what each action changes.
STRIPS: The Grandfather of AI Planning
Researchers at Stanford built STRIPS (Stanford Research Institute Problem Solver) in 1971 [1]. The name describes the planner at first, but people now use it for the formal language behind it. Fifty-plus years later, it still shapes how we think about planning.
I love STRIPS because it keeps things brutally simple. It describes the world with a handful of logical facts and nothing else. No fluff.
The Three Ingredients
Every STRIPS problem contains three parts:
- Initial state: the facts that hold true right now (for example, "block A sits on the table").
- Goal state: the facts you want to make true (for example, "block A sits on block B").
- Actions: the moves available, each with preconditions and effects.
Each action carries preconditions, which must hold before the action runs. It also carries effects, which split into an add list (new facts) and a delete list (facts that stop being true).
A Quick Blocks World Example
Picture a table with blocks on it. You want to stack block A on block B. The action stack(A, B) works like this:
- Preconditions: the hand holds A, and B has a clear top.
- Add list: A sits on B, the hand is empty, A has a clear top.
- Delete list: the hand holds A, B no longer has a clear top.
Simple, right? The planner just chains actions like this until the goal facts all hold. It sounds easy until the planner has to pick between a few thousand possible chains. :/
The Big Assumption: Closed World
STRIPS uses the closed-world assumption. If a fact isn't in the current state, the system treats it as false. That keeps the math clean, but it also means the language can't express uncertainty or "I don't know."
PDDL: STRIPS Grew Up
STRIPS worked, but every research team wrote their own flavor of it. Comparing planners felt like comparing apples to a very confusing fruit salad. So in 1998, researchers created PDDL (Planning Domain Definition Language) for the first International Planning Competition [2].
IMO, PDDL does for planning what SQL did for databases. It gives everyone one shared language, so you can write a problem once and test it on many planners.
What PDDL Adds on Top of STRIPS
PDDL keeps the STRIPS core and then piles on extras. Newer versions support [5]:
- Types: you label objects (robot, block, room) so the planner doesn't waste time on nonsense combinations.
- Negative preconditions: you can say "this must not be true."
- Conditional effects: an action does different things depending on the situation.
- Numeric fluents: you track quantities like fuel, money, or battery charge.
- Durative actions: actions take time, which lets you schedule things.
Each extension makes the language more expressive. Each one also makes planners work harder, so you pay for the power.
Domain and Problem Files
PDDL splits everything into two files. The domain file describes the rules of the world: predicates and actions. The problem file describes one specific puzzle: objects, the starting state, and the goal.
This separation is my favorite design choice. You write the domain once, then throw as many problems at it as you like. Here's a tiny domain snippet:
(:action stack
:parameters (?x ?y - block)
:precondition (and (holding ?x) (clear ?y))
:effect (and (on ?x ?y) (clear ?x) (handempty)
(not (holding ?x)) (not (clear ?y))))
Notice how it mirrors the STRIPS action. The not terms play the role of the delete list. If you understand STRIPS, you already read most of PDDL.
STRIPS vs. PDDL: How They Compare
People often treat these as rivals. They aren't. STRIPS is a model, and PDDL is a language that can express that model and much more.
| Feature | STRIPS | PDDL |
|---|---|---|
| Purpose | Formal planning model | Standard planning language |
| Object types | No | Yes |
| Numeric values | No | Yes (later versions) |
| Time and duration | No | Yes (PDDL 2.1+) |
| Planner support | Limited, mostly academic | Wide, with many solvers |
If you want to learn the fundamentals, start with STRIPS. If you want to build something real, write PDDL. Most people do both, in that order.
Planners You Can Actually Run
Writing PDDL feels pointless until you watch a planner solve it. Several free tools read PDDL files and spit out plans:
- Fast Downward: a popular, well-documented planner that wins competitions regularly [4].
- FF (Fast-Forward): an older planner that I still use for quick experiments.
- LPG-td: a good pick when your problem involves time and numbers.
- Online editors: web-based tools let you paste in a domain and problem without installing anything.
FYI, I recommend starting with an online editor. Installing a planner from source taught me more about compiler errors than about planning. Save the command line for later.
Where Planning Shows Up in Real Life
Planning sounds academic, but you meet it constantly. Warehouse robots use it to route packages without crashing into each other. Game studios use planners so non-player characters seem to think ahead.
NASA has used planning systems for spacecraft operations too. A probe far from Earth can't wait for instructions, so onboard software plans its own tasks. That's a pretty high-stakes version of my blocks-world headache.
You also find planning in logistics, manufacturing schedules, and automated assistants. Anywhere a system must chain actions toward a goal, planning belongs in the conversation.
Common Mistakes Beginners Make
I made all of these, so learn from my pain:
- Forgetting delete effects. Your planner then believes a block sits in two places at once, and it will happily exploit that.
- Modeling too much detail. Every extra predicate multiplies the search space. Keep the model lean.
- Skipping types. Untyped domains let the planner try silly combinations, which slows everything down.
- Ignoring plan validation. Always run a validator tool on your output. A plan that looks right can still break a rule.
Ever stared at a "no solution found" message and wondered whether your logic or the planner failed? Usually your logic did. Check your preconditions first.
Best Book to Read
| Cover | Book | Description | Get it |
|---|---|---|---|
![]() |
Automated Planning: Theory and Practice | the standard reference on STRIPS, PDDL, plan-space and state-space search, and the heuristics that make modern planners fast. | View on Amazon |
As an Amazon Associate I earn from qualifying purchases. Links on this page are affiliate links, and I may earn a commission at no extra cost to you.
Read it after your first domain file runs. The chapters on delete effects and grounded operators are far easier to absorb once a planner has already surprised you with a nonsense plan.
Wrapping Up
STRIPS gave AI planning a clean, logical foundation: states, actions, preconditions, and effects. PDDL turned that foundation into a shared language that planners, researchers, and hobbyists all speak.
Start small. Model a blocks world, run it through a planner, and break it on purpose to see what happens. You will learn more from one broken domain file than from ten pages of theory.
So here's your next step: open an online PDDL editor and write a domain for something silly, like making your morning coffee. If your planner can't solve it, congratulations. You've officially joined the club, and the coffee can wait. :)
Frequently Asked Questions
What is planning in AI?
AI planning finds a sequence of actions that moves a system from an initial state to a goal state, given a set of actions with preconditions and effects. Order matters, because each action changes the world for the next one. Robots, warehouse schedulers, game characters, logistics systems and spacecraft autonomy all use it.
What is the difference between STRIPS and PDDL?
STRIPS is a planning model: states are sets of logical facts, and actions have preconditions plus add and delete lists. PDDL is the standard language used to write those models, and it extends them with types, negative preconditions, conditional effects, numeric fluents and durative actions. STRIPS is the idea, PDDL is the file format.
What is the closed-world assumption?
Under the closed-world assumption, any fact not listed in the current state is treated as false. It keeps STRIPS logic simple and exact, but it means the language cannot express uncertainty, unknown values or partial knowledge. Every fact must be either present or absent.
What are add and delete effects in STRIPS?
An action's effects are split into two lists. The add list contains facts that become true after the action, and the delete list contains facts that stop being true. Forgetting a delete effect is the most common modeling bug, because the planner then believes contradictory facts hold at the same time and exploits them.
Which planner should I use to try PDDL?
Start with an online PDDL editor so you can paste a domain and problem without installing anything. When you want a local planner, Fast Downward is well documented and competition proven, FF is small and fast for experiments, and LPG-td handles time and numeric features. Always validate the resulting plan.
Sources
[1]Fikes and Nilsson, STRIPS: A New Approach to the Application of Theorem Proving to Problem Solving (1971) - the original STRIPS paper, defining states as fact sets with add and delete lists: sciencedirect.com[2]McDermott et al., PDDL: The Planning Domain Definition Language (1998) - the language specification produced for the first International Planning Competition: cs.yale.edu[3]Ghallab, Nau and Traverso, Automated Planning: Theory and Practice (2004) - the standard textbook on planning models, PDDL, state-space search and planning heuristics: elsevier.com[4]Malte Helmert, The Fast Downward Planning System (2006) - the architecture behind one of the most widely used competition planners: jair.org[5]Fox and Long, PDDL2.1: An Extension to PDDL for Expressing Temporal Planning Domains (2003) - numeric fluents and durative actions, the features that make timed planning possible: jair.org
