What is an AI agent?
An AI agent is a language model in a loop: it plans a step, uses a tool, looks at the result, and repeats until the job is done.
Rung 1 Explain like I'm 6
Imagine asking a friend, "What is the weather?" They tell you what they remember. That is a chatbot.
Now imagine asking a helper, "Pack my bag for the picnic." The helper thinks, "First I should check the weather." They look out the window, see clouds, and pack an umbrella. Then they check the list again, find the sandwiches missing, and go make them. They keep going, step by step, until the bag is ready.
That helper is an AI agent. It does not just talk. It makes a plan, does something, looks at what happened, and decides what to do next, again and again, until the job is finished.
Rung 2 High-school level
An AI agent is a program built around a large language model (LLM) that can take actions, not only write text. It has three parts:
- The model, which reads the situation and decides the next step.
- Tools, such as web search, a calculator, a code runner, or an email sender. The model asks for a tool by writing a structured request; the program around it runs the tool and hands back the result.
- A loop. The result goes back into the model, which decides the next step. This repeats until the model says it is done or a limit is hit.
AI agent vs chatbot: a chatbot answers one message at a time. An agent pursues a goal over many steps and changes things in the world.
LLM vs AI agent: the LLM is the brain; the agent is the brain plus tools, memory and the loop. The code that runs that loop, manages tools and enforces limits is often called the harness.
Check yourself: What turns an LLM into an agent?
Giving it tools and running it in a loop, so it can act, see the result, and decide the next step.
Rung 3 Undergraduate level
The core loop, in pseudocode:
history = [goal]
while not done and steps < limit:
step = model(history) # think, then pick an action
if step.is_final: return step.answer
result = run_tool(step.tool, step.args)
history.append(step, result) # the observation
A 3-step trace for "How many days until the next public holiday?":
- Thought: I need today's date. Action:
get_date()→ 2026-11-18. - Thought: I need the holiday calendar. Action:
search("public holidays December 2026")→ 25 December. - Thought: 25 Dec minus 18 Nov is 37 days. Answer: 37 days.
This interleaving of reasoning and actions is the ReAct pattern from Yao et al. (2022), which showed that interleaving written reasoning with tool calls helped on question answering, fact checking and interactive decision-making tasks [1].
Two practical details matter. First, everything (goal, tool outputs, past steps) must fit in the model's context window, so long tasks need summarising or external memory. Second, tools are described to the model as names, descriptions and argument schemas; vague descriptions are a major cause of wrong tool calls.
RAG vs agentic AI: classic RAG retrieves once, then answers. An agent can treat retrieval as one tool among many and decide when to call it.
Rung 4 Graduate level
Building agents is mostly about trading autonomy for reliability.
Workflow vs agent. If the steps are known, hard-code them and call the model at fixed points. Use an open-ended loop only when the path depends on what the agent discovers. Fixed workflows are cheaper, faster and easier to test.
Error compounding. A task with many steps fails if any step fails. If each step independently succeeded 95% of the time, 20 steps would all succeed only about 36% of the time (0.95^20). Real errors are not independent, but the lesson holds: long tasks need checkpoints, verification and the ability to retry.
Measuring progress. METR's 2025 study measured the length of tasks (in human-expert time) that models complete with 50% reliability, and found this "time horizon" had doubled roughly every seven months since 2019 [3]. Reliability at higher success thresholds is much shorter, which matches the experience that agents are impressive on average and brittle in the tail.
Tool integration. Each app used to write custom glue for every tool. The Model Context Protocol (MCP), released by Anthropic in November 2024, standardises how models connect to data sources and tools [2], so a tool written once works across clients.
Safety. An agent that reads untrusted text (web pages, emails) and also holds powerful tools can be steered by instructions hidden in that text. Common controls: least-privilege tools, human approval for irreversible actions, sandboxes, and logging every action.
Check yourself: If each step of a 20-step task succeeds 95% of the time independently, roughly how often does the whole task succeed?
About 36% (0.95 to the power 20).
Rung 5 PhD level
Agents revive a classic AI framing: a policy that maps observations to actions in an environment. What is new is that the policy is a pretrained language model conditioned on text, so the "state" is whatever fits in the context window and the "action space" is free text parsed into tool calls.
Open problems:
- Credit assignment over long horizons. Training agents with reinforcement learning on multi-step tasks gives sparse, delayed rewards. Which of fifty actions caused the failure is hard to know.
- Memory. Context windows are finite and models attend unevenly across long inputs. Summaries lose detail; retrieval-based memory can miss what matters. There is no settled architecture for agent memory.
- Evaluation. Benchmarks saturate fast, environments leak into training data, and success at 50% reliability [3] says little about the tail failures that matter in deployment.
- Security. Prompt injection has no general solution. Any agent that mixes untrusted input with privileged actions is exposed; current defences reduce, not remove, the risk.
- Multi-agent systems. Splitting work across agents adds parallelism and specialisation but also coordination failures, duplicated work and higher cost.
Key papers: ReAct (2022) for the reason-act loop [1]; METR (2025) for measuring capability as task length [3].
Rung 6 State of the art: what experts work on now
Last checked 18 November 2026.
As of 2026-11-18.
The biggest 2025 change was standardisation of how agents connect to tools and to each other.
Tools. MCP, launched November 2024 [2], spread across vendors. On 9 December 2025 Anthropic donated it to the new Agentic AI Foundation (AAIF), a Linux Foundation directed fund co-founded by Anthropic, Block and OpenAI, alongside Block's goose and OpenAI's AGENTS.md as founding projects [5]. Anthropic's announcement cited more than 10,000 active public MCP servers [5].
Agent to agent. Google announced the Agent2Agent (A2A) protocol in April 2025, and on 23 June 2025 the Linux Foundation launched the A2A project with Google transferring the spec, SDKs and tooling [4].
Capability. METR's March 2025 measurements put the doubling time of agents' 50%-success task length at about seven months since 2019, with signs of faster growth in 2024 [3]. METR has since published updated measurements; treat any single doubling figure as an estimate.
In practice, coding agents and research agents are the most mature uses, and the harness (tools, permissions, memory, verification) now matters as much as the model inside it.
Sources
- Yao et al., ReAct: Synergizing Reasoning and Acting in Language Models (2022)
- Anthropic, Introducing the Model Context Protocol (2024)
- METR, Measuring AI Ability to Complete Long Tasks (2025)
- Linux Foundation, Launch of the Agent2Agent Protocol Project (2025)
- Anthropic, Donating the Model Context Protocol and establishing the Agentic AI Foundation (2025)