Agents and tools · Explainer
What an AI agent is
On this page
The short answer
An AI agent is a model given tools and permission to decide its own next step, running in a loop until the job is done or a limit stops it. What separates an agent from a regular AI feature is who chooses the steps: in a workflow your code decides, and in an agent the model does. That single change is what makes agents useful and what makes them expensive.
Everything else about them follows from the loop.
How the loop works
A normal request is one round trip: you ask, the model answers, done. An agent turns that into a cycle.
- Someone gives it a task, as a command or a conversation.
- It decides what to do first and asks for a tool to be run.
- The application runs the tool and hands back the result.
- It reads the result, judges progress, and decides the next step.
- Repeat, until the task is finished or a limit is reached.
Anthropic describes it in those terms: an agent plans and works on its own, coming back to a person only when it needs information or a judgement call. What keeps it honest is checking reality at every step, using what the tools returned rather than what it expected, to assess its progress.
Step four is what people mean by autonomy. The model isn’t following a script through branches somebody wrote. It is looking at what came back and choosing.
Agents, workflows, and chatbots
The word gets applied to almost anything with a model in it, which is why it has stopped being informative. The useful distinction is narrow and Anthropic states it directly: “Workflows are systems where LLMs and tools are orchestrated through predefined code paths. Agents, on the other hand, are systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks.”
| Who decides the steps | Good for | The failure looks like | |
|---|---|---|---|
| Assistant | Nobody. One question, one answer | Drafting, summarising, answering | A wrong answer you can see |
| Workflow | Your code, in advance | Well-defined tasks that repeat the same way | A branch nobody wrote |
| Agent | The model, at each step | Open-ended tasks where the steps aren’t knowable in advance | Twenty steps in the wrong direction, at full price |
Both of the last two count as agentic systems in Anthropic’s terminology. The distinction that matters operationally is predictability: a workflow does what it did last time, and an agent might not.
What an agent needs
An agent is not a model with a personality. It is a small amount of scaffolding around an ordinary API call.
A framework is not on that list. The scaffolding is a loop, a list of tools, and a stopping rule.
Why agents cost more
The cause is structural rather than a pricing quirk.
Every step is a full round trip, and every round trip carries the whole conversation so far, which is billed again each time. Step ten pays for steps one through nine. Add tool results, which are usually long, and the context grows with every iteration. A ten-step task does not cost ten times a single request. It costs considerably more.
Anthropic is direct about the trade: an agent buys better results with time and money, and the fact that it runs on its own means “higher costs, and the potential for compounding errors.”
Compounding is the second half of the problem. A model that is wrong occasionally is manageable when a person reads each answer. In a loop, a wrong step becomes the input to the next one, and the error is now a premise rather than an output.
When not to build one
The strongest argument against agents comes from the company selling them. Anthropic’s guidance opens with: “we recommend finding the simplest solution possible, and only increasing complexity when needed. This might mean not building agentic systems at all.”
The test is whether the steps are knowable in advance. If they are, a workflow is cheaper, faster, and predictable, and it fails in ways you can enumerate. If they aren’t, and the task needs that flexibility at scale, an agent earns its cost.
There is also a middle setting. A single well-constructed request with the right context solves a surprising share of what gets scoped as an agent, at a fraction of the cost and with none of the loop’s failure modes.
Common questions
Is an agent just a chatbot with tools?+
Does the agent run code by itself?+
How many steps should an agent be allowed?+
Why do agents get more expensive as they run?+
How many tools should one agent have?+
What is the biggest risk with agents?+
Keep learning