blog /

AI Coding Agent Approval Fatigue: Why Prompts Create Risk

People confuse two things here: an agent that asked for permission, and a developer who actually reviewed the request. The one-line difference is attention. A prompt you read is a control, and a prompt you click through is a receipt. AI coding agent approval fatigue is the slide from the first to the second. The agent asks so often that saying yes becomes a reflex, while the prompts keep appearing and stop protecting anything. Anthropic reports that Claude Code users approve 93% of permission prompts. That number is what a reflex looks like, and this post shows how to get back to prompts you actually read.

When AI coding agent approval fatigue turns prompts into risk

A permission prompt shows the text of a command, not what the command will do. That gap is where fatigue turns into risk. Say an agent edits your code and asks to run npm test. The name looks routine, but the test script lives in package.json, which the agent can rewrite. A long command joined with && can hide one risky step among routine ones. Text planted in a file or a web page can steer the next action toward something you never asked for. Each of these arrives in the same prompt format as the harmless ones, and after the fortieth prompt of the session they all get the same answer.

The fix starts with drawing the exact trust boundary before the session starts. Sort every action the agent might take into two piles. The first pile holds steps that stay inside the project and can be undone: reading files, editing tracked source, running the local test suite. The second pile holds steps that reach outside or cannot be taken back: deleting data, touching credentials, changing shared infrastructure, sending anything to another person or service, and running anything with production access. Only the second pile deserves a human prompt. Everything in the first pile should be pre-approved by a rule or contained by a sandbox, so it never interrupts you at all. If you want the wider picture first, read what supervision of coding agents means.

Threats and common unsafe shortcuts

The table below is the prompt-risk taxonomy for this post. Use it to decide which requests keep their prompts and which shortcuts are never acceptable.

RiskExample requestWhy a tired reviewer misses it
Destructive local actionRecursive delete aimed at the repo root or home directoryIt arrives looking like cleanup
Scope escapeReading cloud credentials or cluster config filesIt arrives looking like debugging
Shared-state damageResetting a database that turns out to be shared stagingIt arrives looking like a local test reset
Indirect executionA named script or a download piped into a shellThe name looks routine while the payload lives elsewhere
Permission escapeTurning off prompts or allowing every shell commandIt removes the gate instead of fixing the noise

The last row needs attention because it is the most tempting. Four shortcuts promise relief, and each one trades a noisy control for no control:

  • Claude Code offers bypassPermissions mode and a --dangerously-skip-permissions flag. The docs warn to use that mode only in isolated environments like containers or VMs where the agent cannot cause damage. Deny rules still block even there. (permissions, permission modes)
  • Codex offers --yolo, an alias for its bypass flag. That flag runs with no sandbox and no approvals, and the docs label it elevated risk and not recommended. The documented middle ground is the Auto preset, --sandbox workspace-write --ask-for-approval on-request, where reads, edits, and commands inside the working directory run while edits outside it and network access ask first. (agent approvals and security)
  • OpenCode offers --auto, which approves every permission request that is not explicitly denied. Explicit deny rules still hold under it, so it removes noise without removing the hard boundary. (permissions)
  • Blanket allow rules such as shell-wide access patterns silence prompts by approving everything up front. Anthropic notes that entering auto mode strips rules known to grant arbitrary code execution, including blanket shell access, precisely because a reviewer then never sees the commands most able to cause damage. (Anthropic's auto mode write-up)

Handing approvals to a second agent sounds clever and has the same flaw as the shortcuts above. A second agent given the same context and instructions is not an independent check. It is a rubber stamp with extra steps. Even Claude Code's auto mode, where a separate classifier model reviews actions, is reported by Anthropic at a 17% false-negative rate on real overeager actions, which the same post calls the honest number. Keep the human prompts few, and keep them human.

Construct the bounded policy

A bounded policy has three layers: pre-approve the routine, keep a prompt for the risky, and deny the unacceptable. Deny always wins, so write the deny list first. The examples below follow the documented precedence of each tool.

In Claude Code, rules evaluate deny, then ask, then allow, and an allow rule cannot carve an exception out of a deny rule:

{
  "permissions": {
    "allow": ["Bash(npm test *)", "Bash(git commit *)"],
    "ask": ["Bash(git push *)"],
    "deny": ["Bash(rm -rf *)", "Read(./.env)"]
  }
}

In Gemini CLI, each rule carries a priority and the highest priority wins. An ask_user decision is treated as deny outside interactive sessions. (Gemini policy engine)

[[rule]]
toolName = "run_shell_command"
commandPrefix = "npm test"
decision = "allow"
priority = 50

[[rule]]
toolName = "run_shell_command"
commandPrefix = "git push"
decision = "ask_user"
priority = 100

[[rule]]
toolName = "run_shell_command"
commandPrefix = "rm -rf"
decision = "deny"
priority = 200

In OpenCode, the last matching rule wins, so put the catch-all first and the specific rules after it:

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "bash": {
      "*": "ask",
      "git status *": "allow",
      "git push *": "deny"
    }
  }
}

