PEAS stands for performance measure, environment, actuators, sensors, a framework for writing a task environment description that specifies what an intelligent agent must achieve, where it operates, how it acts and what it can perceive. In the study of AI agents, PEAS is the standard first step of agent design, popularized by the classic artificial intelligence textbook by Russell and Norvig.
The framework forces designers to state the problem before choosing an architecture. A precise PEAS description reveals whether a simple reflex agent is enough or whether the task calls for memory, planning, a utility function or learning, and it defines how the finished agent will be judged.
The four components of a PEAS description
A PEAS description consists of four complementary specifications that together define the task environment. Each answers a different design question, and leaving one vague usually produces an agent that optimizes the wrong thing or cannot observe what it needs.
| Component | Design question | Typical content |
|---|---|---|
| Performance measure | What counts as success | Objective criteria, costs, constraints |
| Environment | Where the agent operates | Objects, other agents, rules, dynamics |
| Actuators | How the agent acts | Motors, displays, API calls, messages |
| Sensors | What the agent perceives | Cameras, inputs, logs, tool results |
The performance measure is defined externally, by the designer or user, and evaluates the sequence of environment states that the agent causes. It is not the agent’s own opinion of success. Russell and Norvig stress designing it according to what is wanted in the environment, not according to how the agent is expected to behave.
Actuators and sensors define the agent’s interface with the world. For a software agent, actuators are typically tool calls and outputs, and sensors are user messages, file contents, web pages or tool responses.
Classic PEAS examples
Textbook examples illustrate how the same framework scales from physical robots to pure software agents. The comparison below shows how each component changes with the domain.
| Agent | Performance measure | Environment | Actuators | Sensors |
|---|---|---|---|---|
| Automated taxi | Safe, fast, legal, comfortable trips | Roads, traffic, pedestrians, weather | Steering, brakes, accelerator, signals | Cameras, lidar, GPS, speedometer |
| Medical diagnosis system | Healthy patients, reduced costs | Patients, hospital, staff | Questions, tests, diagnoses, referrals | Symptoms, findings, patient answers |
| Part-picking robot | Share of parts in correct bins | Conveyor belt, parts, bins | Jointed arm and gripper | Camera, joint angle sensors |
| Coding agent | Passing tests, correct changes, low cost | Repository, terminal, CI pipeline | File edits, shell commands, commits | File reads, test output, error logs |
The coding agent row shows that PEAS remains useful for language-model-based agents. Its actuators and sensors correspond closely to the tool schema the agent is given.
From PEAS to environment properties and agent type
PEAS is usually followed by a classification of environment properties, which determines the agent architecture. The environment and sensor entries of the PEAS description provide the evidence for each property.
| Property | Options | Design consequence |
|---|---|---|
| Observability | Fully or partially observable | Partial observability needs internal state |
| Agents | Single-agent or multi-agent | Multi-agent needs coordination or game reasoning |
| Determinism | Deterministic or stochastic | Stochastic needs probabilistic reasoning |
| Episodes | Episodic or sequential | Sequential needs planning ahead |
| Dynamics | Static or dynamic | Dynamic needs timely decisions |
| State space | Discrete or continuous | Continuous needs approximation methods |
| Knowledge | Known or unknown rules | Unknown rules need learning |
A fully observable, episodic and static task can be handled by a simple reflex agent. A partially observable environment requires a model-based reflex agent, while conflicting goals and uncertainty point to a utility-based agent. Unknown dynamics call for a learning agent.
Applying PEAS to modern AI agents
For agents built on large language models, PEAS works as a structured requirements checklist. Teams write the description before selecting a framework, and the result guides tool design, permissions and evaluation.
- Performance measure becomes the evaluation suite: task success rate, cost per task, latency and safety violations.
- Environment defines the sandbox: which systems, data and users the agent can touch.
- Actuators map to tools and agent permissions, which limits the damage of a wrong action.
- Sensors determine context: what the agent can read, and what it can only infer.
Writing the performance measure first exposes hidden trade-offs early. A support agent rewarded only for closed tickets may close tickets prematurely, so the measure should also include customer satisfaction and reopened cases.
Common mistakes in PEAS analysis
Most errors in a PEAS description come from confusing the components with one another or from stating them too loosely to test. The table lists frequent problems and their corrections.
| Mistake | Consequence | Fix |
|---|---|---|
| Vague performance measure | No way to evaluate the agent | Use measurable criteria with priorities |
| Measure based on agent behavior | Agent games the metric | Measure outcomes in the environment |
| Sensors listed as data, not channels | Missing perception limits | Name each input channel and its noise |
| Actuators without limits | Unsafe or costly actions | Specify allowed actions and permissions |
| Ignoring other agents | Wrong environment class | List people and systems that react |
A frequent misconception treats PEAS as an architecture. It is a problem specification, not a design for how the agent computes its decisions; the architecture comes afterward.
Explained without jargon
PEAS is a short checklist for describing a job before building a machine to do it. It asks four questions. How will we judge success? Where does the work happen? What can the machine do? What can it notice?
Think of hiring a new delivery driver. You explain the goals, the routes, the van and its controls, and the mirrors and phone they will use. Without those four answers, nobody can do the job well. An AI agent needs the same clear brief.
A typical use case
A logistics company plans an AI agent that reschedules deliveries when customers report problems. Before writing any code, the team drafts a PEAS description. The performance measure is the share of requests resolved without human help, delivery cost and complaint rate. The environment includes customers, the order system and courier schedules.
The actuators are three tools: update delivery slot, send message and escalate to staff. The sensors are customer chat messages, order records and courier availability. The analysis shows a partially observable, multi-agent and dynamic environment, so the team adds agent memory and a human-in-the-loop step for refunds. In a pilot with 2,000 requests, the agent resolves about 70 percent on its own, and escalation rules keep refund errors near zero.