# What is an AI agent?

An AI agent is a system in which a language model decides, step by step, which tools to use and what to do next to finish a task, checking the result of each step before the next. A fixed script decides nothing; an agent directs its own process.

## Agents, workflows and chat

Anthropic's engineering guide draws a useful line between two kinds of AI systems:

- A **workflow** runs a language model and tools along steps a developer fixed in advance: summarise, then classify, then file a ticket.
- An **agent** lets the model choose the steps. It reads the task, picks a tool, looks at what came back, and decides what to do next, in a loop, until it is done or it needs you.

A plain chat with an assistant is neither: you ask, it answers. When the same assistant starts searching the web, running code or calling [tools](https://ai-powered.com/academy/glossary/tool-call) on its own to finish your request, it is acting as an agent.

*Diagram: The agent loop.* An agent gets a goal, decides on a step, acts with a tool, looks at the result and repeats until the goal is met or it needs you.

## What makes an agent work

- **Tools**: without them an agent can only talk. [MCP](https://ai-powered.com/academy/glossary/mcp) servers and built-in tools give it actions to take.
- **Feedback**: the result of every step (a search result, an error, a test run) goes back to the model, so it can correct course.
- **A stopping point**: a limit on steps, a finished task, or a checkpoint where it asks you.

## When to use one

The same guide recommends starting with the simplest thing that works. A single well-written prompt, or a fixed workflow, is cheaper, faster and more predictable. Agents suit open-ended tasks where you can't list the steps ahead of time. They cost more and their mistakes can add up over many steps, so give them checkpoints where a person reviews the work, and try them somewhere safe first.

## In the directory

The [AI agents](https://ai-powered.com/agents) section lists hosted agents, open-source agents and frameworks for building them. Many agents can also use [agent skills](https://ai-powered.com/academy/glossary/agent-skill) and MCP servers.

## Sources

Official documentation, checked on 19 November 2026:

- [Building effective agents (Anthropic, 19 December 2024)](https://www.anthropic.com/engineering/building-effective-agents)
- [Tool use with Claude (Claude docs)](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)

## Related terms

- [Tool call](https://ai-powered.com/academy/glossary/tool-call): A tool call is a structured request from an AI model to run one of the functions it was given, with arguments that match the function's input schema. The app runs the function, sends the result back to the model, and the model uses it to answer or to decide its next step.
- [MCP](https://ai-powered.com/academy/glossary/mcp): MCP (Model Context Protocol) is an open standard for connecting AI applications to outside tools and data. An AI app connects to small programs called MCP servers, asks each one what it offers, and calls those tools when a task needs them.
- [Agent skill](https://ai-powered.com/academy/glossary/agent-skill): An agent skill is a folder that teaches an AI agent how to do one kind of task. It holds a SKILL.md file (a name, a description of when to use it, and instructions) and can include scripts, templates and reference files. The agent loads it only when a task matches the description.
