Pattern 18 · Agents

Agent permissions & scopes

People connect an agent to email, files and payments once, then cannot see or narrow what it is allowed to touch.

By Alex StepikinUpdated November 20264 min readLive demo
Live demo · try it

An interactive mock built in plain HTML, CSS and JavaScript. Data is fictional; no model is called.

FitWhen to use it — and when not

Use it when

  • Agents connected to several apps (mail, calendar, drive, CRM, payments)
  • Teams where an admin sets limits and members work inside them
  • Any agent that can write, send or spend without a human watching

Skip it when

  • A chat assistant with no tools — there is nothing to grant
  • Single-purpose automations where the one scope is chosen at setup and never changes

AnatomyThe parts of the pattern

  1. Connection listEvery connected app with the account it uses.
  2. Scope rowsRead, write and send/spend as separate rows, never one "full access" switch.
  3. Grant levelAllowed, ask each time, or off, per scope.
  4. Usage lineWhen the scope was last used and by which run.
  5. Expiry and revokeTime-limited grants and a revoke that takes effect immediately.

GuidelinesDo & don’t

Do

  • Split read from write from send so people can say yes to reading without saying yes to sending.
  • Show the last time each scope was used; unused grants are candidates to remove.
  • Default new write and send scopes to "ask each time".

Don’t

  • Hide permissions in the OAuth screen only — people forget what they accepted.
  • Bundle unrelated scopes behind one toggle.
  • Let revoke wait for the next sync or the next run to take effect.

In the wildReal-world examples

Claude Code (permission rules)ChatGPT connectorsGitHub App permissionsGoogle Account third-party access

Products named for reference only — no affiliation, and the demo above is an original illustration, not a copy of their UI.

For engineersImplementation notes

  • Check grants in the tool layer on every call, not only when the plan is made — a grant can be revoked mid-run.
  • Request narrow OAuth scopes and add more incrementally when a task needs them.
  • Store each grant with who set it, when and an optional expiry; log denied calls so the UI can explain why a step stopped.

See alsoRelated patterns

All 32 LLM UX patterns

Need this in your product?

I design interfaces for AI products and agents: approvals, run history, undo, and the small states people notice in daily use. A 1–2 day sprint reviews your app and redesigns one core flow in Figma, at a fixed price from $400 per day. Related case: Atlas, a control room for a fleet of AI agents.

Book a callSee the Atlas case

Create bold.
Deliver better.

See our workGet in touch