Agents Guide 09 of 25

What an AI agent actually is (and isn’t)

Many products sold as agents are rebranded chatbots or scripts, and many agent projects need no agent at all. A precise definition, a way to set autonomy on purpose, and a test for when to build something simpler.

  • 10 min read
  • Updated 
  • 8 sources

Key takeaways

  • An AI agent is a system where the model, not your code, chooses each next step and tool, observes the result, and decides when it is done.
  • If you can draw the flowchart before a request arrives, build a workflow. Agents earn their cost only when the path depends on what the system discovers.
  • Autonomy is a design decision separate from capability. Pick a level per action, and gate anything irreversible behind human approval.
  • Agents work best where results can be checked, as with tests in coding. Errors compound over long runs, so verification matters as much as raw capability.
  • Before building, ask whether code, a single model call, or a fixed LLM workflow would do. Usually one of them will.
On this page 6 sections

Few words in software have been stretched as far as “agent.” It now covers chatbots with a new logo, scripted automations with one model call inside, and systems meant to run unsupervised for hours. Gartner calls the rebranding agent washing, and in June 2025 it estimated that just 130 or so of the thousands of vendors selling agentic AI offer the real thing.

The confusion is expensive. The same release forecasts that organizations will scrap more than 40% of their agentic AI projects by the end of 2027, citing rising costs, unclear business value, and weak risk controls. Gartner analyst Anushree Verma adds that many use cases marketed as agentic do not need an agent at all.

For an engineering team, the definition is not pedantry. Whether a system is an agent decides how you build it, test it, budget for it, and explain its mistakes. This guide gives a precise definition, a way to set autonomy deliberately, and a test for when to choose something simpler.

What is an AI agent?

The major labs now broadly agree. An AI agent is a system in which a large language model (LLM) decides, step by step, which actions to take toward a goal. It acts through tools, reads the results, and decides again. Google’s Introduction to Agents whitepaper, published on Kaggle and updated in May 2026, offers a one-line version:

“LMs in a loop with tools to accomplish an objective.”

LM is Google’s shorthand for language model, and each part of the line does work. Tools are how the model touches the world: a search API (application programming interface), a database query, a code runner, a ticketing system. Strictly, the model only emits a structured request to call a tool; your code, or the provider’s platform for hosted tools, runs it and feeds the result back.

The loop separates an agent from a single model call — act, observe, decide again. The objective tells the model when it is done, and hard limits, such as a cap on steps, end runs that never get there.

OpenAI’s practical guide to building agents (April 2025) sets two conditions. The model must run the workflow: choosing each step, noticing when the job is done, and stopping to hand control back to a person when it fails. It must also pick its own tools as the situation changes, inside defined guardrails. By that standard, a simple chatbot, a single-turn model call, and a sentiment classifier are not agents, however they are marketed.

The word itself is old. IBM’s explainer on AI agents still walks through the classic textbook types, from a thermostat-style reflex agent to learning agents that improve with experience. What changed is the decision-maker. An LLM can choose actions from a loosely stated goal in plain language, where earlier software agents needed their rules, goals, or rewards specified formally in advance.

Workflows vs. agents: who decides the next step?

The most useful distinction comes from Anthropic’s Building effective agents (19 December 2024). It calls everything in this space an agentic system, then splits it in two. In a workflow, your code fixes the sequence of model and tool calls in advance. In an agent, the model chooses its own steps and tools as it goes.

Workflow vs. agent On the left, a workflow runs three fixed steps in an order set by code. On the right, an agent starts from a goal, and the model repeatedly chooses a tool call, observes the result, and decides whether to continue or stop. WORKFLOW: code picks the path Classify request LLM call Draft reply LLM call + retrieval Check against policy rule or LLM check reply AGENT: model picks the path Goal + instructions Model chooses next step or stop Tool call API · search Stop answer or human act observe done Workflow vs. agent At the top, a workflow runs three fixed steps in an order set by code. Below, an agent starts from a goal, and the model repeatedly chooses a tool call, observes the result, and decides whether to continue or stop. WORKFLOW: code picks the path Classify request LLM call Draft reply LLM call + retrieval Check against policy rule or LLM check reply AGENT: model picks the path Goal + instructions Model chooses next step or stop Tool call API · search Stop answer or human act observe done
In a workflow, code fixes the order and the model fills in individual steps; in an agent, the model picks each next action until it stops or hands off.

