Nguyen Le Phong

AI in PracticePart 1 of 4

What an AI Agent Actually Is, and How Much Rope to Give One

An AI agent is a model plus tools plus a loop.

Say it's Friday afternoon and you owe your manager a status update. The facts are scattered: three Jira tickets, a Slack thread, a dashboard and a PR that merged on Wednesday. A chatbot can help if you paste each piece in and ask nicely. An agent gets one line, "pull together this week's status for the payments project," and fetches the pieces itself. It opens the tickets, reads the thread, checks the dashboard and comes back with a draft for you to fix up.

That gap between answering and doing is what "AI agent" means once you peel off the marketing. This post covers how an agent works, what it's made of, how much freedom to give one and where it still trips. It's for anyone who uses AI at work, engineer or not. I checked the sources and product details in November 2026. This field moves fast, so treat any tool name here as a snapshot of that month.

What "agent" means in this post

Anthropic's engineering team draws a handy line. Workflows are systems where models and tools run "through predefined code paths." Agents are systems "where LLMs dynamically direct their own processes and tool usage" (Building effective agents, December 2024). In plain words: in a workflow, you wrote the steps. With an agent, the model picks them as it goes.

From answering to doing

With a chat assistant, you're the project manager. You split the task into steps, run each one, and copy results from one window to the next. The model is smart, but it only ever takes one turn.

An agent takes over the project manager part. You hand it an outcome, say "find three suppliers for this part under $50, compare delivery times and draft an email to the best one," and it works out the steps, runs them with tools and checks what came back. Here's how the three kinds of software compare:

Plain automationChat assistantAI agent
You give itExact rulesA questionA goal, in your own words
Who decides the stepsYou did, when you built itYou do, one message at a timeThe model, as it goes
Uses toolsOnly the ones you wired inSometimes, inside the chatYes, that's the whole point
When something unexpected happensIt breaks or stopsIt asks youIt retries, changes plan or asks
Feels likeA conveyor beltA smart advisorA new teammate on probation

That bottom-right cell is the honest one. A new teammate can save you hours. They can also do the wrong thing fast and with total confidence. Most of this post is about getting the first without the second.

Two engineers look at their screens together and talk through the finished result they expect an AI agent to bring back.
With an agent you describe the finished result, then review what comes back. A clear goal matters more than clever prompt wording.

The loop inside every agent

Under the product names, nearly every agent runs the same small cycle. Anthropic's description is refreshingly blunt: agents "are typically just LLMs using tools based on environmental feedback in a loop." The research idea goes back to the 2022 ReAct paper, where a model alternates between reasoning about what to do and taking an action, then uses what it saw to plan the next move (Yao et al., ReAct).

The agent loop: a goal goes in, then the agent perceives the situation, reasons about the next step, acts with a tool and observes the result, round after round, until a result comes out. Goal Perceive see what's there Reason pick the next step Act call a tool Observe check the result Result tools · apps · data THE AGENT LOOP runs until done or it hits a limit uses
No magic inside: perceive, reason, act, observe, repeat. The tools along the bottom are how the loop touches the real world.

Walk through the Friday example. The agent reads your request (perceive). It decides the first useful step is listing this week's tickets (reason). It calls the Jira search tool (act). It reads the results and notices two tickets mention a blocked PR (observe). So the next round goes to GitHub. Round and round, until it has enough for a draft or hits a limit you set.

Anthropic makes two points about this loop that are worth keeping. The agent needs "ground truth" from the environment at each step, meaning real tool results instead of its own guesses. And the loop needs stopping conditions, such as a maximum number of iterations, so it can't run forever.

The one-line version

Agent = model + tools + a loop. Take away the tools and you have a chatbot. Take away the loop and you get a single answer. It takes all three to finish a job.

Five parts you can check

When a new "agent" button shows up in your email client or code editor, you can size it up by asking about five parts. Anthropic calls the basic building block an "augmented LLM": a model plus retrieval, tools and memory. Add a goal and a level of autonomy and you have the full picture.

PartWhat it isWhat to ask
1. GoalThe outcome you want, in plain words.Could a new hire act on this brief without coming back to you?
2. ModelThe LLM that plans and picks each step.Is it good at this kind of task? Try it on your own examples.
3. ToolsWhat it can touch: search, files, calendar, email, a browser, a terminal.Does it need write access, or would read-only do?
4. MemoryWhat it keeps during the task, and sometimes between tasks.What does it remember, and where is that stored?
5. AutonomyHow far it goes before checking with you.Where exactly does it stop and ask?

