Dev.to AI 🤖 Ai 👁 0 📖 7 min read

I audited 30 days of my AI coding agent. Here is who approved 236,734 actions.

Since 2016 I have built developer tools and crypto products. In that world one rule is sacred. Nothing moves without the right approval. So we built custody setups, signing policies, multisig wallets and four-eyes check

I audited 30 days of my AI coding agent. Here is who approved 236,734 actions.

Since 2016 I have built developer tools and crypto products. In that world one rule is sacred. Nothing moves without the right approval.

So we built custody setups, signing policies, multisig wallets and four-eyes checks. A signing policy is boring on purpose. It says who can approve what, up to which amount, and it keeps a record of every approval. When something goes wrong, you can always answer one simple question: who approved this?

This year AI coding agents started doing most of my engineering work on a production codebase. They run shell commands, edit files, push code and work on the systems I run. At some point I realised I could not answer that same question for them. So I measured it.

Last week I shared the first numbers in a short post. Some of you asked how I measured them and what I changed after. This is the long version.

How I measured it

Claude Code, the agent I use, writes down a permission decision for almost every action it takes. You find it in the session transcripts on your own machine, in the folder ~/.claude/projects. The field is not documented, but it is there in recent versions. For each action it says who let it run: a rule in your settings, the AI classifier, or you.

I took 30 days of my transcripts, from 22 October to 20 November 2026. That is 1,744 transcript files. 236,734 of the 237,087 tool calls in them carry a recorded decision.

One detail matters for honest counting. When you resume or fork a session, Claude Code copies the earlier history into the new transcript. 864 tool results (0.36%) were such copies. I count every tool call only once.

Who approved them

  • Static allow-rules in my settings approved 72.7%.
  • The AI classifier in Claude Code's auto mode approved 26.7%.
  • I approved 12 actions myself, through a permission prompt. That is 0.005%.

Who approved 236,734 actions in 30 days: static allow-rules 72.7%, the AI classifier 26.7%, the author through a prompt: 12

Twelve, out of 236,734. Nine of them were artifact publishes and three were shell commands.

Two caveats, to be fair. 72 more times I answered a question the agent asked me, like picking an option. Those are answers, not approvals, so they are not in the 12. And when I type "yes, push it" in the chat, nothing records it as an approval. So my approvals in the chat are not counted at all.

Where the actions ran

Then I asked a second question. Where did all these actions happen?

  • 69.2% ran inside subagents, the helpers the main agent starts on its own. That is 163,736 actions, and a human approved none of them.
  • 28.4% ran in main sessions, where I was at the keyboard. All 12 of my approvals happened there.
  • 2.5% ran in sessions with a loop, like /loop or /goal, where the agent keeps working on its own schedule. A human approved none of those either.

This is where agent engineering is going: loops, harnesses, whole graphs of agents that work for hours. The approval side has not caught up. When nobody is watching, the answer to "who approved this?" is a rule or a classifier.

How "always allow" turns into permanent rules

How did I end up here? Not by design. By clicking.

Every time the agent asks for permission and you choose "always allow", Claude Code writes a rule into your settings. The rule does not expire, and nobody reviews it later. After a few months I had 1,293 allow-rules, zero deny rules and zero ask rules.

Some of them were broad wildcards, like git:* or python3:. A rule like python3: does not allow one script. It allows any Python program the agent writes, today or later. And git:* allows a local commit, but also a push. By my estimate, more than 29,000 shell actions in those 30 days went through only because of a broad wildcard rule like these, mostly git:*. That is a lower bound.

Most of the rules did nothing at all. About 85% of my shell allow-rules never approved a single command in the 30 days (also an estimate). I clicked them once, for one task, and forgot them. Some even had local database credentials written inside them.

In my old world, nobody would sign off on a policy with 1,293 entries that no one reads. But that is exactly what I had built, one click at a time.

Labelling 1,099 actions by hand

Counting who approved what is one thing. The harder question is which of those actions really needed a human.

So I did something unglamorous. I hand-labelled 1,099 of my agent's actions. I labelled them blind, so I could not see whether a rule, the classifier or I had approved each one. For every action I asked one question. Should a careful human have been asked before this ran?

27 times the answer was yes.

A word of caution about that number. I picked the 1,099 actions to over-represent risky ones, so 27 out of 1,099 is not a rate. It shows where the risk sits, not how much of it there is.

27 of 1,099 hand-labelled actions should have asked a human first

What surprised me is where those 27 were. There were none among reads, file edits, builds or local git. 23 of them fell into four kinds of action:

  • handling secrets (9)
  • writes to systems I run (8)
  • destructive commands (4)
  • pushes to protected branches (2)

This changed how I think about guards. The risky part is narrow. A guard does not need to understand everything my agent does. It needs to recognise a few kinds of action reliably, and stay out of the way for the rest.

What I changed

1. I deleted 320 allow-rules. I went from 1,293 rules to 973.

2. No more wildcards for interpreters and remote shells, like python3:* or ssh:*. They allow basically anything.

3. Secrets out of the rules. A credential has no place in a permission rule.

4. One small hook. I wrote a hook that asks me before production writes, CI triggers and pushes to main, and stays quiet for everything else.

I replayed it on 30 days of my real shell commands. Out of 173,959 commands, it would have asked me 15 times. I went through all 15 by hand. 9 were exactly right. The 6 wrong ones taught me more. All 4 CI triggers were runs I am happy to let the agent start. The other 2 were read-only greps whose search text only mentioned a cloud command. So I took CI runs out of the hook.

5. I turned the cleanup into a command. I did my own cleanup by hand, and it took an afternoon. So I added it to vetobench as vetobench fix. By default it is a dry run. It only counts what it would remove: rules that hold a secret, broad wildcards like python3:*, and shell rules that never approved anything in your history. With --write it first copies every settings file into a backup folder that only you can read. Then it edits only the list of allow-rules and leaves the rest of the file as it was. If it removes a rule you still need, the rule comes back the next time you approve it.

The tool

If you use Claude Code, you can see your own split with one command in a terminal:

npx vetobench

It reads the transcripts already on your machine and prints a card like the chart above. It has no network code and no dependencies, and CI runs every mode with the network switched off. The output is counts only: no commands, no file paths, no secrets. So the card is safe to paste in public.

It is open source under Apache-2.0, and the code is short enough to read in one sitting: github.com/vetobench/vetobench

The same CLI grew the tools I needed for my own setup:

  • npx vetobench fix cleans up allow-rules: wildcards on interpreters and remote shells, rules with a secret written inside, and shell rules that never approved anything in your history. The first run is a dry run; with --write every settings file is backed up first.
  • vetobench hook install adds a small hook that asks before production writes, CI triggers and pushes to main, and vetobench hook test checks that it actually runs in your setup.
  • vetobench policy check tests that hook's policy before you rely on it.
  • vetobench headless shows who approves your agent when nobody is there to answer a prompt.

Every number in this article has a line in a public ledger, CLAIMS.md, with the exact command that reproduces it on my transcripts. When I get a number wrong, the correction goes in the changelog, and the old number stays in the ledger, marked as corrected.

What's next

The card is the first half. The second half is an open benchmark of agent permission guards, the tools that decide whether an agent's action runs, asks or gets blocked. I will measure them on real agent traffic, labelled by hand like the 1,099 actions above.

The results come out in January 2027. Before that, every guard's authors get their numbers 14 days before I publish, with a right to reply. So there are no results in this article, only the method.

I will keep sharing the journey here. The project also posts updates on X as @vetobenchai.

If you run AI agents on real systems, which actions would you still want to approve yourself? I am curious where you draw the line.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.