Anthropic’s post lists five workflow patterns it has seen in production. Prompt chaining runs fixed steps in sequence, with checks between them. Routing sorts each input into a specialized path, and parallelization splits work into independent pieces or runs one task several times and compares answers. In orchestrator-workers, a central model divides a task into subtasks it chooses at run time; in evaluator-optimizer, a critic model reviews a generator’s draft until it passes.

AspectDeterministic automationLLM workflowAgent
Who picks the next stepYour codeYour code; the model fills in stepsThe model, within limits you set
Typical exampleRules engine, scheduled database job, robotic process automation (RPA)Classify a ticket, draft a reply, check it against policyInvestigate a billing dispute across three systems and propose a fix
PredictabilityHighFixed path; each step’s output variesThe path itself varies from run to run
Cost and latencyLowestA known number of model callsGrows with each step, since every call rereads a longer history; needs a cap
How you test itUnit testsPer-step evaluations (evals) plus end-to-end checksOutcome checks, trajectory review, sandboxed runs
Typical failureBreaks on inputs nobody anticipatedOne weak step degrades the resultEarly wrong turns compound; loops; unsafe actions

The line is blurrier than the table suggests. Orchestrator-workers already lets the model choose subtasks, and most real agents run inside hard-coded guardrails. A practical rule: if you can draw the flowchart before the request arrives, build a workflow. If the flowchart depends on what the system discovers along the way, you may need an agent.

Autonomy is a design decision, not a property of the model

Calling something an agent says nothing about how much it may do unsupervised. A 2025 framework from University of Washington researchers Kevin Feng, David McDonald, and Amy Zhang defines five levels of autonomy by the role the user plays:

  1. Operator — the person plans and decides; the agent helps when called on.
  2. Collaborator — both plan and do the work, and the person can take over the agent’s task at any point.
  3. Consultant — the agent drives the plan and checks in with the person for feedback and preferences.
  4. Approver — the agent proceeds alone and returns only when blocked or about to do something consequential.
  5. Observer — the agent runs end to end; the person can read its activity log and hit an off switch.

The authors’ central argument is the useful part: autonomy is a choice developers make, separate from what the model can do. By that logic, a highly capable agent can still ship at the collaborator or approver level — and for consequential work, it often should. Google’s whitepaper makes the same point from the builder’s side. It names the degree of autonomy as the first architectural decision, on a spectrum from a fixed process with a little AI inside to a model running the show.

Do not confuse autonomy with capability ladders. The same Google paper ranks systems by what they can do. Level 0 is a bare model, level 1 adds tools, level 2 adds multi-step planning and context management, level 3 coordinates teams of agents, and level 4 builds new tools or agents for itself. A level 3 system can still run with a human approving every payment.

Practice shows that autonomy is earned. Anthropic’s February 2026 study of millions of interactions found that new Claude Code users ran with full auto-approve in about 20% of sessions, rising past 40% by 750 sessions. Experienced users also interrupted more — about 9% of turns, against 5% for newcomers — moving from approving each step to watching and stepping in.

Across Anthropic’s public API, about 80% of tool calls appeared to come from agents with at least one safeguard, such as restricted permissions or approval steps. Only 0.8% of actions looked irreversible. Anthropic warns that its classifier tends to overstate human involvement, so treat the oversight figures as upper bounds. Its advice to product teams is to give users clear visibility and simple ways to intervene, and it argues that mandating approval of every action adds friction without clear safety gains.

What can agents do today, and where do they break?

Capability has moved fast. METR (Model Evaluation and Threat Research), a nonprofit that evaluates frontier AI systems, fits each agent’s results to find the task length, sized in expert human time, where its expected success rate falls to 50%. On its time-horizon tracker, last updated 8 May 2026, the top estimate is about 17 hours, for an early version of Anthropic’s Claude Mythos Preview. METR warns that results above 16 hours are unreliable with its current tasks; on the same Time Horizon 1.1 suite, GPT-5 (August 2025) scores about 3.4 hours.

Read the fine print before extrapolating to your business. METR’s tasks are self-contained, clearly specified, and scored automatically, and its human baselines come from skilled contractors new to each task. METR reports that agents performed worse on messier tasks and scored lower when judged holistically rather than by script. A 50% success rate is a research milestone, not a service level.

Reliability is the catch, because errors compound. If each step of a 20-step task succeeds 95% of the time and failures are independent, the whole run succeeds only about 36% of the time. Agents claw some of that back by checking real results after each action, which Anthropic’s post treats as essential. IBM’s explainer flags a different failure: an agent that cannot plan or reflect may call the same tool again and again.

