An AI agent is a system in which a model pursues a goal by repeatedly deciding which action to take (usually calling a tool), observing the result and deciding what to do next, until the goal is met or it stops.

The difference between an agent and the AI features most systems have today is who decides the steps. In a workflow, you write the steps and the model fills in parts of them. In an agent, the model chooses the steps.

A spectrum, not a switch

  1. Assistant: a model answers or drafts; a human does everything else.
  2. Workflow: fixed steps defined in code, with model calls at some of them. This is predictable, testable and often all you need.
  3. Agent: the model chooses which tools to use and in what order, within limits you set.
  4. Multi-agent: several specialised agents collaborating or handing work to each other.

The same rule applies as everywhere else on this site: use the simplest approach that works. A deterministic workflow with a couple of model calls is easier to test, cheaper to run and easier to explain than an agent. Use agents where the path to the goal genuinely can’t be known in advance.

The anatomy of an agent

The agent loop inside guardrailsGoal& instructionsModeldecides next stepToolsvia MCP / APIsEnvironmentwhere effects landObservationresults, errorsGuardrails outside the model: identity, least privilege,budgets, step limits, human approval for irreversible actions
The model chooses actions in a loop; everything it can touch sits inside guardrails enforced outside the model.

Treat agents like new team members

A useful way to think about an agent is as a new and very fast, but inexperienced, member of the team. You wouldn’t give a new starter production admin rights on their first morning, with no explanation of the team’s goals and no one checking their work. The same thinking that makes good teams works for agents:

Earn autonomy with evidence

We recommend a ladder of autonomy, climbed one rung at a time for each type of task:

LevelThe agent…Humans…
Suggestproposes actions or draftsdecide and act
Act with approvalprepares a change (for example a pull request)review and approve every change
Act within guardrailsacts on its own inside hard limitsreview samples and exceptions
Autonomousacts and reportsmonitor outcomes

Move up only when the evidence (evals, review outcomes, incident history) says it’s safe, and move back down quickly when it doesn’t. Irreversible or high-impact actions, such as deleting data, spending money, changing permissions or contacting customers, should always need explicit human approval.

Give an agent a goal, a boundary and a way to check its work. Never just a goal.

Security and reliability

One of the most promising uses of agents is building and running infrastructure. See Outcome-Driven Infrastructure.