What is an AI agent?

An AI agent is a system that autonomously performs tasks, designing its own workflow with the tools it has (opens in a new tab). A chatbot answers a question. An agent gets an assignment and carries it out.

How it works

Behind an agent is a language model, an LLM. Anthropic describes agents as LLMs using tools in a loop (opens in a new tab): the model takes a step, looks at the result and then decides what the next step is. An agent gets such tools through MCP, for example.

When to use one, and when not?

Agents suit open-ended problems, where you can't predict how many steps are needed. They cost more and work more slowly, and an error in an early step can compound. For a well-defined task, a fixed sequence of steps is more predictable.

I work with AI agents myself, tuned to the way I work.

Back to the overview