Four of the five are settings you control. A clear goal, a short list of tools and a sensible stopping point are yours to get right, whichever model sits in the middle.

How much rope: five levels of autonomy

An agent isn't simply on or off. Kevin Feng, David McDonald and Amy Zhang proposed describing autonomy by the role the user plays, from operator to observer (Levels of Autonomy for AI Agents, 2025). One idea from the paper is handy at work: autonomy is a design choice, separate from how capable the model is. The same model can run on a short leash or a long one.

LevelYour roleWhat it looks like
L1OperatorYou drive. The agent helps when you call it, like a chat reply or an autocomplete.
L2CollaboratorYou and the agent both plan and do parts of the work, passing it back and forth.
L3ConsultantThe agent plans and does most of the work. You give direction and feedback.
L4ApproverThe agent works on its own and only stops for blockers or sign-off on big actions: "About to send this email, OK?"
L5ObserverThe agent does everything. You can read its logs and hit the off switch.

The real skill is picking a level per task. Renaming photos in a folder can run at L4 or even L5. Replying to customers or touching money stays at L2 or L3, with your eyes on every send. When one task has been boringly correct for weeks, move that task up a level. Only that one.

Where agents earn their keep at work

The good use cases are rarely flashy. They're chores with several steps, a clear input and an output you can check fast. A few that fit:

The choreWhat you hand the agent
Inbox triage"Each morning, sort my inbox into reply today, read later and ignore. Draft replies for the first pile." You edit drafts instead of starting from a blank page.
Research and compare"Find five venues for a 30-person offsite near the office, compare price and capacity, and put it in a table with links." You click the links before you trust the table.
Meeting to tasks"From this transcript, list the decisions and the action items with owners, then draft the follow-up message."
Weekly status"Collect this week's merged PRs and closed tickets for the payments project and draft a status note."
Data cleanup"Clean this export, flag duplicate rows and chart the monthly totals." It does the grunt work. The conclusions stay yours.
Support drafts"For each new ticket, draft a reply from our help docs. Leave anything about refunds for me."
Coding"Fix this failing test" or "bump this dependency and run the suite." As of November 2026, tools like Claude Code and GitHub's Copilot coding agent edit files, run commands and hand back a diff or a pull request. GitHub's own docs still tell you to review and test the output before it goes to production.
Monitoring"If signups drop 20% day over day, summarize what changed and ping me." A night-shift analyst that never gets sleepy.

The agents I built at NDSVN had the same shape: code review, a deployment assistant, service-quota validation, API health checks and release analysis. Each one was a narrow job with a clear input. That's the pattern to look for.

What a good agent task looks like

A clear goal, tools the agent can reach, and a result you can check in a minute or two. If one of those three is missing, keep the agent at L1 or L2 for now.

An engineer checks a stack of receipts against a tidy operations dashboard that an AI assistant prepared for review.
The best wins tend to be the dull ones: receipts, reconciliations, status notes and tables you can verify at a glance.

Outside work

The same idea works for life admin, as long as you stay the one who presses "pay" or "book."

  • Trip planning: "Plan three days in Da Nang for two, under 8 million đồng, mostly beach. Give me hotel options and a day-by-day plan." You book it yourself once you've checked the prices.
  • Household admin: comparing insurance plans, drafting a complaint to your internet provider, turning a photo of your fridge into three dinners and a shopping list.
  • A study plan: "Build me a four-week plan to learn pivot tables, with a short exercise each day, and quiz me on Fridays."
  • A big purchase: "I'm buying a first car under 600 million for city driving. Shortlist three, list the trade-offs and give me questions for the dealer." Prices and specs change, so check the maker's own page before you decide.

In all four, the agent does the legwork and you keep the decision. That split is the whole safety model, at home and at work.

Where agents still trip

A wrong answer in a chat is easy to spot, because it's right there on your screen. A wrong action taken five steps into a task might not be. Anthropic names the trade-off plainly: the autonomy of agents "means higher costs, and the potential for compounding errors."

Before you hand over the keys

Don't let an agent do anything irreversible or expensive (sending money, deleting data, emailing customers, posting in public) without a person approving that step. OWASP gives the same advice in its entry on excessive agency: have a human confirm high-impact actions, such as each email before it goes out.

