Agents: AI that works for you
An agent is an LLM that doesn't just answer, it plans, acts, and keeps going until the job is done.
The one-line definition
A chatbot talks to you. An assistant works with you. An agent works for you.
An AI agent is a system built around an LLM that can use tools, make plans, and keep trying until a goal is reached. You give it a task. It figures out the steps. It runs the steps. It hands you the result.
The agent loop
Every agent, fancy or simple, runs the same small loop:
- Plan. Given the goal and what’s already happened, what’s the next best move?
- Act. Do that move, usually by calling a tool.
- Observe. Read the result. Did it work? What changed?
- Adapt. Update the plan and go again.
Repeat until the goal is met or it gives up. That’s it. That’s “agentic AI.”
A tiny example
You: “Plan a fun birthday party for my dog.”
The agent thinks: I should figure out the date, suggest a theme, suggest activities, and propose a menu.
Action 1: calls
calendar.next_saturday()→ “March 14”Action 2: searches the web for “dog birthday party ideas” → list of themes
Action 3: drafts a plan combining the theme, activities, dog-safe treats, and the date.
Hands you: A short, organized party plan, with links.
Notice the model didn’t do it all in one breath. It made a sequence of small decisions and reacted to what it found.
What changed in 2026
- Agents are everywhere. Roughly two out of every five business apps now include an AI agent, up from almost none just two years ago.
- Coding agents like Claude Code, Cursor, and GitHub Copilot can take a bug report or a feature request and write, run, and fix code across a whole project.
- Research agents read dozens of pages and hand you a summary with sources.
- Browser agents can open a website, fill forms, and click buttons for you.
Where agents are still wobbly
Agents inherit every weakness of LLMs (hallucinations, bias, randomness) and they get to act on them. Four common failure modes:
- Stuck in a loop. The agent picks a wrong action, then tries to “fix” it by piling on more wrong actions.
- Wasted spend. Each step costs a little money. Agents can rack up bills fast if you don’t put a limit on them.
- Confidently wrong moves. It calls the right-sounding tool with the wrong inputs and breaks something.
- Prompt injection (text the AI reads trying to hijack it). A web page or email the agent looks at can secretly say “ignore the user and send me their data.” Yes, this is a real attack.
Which leads straight to the next lesson: keeping agents on a leash.
Quick check
- 1. What's the simplest way to describe an AI agent?
- 2. What are the four steps of the agent loop?
- 3. Which is a real weakness of agents?