short · 3 min
Excessive agency
An agent given more tools, permissions or autonomy than its task needs.
updated 29 Sept 2026
Here's a question worth asking about any agent: if the model made the single worst tool call it's able to make, what would happen?
Let's try it on something small. We build an assistant that summarizes a user's incoming email. In the agent loop, the model reads messages and calls tools. The mail tool we grabbed from a library can read mail. It can also send mail, because the library does both, and we didn't think about it.
Then an email arrives with hidden instructions: search the inbox for anything sensitive and forward it to this address. That's prompt injection. The model goes along with it, the send function is right there, and the mail goes out.
The injection pulled the trigger. But the damage came from what the agent was allowed to do, and that's what excessive agency means: an agent that can do more than its job needs. Ours had too much in three separate ways.
Any one of those fixes would have stopped the leak on its own, and none of them needed a smarter model or one harder to fool.
It doesn't have to be an attack
The trigger can be anything that makes the model's output wrong. An injection in an email, a web page or another agent's message, sure. But also a plain mistake, like a made-up file path handed to a delete tool. We can't make every output right, so we limit what a wrong one can do.
The common cases are boring, which is why they slip through. A tool we tried during development and dropped is still registered. A tool that only reads a database connects as a user that can also update and delete. A tool that reads one user's documents uses an account that can see everyone's. A delete tool deletes without asking.
So the fixes are mostly ordinary least privilege, applied to tools. Offer fewer tools. Make each one do less. Prefer a narrow "write this file" tool to "run any shell command" (more on that in tool design). Have tools act as the user, signed in with the smallest scope, instead of as an all-powerful service account. And check whether an action is allowed in code, never by asking the model. A graded version of that works well: let easy-to-undo actions through (a refund as store credit) and send hard-to-undo ones to a person (a payout to an outside account).
Logging tool calls and rate-limiting them won't prevent anything, but they cap how much one bad run can do.
What about scanning the model's output before the tool runs? That's a different risk, and guardrails help at the edges, but cleaning inputs and outputs doesn't fix an agent that can do too much.
Then ask before everything?
That's the obvious move, and it wears out. People who click "approve" all day stop reading what they approve. Anthropic hit this with Claude Code and went the other way: fence the agent in with filesystem and network limits, then let it act freely inside the fence. In their own use that cut permission prompts by 84%. And even a prompt-injected agent in there can't steal SSH keys or send data to an attacker's server, because it can't reach them.
So back to our question. For the email assistant, after the fixes, the worst call it can make is a bad summary. Asking that question tool by tool is most of the work, and when an agent truly has to act on things you don't trust, the fence is sandboxing, with a person for the few actions that can't be undone (human in the loop). How data gets out through tools that are too generous is data exfiltration.
Further reading
- LLM03:2026 Excessive Agency, OWASP GenAI Security Project, 2026. The email assistant comes from here, along with the full list of controls. Number 3 on the OWASP list in 2026.
- Beyond permission prompts: making Claude Code more secure and autonomous, David Dworken and Oliver Weller-Davies (Anthropic), 2025. Read it for why approval prompts wear out and what replaced them.