r/ClaudeCode • u/akorecebov • 3d ago
Discussion Survey of 203 devs using coding agents: people who review code carefully still click approve on commands without looking
Read a new survey of 203 developers who use coding agents (NC State, arXiv 2611.10058) and one number stuck with me.
Among people who said they carefully review most or all of the code the agent writes, 61% still often approve at least one type of agent action without a close look. Running commands, reaching the internet or external APIs, touching files. Careful code review just doesn't carry over to the permission prompt.
Other bits from it:
- the least waved-through action was reading secrets or sensitive files (21%), the most was internet, API and connected tool access (36%)
- people who knew of a security incident with agents were more likely to wave things through, not less (70% vs 43%). the authors think heavy users both hear more stories and click approve more
- 83% said agents lowered their workload, but 63% found at least half of the supervision tasks very or extremely demanding
- half admitted they sometimes approved code they didn't fully understand because rewriting it would take too long
- asked what would make them give an agent more autonomy, people didn't just say "be more reliable". a lot of answers were about agents being bounded (limits you set once), observable (show what they did and why) and reversible (checkpoints, rollback)
My guess why the prompt fails: a diff sits there and you can come back to it. a permission prompt asks you to predict what a command will do before it runs, mid task, while your head is somewhere else. so it turns into muscle memory.
Limits: one-time survey, self reported, so no cause and effect.
How do you have Claude Code permissions set up? allowlist in settings and approve the rest by hand, or mostly auto with a sandbox around it?
•
u/AutoModerator 3d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/Ok-Option4233 3d ago
the 61% says the permission prompt is the wrong place to decide. claude code takes allow and deny rules in its project settings file, so reading secrets can be denied once and the prompt only shows up for what nobody decided in advance, which is pretty much the "limits you set once" answer from the survey. does the paper split people who use rules from people who click through every prompt?
8
u/AryanThakor 3d ago
internet access being the most waved through makes sense to me, a curl looks harmless in the prompt but its the one that can send stuff out. and a lot of these are chained commands like `npm test && curl ...` where your eye stops reading after the first part
1
u/Present_Cow4017 2d ago
The 61% fits what the prompt hides: a chained npm test && curl looks like one safe command, and your eye stops after the first part. Allow/deny rules at the tool level seem safer than reading each prompt. Did the survey ask who actually uses deny lists, or only allow lists?
3
u/leo_heo 3d ago
we try to settle that before the run. the task spec says what it can touch and what needs a yes, so a prompt mid task means something unplanned and i actually read it
3
u/Rhyobit 3d ago
Amazing article, thank you for linking it! We're early doors for implementation, so I've taken the everything must be manual, and hedges against this issue by requiring peer review before deployment.
We gate Internet access behind our SWG which builds DLP into the process.
I haven't set up a dedicated Mcp yet but that is my next decent ticket item on the list, hopefully with an AI gateway from the likes of F5 or Fior along with it. Combined with MSAL, and OTEL I'm hoping this wi give our secops guys enough Intel and control. Local Mcp will be disabled by default and all skills will be sourced from the curated server, with the option to request new skills and integrations via our governance board.
2
u/CCodeSI 3d ago
Your guess matches what makes prompts work or not: a prompt is only useful when it's rare enough that you actually read it. If it fires 40 times a session, it's training you to press enter.
The setup that keeps prompts rare and meaningful:
git status/diff/log, your test runner, linter, type checker,ls,grep. That removes most of the noise..env*,~/.ssh,~/.aws, and forgit push --force,rm -rfoutside the repo,curl | sh. A deny rule doesn't depend on your attention at 6pm.After that, the only prompts left are unusual ones, and unusual is what you can actually pay attention to.
1
u/NachosforDachos 3d ago
I have a agent just to do this
1
u/riccioverde11 3d ago
What constitutes a "dev" tho? In terms of seniority, or anyway, competence? Literally the difference between a bad and good app is mostly how the dev thinks
1
u/radim11 3d ago edited 2d ago
Not surprising I guess. Do you keep one set of rules per repo, or does it depend on the task? We’ve been working on this with Stashbase. A session that just runs unit tests usually needs no API credentials. One that files a Linear issue only needs access to that action.
1
u/dsggut 3d ago
So basically habituation and fatigue.
1
u/leweir 2d ago
The permission prompt asks for a decision on every single action, so people stop reading it. What helped me was making most of those decisions once, during setup. Each step runs in a throwaway sandbox with a restricted filesystem, real keys stay outside it and get injected when the request goes out so the agent never sees them, and only the irreversible part (pushing a commit) needs a human. When there are only a few prompts and each one matters, people actually read them. I'm building an open-source flow engine around this idea (disclosure: it's mine, early, single-machine on macOS with docker compose): https://github.com/leweii/myorch
1
u/BarathKanna 2d ago
That 61 percent makes sense once you notice code review and permission prompts are different jobs. Code sits there waiting for you. A prompt interrupts you mid thought, fifty times a session, and saying no breaks your own flow. People aren't careless, the interface trains them to click yes.
The fix is fewer prompts that matter more. Allow the boring stuff outright: reads, tests, lint, builds inside the repo. Hard deny the scary stuff: secrets, network beyond a short allowlist, anything outside the working dir. Then the few prompts left are rare enough to actually read.
The incident finding is the depressing one. Hearing horror stories doesn't make people careful, it just normalizes them.
1
u/Financial_Leader9701 2d ago
probably the scariest one is when curl just hides after npm test, you hit yes and then some chaos happens
i always set allow/deny once in settings, so the prompt only shows up for stuff i didn't even plan to do
1
u/athershu 3d ago
The incident number makes sense to me. Whoever answers the prompt is always the person in the middle of a task, and mid-task the cheapest answer is yes.
What helped us was moving that call to someone who isn't mid-task. The allow and deny lists live in the project settings and change by PR like any other code, so "can agents hit this API" gets argued once, calmly, with the diff in front of people. After that the prompt shows up rarely enough that people actually read it.
0
u/Ok_Tea4891 3d ago
The gap makes sense because a permission prompt asks for a judgment with no context, and reviewing a diff gives you something to read. One thing that helps is making the prompt rarer rather than the reviewer better: deny the sensitive reads outright and allow the routine commands by exact form, so a prompt only appears for something unusual and gets real attention. Network and connected tools are the 36% group, so I'd treat each tool as its own allow decision instead of one blanket yes. Did the survey say whether people who had configured rules still clicked through the remaining prompts?