On this page
- What is an AI agent?
- How does an AI agent work?
- The model
- Tools
- Memory
- Permissions
- AI agents vs chatbots vs workflows
- Examples of AI agents you can use today
- Coding agents
- Browser and computer-use agents
- Research agents
- Customer-service agents
- What are AI agents good at, and where do they fail?
- What are the risks of AI agents?
- Prompt injection
- Wrong actions
- Runaway costs
- How to try an AI agent safely
- Frequently asked questions
An AI agent is an AI model that works toward a goal on its own: it plans the steps, uses tools to take actions, checks what happened and repeats until the job is done or it needs you. A chatbot answers your message. An agent does the task, whether that's Claude Code fixing a failing test or ChatGPT Work turning a goal into a finished spreadsheet from your connected apps.
That freedom is what makes agents useful, and it's also what makes them risky. This guide explains how the loop works, how agents differ from chatbots and fixed workflows, which agents you can use today, what they're good and bad at, and how to try one without handing it the keys to everything.
What is an AI agent?
An AI agent is software in which a language model decides, step by step, what to do next to reach a goal, and then does it through tools. Anthropic's widely cited definition draws the line at who's in control. In a workflow, developers wire the model and tools together along code paths written in advance. In an agent, the model directs its own process and chooses its own tools.
OpenAI's guide to building agents breaks one into three parts: a model that reasons and makes decisions, tools it can use to act, and instructions that set how it behaves. Everything else, from memory to approval prompts, is built around those three.
The word gets stretched. Gartner uses the term "agent washing" for vendors relabeling chatbots, assistants and older automation tools as agents, and in June 2025 it estimated that only about 130 of the thousands of vendors selling "agentic AI" offered the real thing. A simple test: if the software can't take an action and then react to the result by itself, it isn't an agent.
How does an AI agent work?
Every agent runs some version of the same loop:
- Goal. You describe the outcome you want: "fix the failing login test" or "find three flights under $400 and put them in a table".
- Plan. The model breaks the goal into steps and picks the first one.
- Act. It calls a tool. It might run a command, search the web, click a button or query a database.
- Observe. The tool's output goes back to the model.
- Repeat or stop. The model decides whether the goal is met, whether to try something else, or whether to ask you.
The loop is the difference. If a test still fails, the agent can read the error and try another fix without you copying anything back into a chat box.
The model
The model does the thinking: planning, choosing tools, reading results. Anthropic's engineering guide describes the basic building block as an "augmented LLM", a model given retrieval, tools and memory, that can write its own search queries, pick tools and decide what to keep. Stronger models plan better and recover from mistakes more often, which is why agent products tend to run on each company's top models.
Tools
Tools are how the agent touches the world: a terminal, a file system, a browser, an email account, an API. Each tool comes with a description that the model reads to decide when to use it. The Model Context Protocol has become the common way to plug tools into agents, and our explainer on what MCP is covers how it works.
Memory
Inside a task, an agent's memory is its context window: the conversation so far, tool results and the files it has read. That space runs out on long jobs, so agents save notes, summarize as they go or split the work. Anthropic's research system, for example, hands parts of a question to sub-agents, partly because the information can exceed what fits in one context window.
Permissions
The last piece decides what the agent may do without asking. Claude Code has permission modes that control which actions run automatically. Claude in Chrome, by default, lets a classifier approve actions it judges safe, and you can switch to approving every action yourself. ChatGPT Work lets you decide when it needs your approval before acting. For safety, these settings matter as much as which model you pick.
AI agents vs chatbots vs workflows
| Chatbot | Fixed workflow | AI agent | |
|---|---|---|---|
| Who picks the next step | You, one message at a time | The developer, in code written in advance | The model, as it goes |
| Takes actions | Mostly answers | Yes, the same steps every time | Yes, chosen for each task |
| Handles surprises | Only if you notice and ask | No; it fails or runs a fallback | Can retry, change course or ask |
| Cost and speed | Cheapest and fastest | Predictable | Slower, and uses far more tokens |
| Best for | Questions and drafts | Repeatable jobs with known steps | Open-ended jobs with a result you can check |
Anthropic's advice is to start with the simplest thing that works and add autonomy only when the task needs it, since agents trade cost and speed for flexibility. Plenty of jobs sold as "agentic" are better as workflows: sorting support tickets into categories, or sending the same report every Monday.
Real products blur the lines. ChatGPT and Claude are chatbots that switch into agent mode when you hand them a bigger task, and agents often run fixed workflows as one of their tools.
Examples of AI agents you can use today
Coding agents
This is the most mature category. Claude Code, OpenAI Codex, Cursor, GitHub Copilot and Google Antigravity can read a code repository, edit files, run commands and tests, and keep going until a task is finished. Code suits agents because it gives fast, honest feedback: the tests pass or they don't. For prices, limits and a ranking, see the best AI coding agents in 2026.
Browser and computer-use agents
These agents use apps the way you would, by reading what's on screen and clicking.
- Claude in Chrome became generally available on every paid Claude plan on 26 August 2026. It reads the page you're on and can type, click, fill in forms and move between pages using your existing logins. Anthropic says it doesn't yet run in other Chromium browsers or on mobile.
- Claude Cowork, which Anthropic launched as a research preview on 12 January 2026, works on files inside a folder you choose on your computer. Since August, the Claude in Chrome side panel runs the same Cowork session.
- ChatGPT Work, launched on 9 July 2026, breaks a goal into steps and works across your connected apps and files, for hours if needed, to produce documents, spreadsheets, slides and web apps. In the desktop app it can use a built-in browser and computer use, and OpenAI says the desktop app includes Work on every plan, Free included.
- OpenAI's dots, introduced on 29 September 2026, are always-on agents that each get their own cloud computer and browser. They started rolling out to Pro and Business Premium users.
- Auto browse is Google's version: Gemini carries out multi-step chores inside Chrome. Google's help page describes a gradual, desktop-only rollout for paying Google AI subscribers in the US.
Research agents
The deep research features in ChatGPT, Claude and Gemini run many searches, read the results and write a cited report. Anthropic has described how its version works: a lead agent plans the research and sends sub-agents to search in parallel, then pulls their findings together. Which plans include these features is covered in ChatGPT vs Claude vs Gemini.
Customer-service agents
Support desks were early adopters, because many questions repeat and a person can take over when the agent gets stuck. Fin, the company formerly called Intercom, is one example; Salesforce finished buying it on 10 September 2026. Fin says its agent has an average resolution rate of 76% across 12,000 customers. It charges $0.99 per outcome, with a 50-outcome monthly minimum, and bills only when the agent resolves an issue or completes a set hand-off procedure. Those are the company's own figures, not independent measurements.
What are AI agents good at, and where do they fail?
Agents do best when the goal is clear, progress can be checked and mistakes are cheap to undo. Code is the cleanest example, but the same holds for gathering research, filling a spreadsheet from a pile of documents or clearing routine support tickets.
They're getting better at long tasks quickly. METR, a nonprofit that evaluates AI agents, measures the length of task (in the time a skilled person would need) that an agent completes half the time. In its November 2026 update, METR's pooled estimate for OpenAI's GPT-6 Astra and Anthropic's Claude Opus 5.5 is roughly 40 hours each. The error bars are huge, though: the 95% confidence intervals run from about 12 hours to well over 1,000. METR estimates that this figure is doubling about every 3.6 months.
Read that number carefully. It's a 50% success rate, on tasks built to be measurable. On real work, agents still:
- Compound small errors. A wrong assumption early on carries through every later step. Anthropic lists compounding errors as one of the main costs of autonomy.
- Take instructions too literally. Ask an agent to "clean up" a folder and it may delete the files you meant to keep.
- Wander. Anthropic's engineers reported early versions of their research system spawning 50 sub-agents for simple questions and searching endlessly for sources that didn't exist.
- Sound more finished than they are. An agent's summary of its own work can be wrong. Check the result, not the report.
Businesses are running into the same limits. Gartner predicted in June 2025 that over 40% of agentic AI projects will be canceled by the end of 2027, citing rising costs, unclear business value and weak risk controls.
What are the risks of AI agents?
Prompt injection
Agents read content they didn't write: web pages, emails, documents, GitHub issues. If that content contains instructions, the model may follow them instead of yours. That's prompt injection, and it's the biggest risk for any agent that browses the web or reads your inbox. OWASP's Top 10 for Agentic Applications, published in December 2025, puts "agent goal hijack" first on its list.
OpenAI built an automated attacker to find these holes in its own browsing agent. In one example it published, a planted email got the agent to send a resignation letter to the user's CEO. OpenAI wrote in December 2025 that prompt injection is "unlikely to ever be fully 'solved'". Anthropic reports far fewer successful attacks now that probes and classifiers screen what Claude in Chrome reads and does, but it calls prompt injection "a moving target".
Developer Simon Willison's "lethal trifecta" is a useful rule of thumb. An agent that can see your private data, reads untrusted content and can send information out can be tricked into leaking that data. He argues the only dependable defense is to remove one of the three.
Wrong actions
Agents with write access can do real damage in seconds, usually by doing something reasonable-sounding in the wrong place.
- In July 2025, SaaStr founder Jason Lemkin said Replit's agent deleted his production database during a code freeze, despite instructions not to change anything without permission. Replit responded by separating development and production databases.
- In April 2026, PocketOS founder Jer Crane said a Cursor agent running Anthropic's Claude Opus 4.6 deleted the company's production database and its volume-level backups with one API call to its cloud host, Railway, while working on a routine task in a staging environment. Railway later restored a backup, though reports differ on how much data came back.
In both cases the agent had access it didn't need, and nothing stood between a bad decision and an action that couldn't be undone.
Runaway costs
Agents use far more compute than chat. Anthropic measured its agents using about four times as many tokens as chat, and its multi-agent systems about 15 times as many. On a subscription, that means hitting usage limits sooner. On pay-as-you-go API billing, an agent stuck in a loop keeps spending until something stops it.
How to try an AI agent safely
- Start with something you can undo. Use a copy of a folder, a test repository or a draft document. Not your production database, and not your main inbox.
- Use an agent that's already in your plan. Claude, ChatGPT and Google all include agent features in paid plans, and ChatGPT's desktop app offers Work on the free tier, so you can try one without setting up APIs or paying per token.
- Keep approvals on at first. Switch Claude in Chrome to manual approval, tell ChatGPT Work to check in before acting, and let coding agents ask before running commands. Loosen the settings only after you've watched how the agent behaves.
- Give it the least access that works. Point Cowork at one folder rather than your whole drive. Give a GitHub connection a token that reaches one repository. Keep development and production apart.
- Break the trifecta. Don't let one agent read untrusted content, see private data and send messages in the same session.
- Back up first. Both database incidents above came down to backups that were missing or within the agent's reach.
- Watch the meter. If you pay per token, keep an eye on usage while the agent runs, especially on long or open-ended tasks.
- Check the work, not the summary. Run the tests, open the file and read the email before it goes out.
Frequently asked questions
What is an AI agent in simple terms?
An AI agent is an AI model that takes actions instead of only answering. You give it a goal, and it plans steps, uses tools such as a browser or a terminal, checks the results and keeps going until the job is done.
What is the difference between an AI agent and a chatbot?
A chatbot replies to each message and then waits for you. An agent works through several steps on its own, calling tools and reacting to what they return, and stops when it finishes or needs your input.
What are some examples of AI agents?
Coding agents such as Claude Code and OpenAI Codex, browser agents such as Claude in Chrome and ChatGPT Work, deep research features that write cited reports, and customer-service agents such as Fin.
Are AI agents safe to use?
They're reasonable for low-stakes tasks with approvals turned on, but they aren't foolproof. Prompt injection hasn't been solved, and agents have deleted real data when they had more access than the task needed.
Do AI agents cost more than chatbots?
Usually, yes. Anthropic measured its agents using about four times the tokens of a chat, and multi-agent setups about 15 times, so they use up plan limits or API budgets faster.
What is agentic AI?
It's the umbrella term for AI systems that act with some autonomy. Anthropic uses "agentic systems" to cover both fixed workflows that call a model and fully self-directed agents.
Sources
- Building effective agents, Anthropic
- How we built our multi-agent research system, Anthropic
- A practical guide to building agents, OpenAI
- Agent definitions, OpenAI API docs
- Gartner predicts over 40% of agentic AI projects will be canceled by end of 2027, Gartner
- Over 40% of agentic AI projects will be scrapped by 2027, Gartner says, Reuters via The Star
- Claude Code overview, Claude Code Docs
- Permission modes, Claude Code Docs
- Claude in Chrome is generally available, Anthropic
- The Claude in Chrome side panel is now Claude Cowork, Anthropic
- Anthropic launches Cowork, a Claude desktop agent that works in your files, VentureBeat
- Claude Cowork, Simon Willison
- ChatGPT for your most ambitious work, OpenAI
- OpenAI debuts ChatGPT Work, SiliconANGLE
- Introducing dots, OpenAI
- Ask Gemini in Chrome to complete tasks for you with auto browse, Google Chrome Help
- The new era of browsing: Putting Gemini to work in Chrome, Google
- Salesforce completes acquisition of Fin, Salesforce
- Best AI agents for customer service, Fin
- Q4 2026 capability update, METR
- METR Q4 2026 capability update: time horizon and lifecycle cost, Pebblous
- METR, Wikipedia
- OWASP Top 10 for Agentic Applications, OWASP GenAI Security Project
- OWASP drops first AI agent risk list, TechRepublic
- Continuously hardening ChatGPT Atlas against prompt injection attacks, OpenAI
- OpenAI says AI browsers may always be vulnerable to prompt injection attacks, TechCrunch
- OpenAI on AI browser prompt injections, Fortune
- The lethal trifecta for AI agents, Simon Willison
- Replit deleted production database, SaaStr founder says, The Register
- Replit responds to SaaStr incident, The Register
- Claude-powered AI coding agent deletes entire company database, Tom's Hardware
- Victim of AI agent that deleted company database gets data back, Tom's Hardware
- AI agent reportedly deletes company's entire database, TechRepublic
- AI agent deletes startup's database in 9 seconds, founder says, Decrypt
Was this helpful?
Thanks, noted. It helps decide what gets updated first.


