Skip to content
mentoor

Topic 3 of 5 · 4 min read

Asking agent permissions without prompt fatigue

Goal: Rewrite three agent permission prompts so each states the action, the scope and the risk, and offers a scoped grant.

A good permission prompt states the action, the scope and the risk, and lets the user pick how long the answer lasts. If every request looks the same, people click Yes without reading, and the prompt protects nobody.

Check yourself · 1 of 3

Which three things should every agent permission prompt state?

Choose one answer

Why it matters

An agent needs permission for things that matter: reading a folder, running a command, sending a message, spending money. Ask too rarely and the agent does harm. Ask too often and the user gets prompt fatigue: they approve everything on reflex, including the one request that was dangerous. Anthropic's research on agent autonomy found that people grow more willing to let agents run on their own as they gain experience, so the system should make that easy to do safely, not force the same click forever.

What a prompt must say

  1. Action. The exact thing: "Run npm test", "Send an email to 3 customers", "Delete 12 files".
  2. Scope. Where and to whom: "in the project folder only", "to these 3 addresses".
  3. Risk. What could go wrong in plain words: "This cannot be undone" or "This will email real customers."
  4. Grant options. Not just Yes and No. Offer once, for this session, and always for this kind of action, plus a clear way to say no.

Fewer prompts, not fewer protections

Use rules, so repeated safe actions stop asking. A short allowlist lets read-only actions run silently. A denylist blocks things that should never happen, such as reading secrets. Everything between asks. Claude Code's permission system works like this, with allow, ask and deny rules scoped by tool and path. Group similar requests too: one prompt for "edit these 5 files in src" is better than five.

Before and after

Before: "The agent wants to run a command. Allow?"

The user cannot tell if it lists files or deletes a database.

After: "Run rm -r build/ in /projects/shop. Deletes the build folder (about 40 MB); it can be recreated by running the build. Allow: once / this session / always for build/ only / deny."

The second prompt names the command, the folder, the effect and the way back, and offers a scoped grant.

What goes wrong

  • Blanket grants. "Always allow commands" is too wide. Scope the grant to a folder, a command, a recipient list.
  • Same-looking prompts. A harmless read and a payment look identical, so the user stops reading. Make risk visible with wording and placement.
  • No memory. The agent asks the same safe question twenty times in a run.
  • Hidden denial. When the user says no, the agent should say what it will do instead, not silently fail.

A rule file is the same idea in config form:

{ "allow": ["Run npm test"], "ask": ["Run rm *"], "deny": ["Read .env"] }

Examples

Rewriting a weak prompt

Weak: "Agent wants access. Allow?"

Rewritten: "Read files in /projects/shop/src (read only, 120 files). Nothing is changed or sent. Allow: once / this session / always for src / deny."

The rewrite shows action, scope and risk, then offers grants of different lengths.

Rules that cut the noise

A coding agent asks 30 times a day to run tests. Add an allow rule for the test command in this project, keep an ask rule for any command that deletes, and a deny rule for reading .env. The user now sees three or four prompts a day, each one worth reading.

Key points

  • A permission prompt names the action, the scope and the risk in plain words.
  • Offer scoped grants: once, for this session, or always for one narrow kind of action.
  • Allow rules for safe actions and deny rules for forbidden ones leave real questions for the middle.
  • Prompts that all look alike teach users to click Yes without reading.
  • Group related requests, so one clear question replaces many repeated ones.

Common mistakes

  • Offering only Yes and No, with no scoped or time-limited grant.
  • Allowing a whole category such as 'all commands' because asking each time was annoying.
  • Making low-risk and high-risk prompts look identical.
  • Asking again for an action the user already approved for this session.

Check yourself · 2 of 3

Users approve every prompt without reading, even a risky one. What is the best design response?

Choose one answer

Check yourself · 3 of 3

A user picks 'always allow' for a request to delete files in the build folder. What should the grant cover?

Choose one answer

Practice items, not counted towards your mastery.

Start here