What permission levels should an AI agent have?
There are four useful levels. Level one runs on your personal token. Level two gives the agent its own scoped token. Level three checks every tool call against a policy outside the prompt. Level four makes destructive actions wait for a human and logs every call. OWASP's 2026 agentic top ten lists identity and privilege abuse as risk number three.
The breakdown
Level 1: your personal token
The agent runs with whatever you can do. If you can delete a repo or move money, so can it. This is the default many teams start with, and it gives a hijacked agent your full blast radius.
Level 2: its own scoped token
Each agent gets a dedicated token limited to the repos and actions it needs. GitHub fine-grained personal access tokens can be limited to specific repositories and specific permissions. That alone cuts a lot of cross-repo damage.
Level 3: policy outside the prompt
Every tool call is checked against a policy that lives outside the model. A hijacked agent still hits a wall, because the rule is not sitting in the same prompt an attacker can rewrite.
Level 4: human gate plus audit log
Anything destructive waits for a person, and every call is logged. OWASP's ASI03 guidance for identity and privilege abuse points the same way: task-scoped, time-bound credentials, per-action authorization, and human approval for privileged or irreversible actions.
Why this ranks on OWASP's list
OWASP's Top 10 for Agentic Applications 2026 puts Identity and Privilege Abuse (ASI03) at risk number three. The ladder above is a plain way to talk about climbing from shared credentials to scoped identity and human gates. Be honest about which level you are on today.
The question at the end of the video: Which level is your team on, honestly?
Sources
- OWASP Top 10 for Agentic Applications 2026
- GitHub docs: Managing your personal access tokens (fine-grained)
FAQ
What are the four levels of AI agent permissions?
Level one: the agent uses your personal token. Level two: its own scoped token. Level three: every tool call is checked by a policy outside the prompt. Level four: destructive actions wait for a human, and every call is logged.
What is OWASP ASI03 for AI agents?
ASI03 is Identity and Privilege Abuse in OWASP's Top 10 for Agentic Applications 2026. It is risk number three on that list. The guidance centers on short-lived, task-scoped credentials and human approval for privileged actions.
Is a personal GitHub token safe for an AI agent?
It is level one. Whatever you can do, the agent can do. Prefer a fine-grained token scoped to the one repo and the few actions the agent needs, with an expiration date.
Where should agent permission checks run?
Outside the prompt, at level three or four. A rule written only in the system prompt can be rewritten by injection. A policy engine or human approval gate that the agent cannot edit is the stronger control.
































