Nguyen Le Phong

AI Agents Should Earn Their Autonomy

Agents that call tools need more than a good prompt.

Say you've given a coding agent a small job: rename a database column and update the code that uses it. You watch the terminal. It reads the schema, greps for the old name, edits four files, runs the tests and hits one failure. Instead of forcing that test green, it stops and writes: "The nightly analytics job still reads the old column, and it lives in a repo I can't access. Should I keep a compatibility view, or will someone update that job?"

Nothing about that moment looks like science fiction, and that's why it matters. The agent took five steps on its own, then asked at exactly the point where it was about to cross a boundary. Getting more of those moments, and fewer of the other kind, is mostly a design problem. This post is about granting agents autonomy one step at a time.

An engineer follows an AI agent's steps in a terminal while a teammate looks on, before the agent touches anything outside its task.
A good agent run looks fairly ordinary: steady progress you can follow, and a question before anything costly happens.

What makes something an agent

A chatbot answers. An agent works toward a goal over several steps: it calls tools, looks at the results, picks the next action and keeps going until it's done or stuck. Anthropic's engineering team draws a handy line in Building effective agents (December 2024). In a workflow, LLMs and tools run through code paths you define in advance. In an agent, the model directs its own process and tool use as it goes. Both have their place, and the post's main advice has aged well: find the simplest solution that works, and add complexity only when you need it.

So the design question worth asking is whether the loop is reliable enough for the work you're letting it touch. If you'd like the basics first, AI agents, explained without the hype covers how agents work under the hood.

Autonomy is a choice you make

It's tempting to think autonomy comes free with a smarter model. Researchers at the University of Washington see it differently. In Levels of Autonomy for AI Agents (2025), K. J. Kevin Feng, David W. McDonald and Amy X. Zhang treat autonomy as a deliberate design decision, separate from capability, and define five levels by the role the user plays:

LevelWhat you doWhat the agent does
L1 OperatorYou plan and decide, and call the agent when you want help.Helps on demand and doesn't act unless invoked.
L2 CollaboratorYou and the agent both plan, hand off and execute.Can work on its own tasks in parallel with you.
L3 ConsultantYou give feedback, preferences and direction.Takes the initiative and does most of the work.
L4 ApproverYou step in to approve consequential actions or clear blockers.Runs the workflow and stops at the gates.
L5 ObserverYou watch the logs and keep an emergency off-switch.Plans and executes everything.

The ladder is useful because you pick a level per workflow and climb with evidence. A sensible path for most teams: the agent suggests, then drafts, then takes low-risk actions with approval, then handles reversible actions inside a narrow boundary on its own. Higher levels wait until logs, evals and real running time show the workflow holds up. Trusting an agent works a lot like trusting a new teammate. You build it from a track record.

Every tool is a permission

Once a model can search documents, query a database, open issues or call an API, it's no longer a text generator. Each tool also raises the questions you'd ask about any service account. Who granted it? What can it read? What can it change? Which actions need approval? Is there a log? Can you undo it?

The 2025 OWASP Top 10 for LLM applications calls the failure here Excessive Agency: damaging actions taken because of unexpected or manipulated model output. It traces the cause to three things: too much functionality, too many permissions and too much autonomy. The fixes are the boring ones that work. Offer only the tools the task needs, and prefer narrow tools over open-ended ones like a shell. Grant the least privilege you can, such as read-only scopes. Let the target system check authorization itself instead of trusting the model to decide. And require a person to approve high-impact actions.

Simon Willison adds a sharp rule of thumb he calls the lethal trifecta. If one agent can read your private data, sees untrusted content and can send data out, an attacker can trick it into reading your data and sending it to them. The instructions can hide in a web page, an email or a GitHub issue. His advice is to never put all three in one agent, because guardrail products can't reliably catch every prompt injection.

A team stands around an agent workflow diagram, talking through which tools the agent may use, what it may change and where approval is required.
Once a model can use tools, its permission list deserves as much review as its prompt.

Context and memory need upkeep