An engineer pauses on a draft approval screen before letting an AI agent take its next action.
Let the agent do the legwork, and put a stop sign right before anything that could cost money, trust or data.
  • Reliability is still uneven. METR, which tracks how long a task AI agents can handle, reports its headline numbers as the task length agents finish with 50% reliability. That's a sensible way to track progress, and a useful reminder that the headline figure describes tasks an agent gets right about half the time. Plan for the other half: small scope, output you can check, a way to undo.
  • Errors stack up. In a chat, a mistake costs you one bad reply. In a loop, the agent can build three more steps on top of it. Short loops and review points limit the damage.
  • Access is the risk. OWASP lists three root causes of excessive agency: tools the agent doesn't need, permissions wider than the task, and high-impact actions with no approval. Start read-only, then add write access one tool at a time.
  • Text can hijack it. An agent that reads web pages or your inbox will sooner or later meet instructions hidden in that text. OWASP puts prompt injection first in its 2025 list of risks for LLM apps. Simon Willison's rule of thumb: never give one agent your private data, untrusted content and a way to send data out, all at once. He calls that mix the lethal trifecta.
  • Loops cost money. A loop that runs longer than you expected can burn through tokens or hammer an API. Cap the steps, the time and the spend.
  • You still own the result. If the agent sent it, you sent it. That's why the approval step belongs in front of the actions that matter most.

Your first agent, this week

You probably don't need to build anything. Many tools you already use have an agent mode. A safe way in:

  1. Pick one boring, repeatable, low-stakes task: a weekly status note, sorting receipts, routine replies. Boring is good, because mistakes are cheap and easy to spot.
  2. Write the goal like a brief for a new hire: the outcome, the limits, what good looks like and what it must never do.
  3. Start at L1 or L2. Let it propose and do the work, and approve anything that leaves your hands.
  4. Check every output for the first few runs. You're learning where it's reliable and where it drifts.
  5. Once that task has come out right run after run, move it up one level. Leave every other task where it is.
A brief you can copy

"Goal: draft this week's status note for the payments project. Use: Jira and the #payments channel, read-only. Never: post anything or message anyone. Done when: I have a draft under 200 words with links to every ticket you mention."

Try this week

  • Pick one multi-step chore and write its goal, its limits and what "done" looks like in three lines.
  • Run it at L1 or L2 and approve each action yourself.
  • List every tool the agent can reach and remove one it doesn't need.
  • Before anything leaves your hands, ask whether it can be undone. If it can't, keep a person at that step.

Once one task runs well, the next step is chaining several into a repeatable workflow. That's the next post in this series: Small AI Workflows That Actually Save You Hours. And when you're ready to give an agent more room, AI Agents Should Earn Their Autonomy walks through widening its permissions one step at a time.

What did you think?

Frequently asked questions

What is an AI agent in simple terms?
An AI agent is software that takes a goal in plain language and works out the steps itself. It runs a loop: look at the situation, pick a next step, use a tool such as search, a calendar or a code editor, check the result, and repeat until the job is done or it needs to ask you. A chatbot gives one reply and waits for you. An agent keeps going.
How is an AI agent different from a chatbot like ChatGPT?
With a chatbot, you split the task into steps and run each one yourself. An agent uses the same kind of language model but adds tools it is allowed to use and a loop that lets it take many steps in a row. Anthropic's engineering team describes agents as systems where the model directs its own process and tool use, while a workflow follows steps written in code ahead of time.
Are AI agents safe to use?
They are reasonably safe when the autonomy matches the stakes. Give the agent only the tools and permissions the task needs, start read-only, and have a person approve anything irreversible or expensive, such as payments, deletions or emails to customers. OWASP lists prompt injection and excessive agency among the top risks for LLM applications in 2025, so keep untrusted content away from agents that can send data out.
What are good first tasks to give an AI agent?
Pick repetitive, multi-step, low-stakes chores with a result you can check in a minute or two: a weekly status note, inbox triage with drafted replies, comparing options into a table, turning a meeting transcript into action items, or cleaning a messy spreadsheet. Write the goal like a brief for a new hire, including what it must never do, and approve each action for the first few runs.
Will AI agents take my job?
In the near term, agents take over tasks, mostly the repetitive multi-step ones. Someone still has to set the goal, decide what good looks like, check the result and own the outcome. Those parts stay with people, and the useful skill is knowing which tasks to hand over and at what level of autonomy.