← Blog

Model-Based Reflex Agents Explained

August 28, 2026

A model-based reflex agent is an agent that keeps an internal picture of the world so it can act sensibly when its sensors don't show it everything.

That one sentence carries the whole idea. A simple reflex agent decides purely from what it perceives right now. A model-based one remembers, and uses that memory to fill in what it currently can't see.

The classic formulation comes from the agent taxonomy in Russell and Norvig's Artificial Intelligence: A Modern Approach, which sets out four basic kinds of agent program:

Agent typeDecides usingHandles partial observabilityHas goals
Simple reflexCurrent percept onlyNoNo
Model-based reflexCurrent percept + internal stateYesNo
Goal-basedState + a goal to reachYesYes
Utility-basedState + a measure of how good outcomes areYesYes, ranked

Model-based reflex is the second of the four, and it's the one where agents stop being trivially simple.

Learning is not a fifth rung on that ladder, which is the detail most summaries get wrong. In Russell and Norvig's own framing, learning agents are built by taking any of the four types above and adding a learning component to it. Learning is a separate dimension you can layer onto a simple reflex agent or a utility-based one alike — so "learning agent" describes how an agent improves, not where it sits in the sophistication ordering. A learning model-based reflex agent is a perfectly ordinary thing.

Why the Simple Version Breaks

A simple reflex agent runs condition-action rules: if you observe X, do Y. It's fast, predictable, and needs no memory.

It fails the moment the right action depends on something you can't currently see.

The standard example is a vacuum robot. Its sensor tells it whether the square it's on is dirty. A simple reflex rule — if dirty, clean; otherwise move — works until you ask "have I already cleaned the rest of this room?" The sensor can't answer that. The agent has no way to distinguish "I just started" from "I've done everything except this square," so it wanders indefinitely.

This is partial observability, and it's the normal condition for anything operating in the real world. Sensors are limited, the world is bigger than the current view, and much of what matters happened in the past.

What the "Model" Actually Is

Two pieces of knowledge, plus the state they maintain:

  1. How the world changes on its own — doors get opened by other people, prices move, files arrive
  2. How the agent's own actions change the world — moving right means being one square right

Combine those with the previous internal state and the current percept, and you can update your best guess about the world. That guess is the internal state, and it's what the agent's rules run against.

The loop:

  • Take the current percept
  • Update internal state using the previous state, the last action, and the two models above
  • Pick a rule that matches the updated state
  • Act, and remember the action

It is still reflex-driven. That's the part people miss. A model-based reflex agent has no goal and does no planning — it applies condition-action rules to a richer picture. Give it a goal to reason toward and you've built a goal-based agent, which is the next category.

Concrete Examples

Vacuum robot with a map. It builds a picture of the room, remembers where it has been, and knows unvisited areas exist even though the sensor shows only the current spot.

Thermostat with occupancy history. A simple reflex thermostat heats when it's cold. A model-based one holds a picture of the building — this room warms slowly, nobody's here on weekends — and acts on that rather than only on the current reading.

Car cruise control with tracking. Maintains an estimate of the vehicle ahead even when a sensor reading momentarily drops out. A simple reflex system would react to a lost reading as if the road had cleared, which is exactly the failure you don't want.

Inventory reordering. The current shelf count is the percept; the internal state tracks orders already placed but not yet delivered. Without that state, the agent reorders every day because the shelf still looks empty. This one is worth noticing — it's an ordinary business system, and it's a textbook model-based reflex agent.

How This Maps to LLM Agents

The classical taxonomy predates language models by decades, and the mapping is genuinely useful rather than academic.

Most LLM agents are goal-based, not reflex. You give them an objective and they choose steps toward it. That's a category above what's described here.

But the state problem is identical, and it's where LLM agents most commonly fail. An agent that forgets what it already tried repeats it. One that can't distinguish "I checked and found nothing" from "I haven't checked" wastes its budget. Conversation history, scratchpads, and memory stores are all engineering answers to exactly the problem the model-based reflex agent introduced.

The classical framing also explains a common design error: reaching for a goal-based agent when a model-based reflex agent would do. If your rules are known and only the state is hard, you don't need a model reasoning about steps — you need reliable state plus fixed rules. That's cheaper, faster, and far more predictable. It's the same argument as agentic workflows versus fixed pipelines, one abstraction layer down.

For how these ideas show up in modern systems, LLM agents covers what adding tools and a loop to a model actually changes, and agentic AI architecture covers where state lives in a production design.

Where It Still Falls Short

The model can be wrong. Internal state is a best guess, and guesses drift. An agent confidently acting on a stale picture is worse than one that knows it's uncertain.

No goals means no prioritisation. It can act appropriately for the state it believes it's in, but it cannot weigh two options or pursue an objective. That's the reason goal-based and utility-based agents exist.

State grows. Deciding what to remember and what to discard is the real engineering problem, and it's the same problem LLM agent builders hit under the name "context management."

Key Points

  • A model-based reflex agent keeps internal state so it can act under partial observability
  • The "model" is two things: how the world changes by itself, and how the agent's actions change it
  • It's still reflex-driven — condition-action rules over a richer picture, with no goals and no planning
  • Partial observability is the normal case, which is why the simple reflex agent is mostly a teaching device
  • Ordinary business systems fit this pattern, like inventory reordering that tracks orders in flight
  • LLM agents are usually goal-based, but they inherit the same state problem — and memory, scratchpads, and context management are the modern answers to it

FAQ

What is a model-based reflex agent in simple terms?

An agent that remembers. It keeps an internal picture of the world, updates it as it acts and perceives, and uses that picture — rather than only what it can currently sense — to decide what to do.

How is it different from a simple reflex agent?

A simple reflex agent decides only from the current percept and has no memory, so it fails whenever the right action depends on something it can't see. A model-based one maintains internal state, which lets it handle partial observability.

What is the "model" in a model-based reflex agent?

Knowledge of how the world evolves independently of the agent, and how the agent's own actions change it. Those two, applied to the previous state and the current percept, produce the updated internal state.

Is a model-based reflex agent the same as a goal-based agent?

No. A model-based reflex agent applies fixed condition-action rules to its internal state. A goal-based agent reasons about which actions bring it closer to an objective. Adding goals moves you to the next category in the taxonomy.

What's a real-world example?

Inventory reordering that tracks orders already placed but not yet arrived. The shelf count is the percept; the pending orders are internal state. Without that state the system reorders daily because the shelf still looks empty.

Are ChatGPT-style AI agents model-based reflex agents?

Usually not — they're closer to goal-based, since you give them an objective and they choose their own steps. They do face the same state problem though, which is why conversation history, memory, and context management matter so much in practice.

Is a learning agent the fifth type after utility-based?

No, and this is a common mix-up. Russell and Norvig describe four basic kinds of agent program — simple reflex, model-based reflex, goal-based, and utility-based — and then say a learning agent is made by taking any of those and adding a learning component. Learning sits on a different axis from the four, so a model-based reflex agent that improves its rules from experience is still a model-based reflex agent.

Why learn the classical agent taxonomy at all?

Because it names the design decision precisely. Knowing whether your problem needs state, goals, or a utility ranking tells you how much machinery to build — and it frequently reveals that a simpler category would have worked.