An agent with too little context acts like a contractor who keeps asking for the same background. One with too much unfiltered context gets distracted, or picks up instructions hidden in a document it was only supposed to read. Good setups choose context on purpose: the goal, the constraints, the relevant files, recent decisions, an example of good output and a clear rule about what to ignore. Context engineering goes deeper on this.

Memory is handy, and it goes stale. A preference from last month may be wrong today, and a decision from one project may not fit the next. If your agent remembers things across sessions, people should be able to see what it remembers, correct it, scope it to one project and delete it. Otherwise the agent sounds sure of itself because it remembers something, whether or not that thing is still true.

One good demo is not an eval

A slick demo hides a lot. The agent might follow the wrong instruction, read an outdated doc, loop on a tool error, act in the wrong account, invent a citation or skip an exception that matters. You only find these by running the agent many times on tasks you can grade.

Anthropic's Demystifying evals for AI agents (January 2026) has practical advice for getting started. Begin with 20 to 50 simple tasks drawn from real failures, since you don't need hundreds. Grade the result the agent produced and worry less about the exact path, because agents often find valid routes you didn't expect. Read the transcripts, or you won't know whether your graders work. And pick the metric that fits: pass@k (at least one success in k tries) suits tools where one good answer is enough, while pass^k (all k tries succeed) fits customer-facing agents that need to get it right every time.

Engineers and a manager go through audit notes and eval results before giving an AI agent more autonomy.
Raise an agent's autonomy when logs, eval results and human review all back it up, across many runs.

Where agents earn their keep first

The agents that pay off early usually have a bounded job: a clear input, a visible output and a person who reviews the result.

  • Triage incoming tickets and suggest a label and an owner.
  • Draft a weekly status report from sources you name.
  • Check a pull request for missing tests.
  • Write a first version of release notes from merged PRs.
  • Group customer feedback into themes, each linked to its evidence.

None of these remove a person. They cut the coordination grind around repetitive knowledge work, and each one gives you a safe place to watch the agent, build evals and decide whether it's ready for the next rung. For how this plays out across a whole software lifecycle, see From SDLC to ADLC.

Try this week

  • Pick one workflow and write down which of the five levels it runs at today.
  • List every tool your agent can call, then remove one it doesn't need.
  • Check your agent against the lethal trifecta: private data, untrusted content, a way to send data out.
  • Collect 20 real failures and write them up as your first eval tasks.
  • Read ten transcripts end to end before you trust a pass rate.

Agents are good at the legwork: gathering, drafting, comparing, executing. People still own the purpose, the priorities and the accountability. Give the agent the steps, keep the gates for people, and widen the boundary when the evidence says it's time.

What did you think?

Frequently asked questions

What is the difference between an AI agent and a chatbot?
A chatbot answers a message. An agent works toward a goal over several steps: it calls tools, checks the results, picks the next action and keeps going until it finishes or gets stuck. Anthropic separates workflows, where code defines the steps in advance, from agents, where the model directs its own process.
How much autonomy should an AI agent have?
Pick a level per workflow and raise it with evidence. Feng, McDonald and Zhang describe five levels by the user's role: operator, collaborator, consultant, approver and observer. Most teams should start with the agent suggesting or drafting, then allow low-risk actions with approval, and go further only after evals and logs show the workflow holds up.
What is the lethal trifecta for AI agents?
It's Simon Willison's name for an agent that can read private data, sees untrusted content and can send data out. With all three, an attacker can plant instructions in a web page, email or issue that make the agent leak your data. The safest fix is to never combine all three in one agent.
How do you test an AI agent before giving it more autonomy?
Build evals. Anthropic suggests starting with 20 to 50 simple tasks taken from real failures, grading the outcome the agent produced and reading transcripts to make sure your graders work. Use pass^k, where every run must succeed, for agents that customers rely on.
What is excessive agency in LLM applications?
It's a risk in the 2025 OWASP Top 10 for LLM applications: a system takes damaging actions because of unexpected or manipulated model output. The causes are too much functionality, too many permissions and too much autonomy. Mitigations include minimal tools, least privilege, authorization checks in downstream systems and human approval for high-impact actions.