This is why agents took off first where outcomes are checkable. Anthropic’s 2024 post singles out coding and customer support as the strongest fits: each mixes conversation with real actions, has a clear test of success, and leaves a human to sign off. In coding, automated tests tell the agent mid-task whether its change worked. By early 2026, Anthropic’s own traffic data put software engineering at nearly half of agent tool calls on its API.

The same post warns that autonomy brings higher costs and compounding errors, and recommends extensive sandboxed testing. Anthropic’s autonomy study adds a fitting caveat: software is unusually easy to test and review, so trust may build more slowly in law, medicine, or finance.

When should you not use an AI agent?

Anthropic, OpenAI, and Gartner give the same advice in different words. Anthropic says to start with the simplest solution and notes that one well-built model call with retrieval and examples is often enough. OpenAI reserves agents for complex judgment calls, rule sets that have grown unmanageable, or heavy unstructured data — otherwise, deterministic code may serve. Gartner suggests agents where a judgment call is needed, ordinary automation for repeatable processes, and assistants for looking things up.

A practical sequence for any candidate use case:

  1. Can code do it? If a rule, a query, or a scheduled job handles it, write the code. It will be cheaper, faster, and easier to audit.
  2. Is it one judgment over text? Classification, extraction, or a drafted reply usually needs a single model call, often with retrieval.
  3. Are the steps known in advance? Use an LLM workflow — chain, route, or parallelize — with checks between steps.
  4. Do the steps depend on what the system finds? Consider an agent, but only if you can verify the outcome and tolerate an occasional wrong path.
  5. Can any action not be undone? Put a human approval gate on it, whatever autonomy level you chose.

Some signs that an agent is the wrong tool: no way to check the result, a latency budget of a few seconds, or tasks worth less than the tokens a long run burns. The same goes when an auditor needs identical inputs to produce identical steps every time.

What this means for your team

  • Ask who decides the next step. When a vendor or an internal team says “agent,” ask for the trace of a real run. If every path was drawn in advance, it is a workflow — possibly a good one — and should be priced and tested as one.
  • Start with one agent and a few tools. OpenAI recommends getting the most out of a single agent before splitting work across several. Its guide notes that overlap between tools matters as much as their number: some agents handle more than 15 distinct tools, while others stumble with fewer than 10 that overlap.
  • Write the autonomy level down. Decide per action class what the agent may do alone, what needs approval, and what is forbidden. OpenAI names two triggers for handing over to a human: repeated failures past a set limit, and high-stakes actions such as canceling orders, issuing large refunds, or making payments.
  • Make agents accountable like staff. IBM recommends action logs users can inspect, the ability to interrupt a run, and a unique identifier for each agent. Google’s whitepaper goes further and gives each agent its own identity with least-privilege permissions, distinct from the person who invoked it.
  • Build the evals first. OpenAI suggests prototyping with the most capable model, setting an eval baseline, and only then trying smaller models to cut cost and latency. Track cost per successful task, not cost per call.
  • Stay close to the model API. Anthropic advises starting with direct API calls, because frameworks can hide the prompts and responses you need when debugging. Its 2024 post now carries a note that the tooling has moved on; the workflow-versus-agent distinction has aged well.

An agent is a means, not a milestone. At SurgeX Labs, the first design review for any agent asks which steps truly need the model’s judgment — the answer usually shrinks the agent and makes everything around it easier to trust.

Sources

  1. Building effective agents (opens in new tab) — Anthropic Engineering, 2024 anthropic.com

  2. A practical guide to building agents (opens in new tab) — OpenAI, 2025 cdn.openai.com

  3. Introduction to Agents (opens in new tab) — Google, via Kaggle (Blount, Gulli, Saboo, Zimmermann, and Vuskovic), 2025 kaggle.com

  4. What are AI agents? (opens in new tab) — IBM Think, 2024 ibm.com

  5. Levels of Autonomy for AI Agents (opens in new tab) — arXiv (Feng, McDonald, and Zhang, University of Washington), 2025 arxiv.org

  6. Measuring AI agent autonomy in practice (opens in new tab) — Anthropic Research, 2026 anthropic.com

  7. Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027 (opens in new tab) — Gartner, 2025 gartner.com

  8. Task-Completion Time Horizons of Frontier AI Models (opens in new tab) — METR, 2026 metr.org

Where this shows up in our work

Building this? Talk to an engineer.

If this guide maps to a system you’re planning, send a short brief. A senior engineer replies within one business day.