Two details make these policies livable. First, let routine approvals persist: for Bash commands, Claude Code's "Yes, and don't ask again" saves the rule permanently per repository and command, which steadily drains the noise out of repeat work. Read those saved rules now and then, because each one is a standing yes (permissions). OpenCode's always is narrower: it lasts for the rest of the current session (permissions). Second, recheck the policy when the task changes. A rule that was safe for a local feature branch, such as pushing to it, needs a second look the week the agent starts touching release branches. The boundary-building walkthrough covers that review in depth.

Test exceptions, denial, and escalation

Rules alone are not enough, because argument patterns are fragile. A rule written for curl does not match the same program invoked by full path or wrapped in another shell, so pair the rules with a hook that inspects the full command text and fails closed. Fail-closed means a broken guard blocks instead of permitting: in Claude Code and Gemini CLI, a hook that crashes or exits with an unexpected code lets the action run, and for Codex the docs do not state what a crash does, so the script below catches its own errors and answers every block with the documented blocking signal either way.

The guard below watches Bash commands for three patterns: a forced recursive delete of the root, of the home directory, and a download piped into a shell. It is a small illustrative list, not a complete catch: rm -rf ~/old and rm -rf $HOME/old pass, because the pattern aims at the root and home directory themselves. Anything that matches no pattern exits 0 with no decision, which leaves the normal permission flow in charge.

#!/bin/bash
# deny-destructive.sh: fail-closed PreToolUse guard for Bash commands.
set -eE
trap 'echo "guard failed closed: inspection unavailable" >&2; exit 2' ERR
if ! command -v jq >/dev/null 2>&1; then
  echo "guard failed closed: jq is missing" >&2
  exit 2
fi
input=$(cat)
command_text=$(printf '%s' "$input" | jq -r '.tool_input.command // empty')
if [ -z "$command_text" ]; then
  echo "guard failed closed: no command found" >&2
  exit 2
fi
if printf '%s' "$command_text" | grep -Eq 'rm[[:space:]]+(-[A-Za-z]+[[:space:]]+)+(/(\*|[[:space:]]|$)|~/?\*?([[:space:]]|$)|"?\$HOME/?\*?"?([[:space:]]|$))|(curl|wget)[^|]*\|[[:space:]]*(sudo[[:space:]]+)?(ba)?sh([^_A-Za-z0-9]|$)'; then
  echo "blocked by policy: destructive or piped-execution pattern" >&2
  exit 2
fi
exit 0

Wire it into Claude Code with the documented hook shape, matching on the Bash tool:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          { "type": "command", "command": "/path/to/deny-destructive.sh" }
        ]
      }
    ]
  }
}

Exit code 2 is the blocking signal here: the call is cancelled and the text on stderr goes back to the agent as the reason. An exit code of 0 with no output means no decision, and the normal permission flow continues, which is why the script reserves exit 2 for blocks and for its own failures. (hooks reference, Codex hooks)

Test the guard with three inputs before trusting it: one routine command that must pass, one destructive command that must be blocked, and one broken input that must still block. Pipe each JSON object into the script on stdin, exactly as the tool sends it. Then test the escalation path on top: decide in advance what repeated denials mean. A workable rule is two denials in a row pausing the task for a human review of the transcript, because an agent pushing twice against the same boundary is either confused or compromised, and neither case improves without you.

How to audit the resulting action

Stop reviewing each step and start reviewing each outcome. Approve the plan up front, let the bounded policy handle the steps, then audit once at the end: read the diff, run the tests, and check that the change does what the plan promised. After the agent commits, git diff --stat shows nothing, so compare branches instead with git diff main...HEAD and read every hunk the agent added.

Two defaults are worth knowing while you audit. OpenCode asks before reading .env files by default and also asks on doom_loop, the guard that fires when the same tool call repeats 3 times with identical input, so a stuck agent surfaces itself instead of spinning quietly. Treat those prompts as audit leads: a credential read you had to approve or a repeated identical call tells you where the agent struggled, which is where your review should look hardest. Fewer prompts per session is the goal, and the fatigue follow-up shows how to cut volume while every safety gate stays in place.

Keeping approvals readable with qoop

This is where a supervisor earns its place. qass runs in its own tab and is told when an agent stops: it answers what its rules let it answer and turns the remainder into cards on a small board, so you answer each open question with one key instead of walking through every terminal.

Its rules draw a similar line to the boundary in this post. Anything that deletes, releases, touches production or money, or goes external (email, a post, a message, an issue comment, or a publish), always comes to you. It never answers "always allow" on your behalf, saying yes only when the shown command is read-only, or stays in the repo and can be undone. Corrections you give it are kept as short saved lessons for routine reversible steps, and those lessons can never override the always-ask list.

Because qoop names the agent waiting for an answer in one row at the top and tells you when one blocks, fails, or finishes, the prompts that survive your policy meet you instead of waiting in a background tab. The policy keeps the count low, and the workspace makes each remaining prompt easy to find. This describes how qass is told to behave, not a security guarantee: the agent's own permissions and your guard script still decide what actually runs.

If approval noise is your problem, sign up and give the few prompts that matter a direct path to you.