r/ClaudeCode • • 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?

https://arxiv.org/abs/2611.10058

15 Upvotes

24 comments sorted by

•

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?

2

u/akorecebov 3d ago

no, and they say so in the limitations. they asked if people restricted access or required approval for risky actions, but didnt ask about allowlists at all. so some of that 61% could be people who already allowed most things in settings and only clicked through whatever was left)

1

u/Ok-Option4233 2d ago

ok so that's a real gap. if most of the risky stuff was already allowed or denied in settings, clicking through the leftovers is a sane habit, not a careless one. a cheap follow-up for them would be two numbers per person: rules in the settings file, prompts per session.

3

u/SummitYourSister 3d ago

Can you please not write with AI?

“For what nobody decided in advance” is AI phrasing.

Please write yourself

1

u/Fuckreddit6973 3d ago

What lmao... does his formatting look like AI to you...? I doubt even an 'AI detector' from 2023 would determine that.

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?

1

u/akorecebov 2d ago

neither really. they only asked if people restricted agent access or needed approval before risky actions, nothing about allow vs deny lists. and the chained one is nasty, the prompt starts with npm test and your brain files it as safe before it even gets to the curl

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:

  • Allow the boring stuff in settings. Read-only and local commands you'd never refuse: git status/diff/log, your test runner, linter, type checker, ls, grep. That removes most of the noise.
  • Deny the things you'd never want, instead of hoping to catch them. Deny rules for reading .env*, ~/.ssh, ~/.aws, and for git push --force, rm -rf outside the repo, curl | sh. A deny rule doesn't depend on your attention at 6pm.
  • Sandbox for the middle. Claude Code's sandbox mode limits what bash can write and reach on the network, so commands inside the boundary can run without asking. Then the prompts you do see are the ones that try to step outside it, which are exactly the ones worth reading.
  • Network is the one to stay strict on. It matches the survey's most waved-through category, and it's where a prompt injection actually gets data out. Allow-list the domains you use (your package registry, your API) rather than approving fetches one by one.

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?