<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Samuel Šramko</title>
    <description>The latest articles on DEV Community by Samuel Šramko (@samthebuilder_eth).</description>
    <link>https://dev.to/samthebuilder_eth</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4275841%2F9f7a3126-5259-41a8-a0ff-de10db67293a.jpg</url>
      <title>DEV Community: Samuel Šramko</title>
      <link>https://dev.to/samthebuilder_eth</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samthebuilder_eth"/>
    <language>en</language>
    <item>
      <title>I audited 30 days of my AI coding agent. Here is who approved 236,734 actions.</title>
      <dc:creator>Samuel Šramko</dc:creator>
      <pubDate>Tue, 01 Dec 2026 08:00:46 +0000</pubDate>
      <link>https://dev.to/samthebuilder_eth/i-audited-30-days-of-my-ai-coding-agent-here-is-who-approved-236734-actions-2bh8</link>
      <guid>https://dev.to/samthebuilder_eth/i-audited-30-days-of-my-ai-coding-agent-here-is-who-approved-236734-actions-2bh8</guid>
      <description>&lt;p&gt;Since 2016 I have built developer tools and crypto products. In that world one rule is sacred. Nothing moves without the right approval.&lt;/p&gt;

&lt;p&gt;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?&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I measured it
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who approved them
&lt;/h2&gt;

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fishsfwwi47etcww8cxem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fishsfwwi47etcww8cxem.png" alt="Who approved 236,734 actions in 30 days: static allow-rules 72.7%, the AI classifier 26.7%, the author through a prompt: 12" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Twelve, out of 236,734. Nine of them were artifact publishes and three were shell commands.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the actions ran
&lt;/h2&gt;

&lt;p&gt;Then I asked a second question. Where did all these actions happen?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;28.4% ran in main sessions, where I was at the keyboard. All 12 of my approvals happened there.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How "always allow" turns into permanent rules
&lt;/h2&gt;

&lt;p&gt;How did I end up here? Not by design. By clicking.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Some of them were broad wildcards, like git:* or python3:&lt;em&gt;. A rule like python3:&lt;/em&gt; 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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Labelling 1,099 actions by hand
&lt;/h2&gt;

&lt;p&gt;Counting who approved what is one thing. The harder question is which of those actions really needed a human.&lt;/p&gt;

&lt;p&gt;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?&lt;/p&gt;

&lt;p&gt;27 times the answer was yes.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fztu2s9xtgkapavtwqr99.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fztu2s9xtgkapavtwqr99.png" alt="27 of 1,099 hand-labelled actions should have asked a human first" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;handling secrets (9)&lt;/li&gt;
&lt;li&gt;writes to systems I run (8)&lt;/li&gt;
&lt;li&gt;destructive commands (4)&lt;/li&gt;
&lt;li&gt;pushes to protected branches (2)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. I deleted 320 allow-rules.&lt;/strong&gt; I went from 1,293 rules to 973.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. No more wildcards for interpreters and remote shells&lt;/strong&gt;, like python3:* or ssh:*. They allow basically anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Secrets out of the rules.&lt;/strong&gt; A credential has no place in a permission rule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. One small hook.&lt;/strong&gt; I wrote a hook that asks me before production writes, CI triggers and pushes to main, and stays quiet for everything else.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. I turned the cleanup into a command.&lt;/strong&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tool
&lt;/h2&gt;

&lt;p&gt;If you use Claude Code, you can see your own split with one command in a terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vetobench
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

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

&lt;p&gt;The same CLI grew the tools I needed for my own setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;npx vetobench fix&lt;/code&gt; 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 &lt;code&gt;--write&lt;/code&gt; every settings file is backed up first.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;vetobench hook install&lt;/code&gt; adds a small hook that asks before production writes, CI triggers and pushes to main, and &lt;code&gt;vetobench hook test&lt;/code&gt; checks that it actually runs in your setup.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;vetobench policy check&lt;/code&gt; tests that hook's policy before you rely on it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;vetobench headless&lt;/code&gt; shows who approves your agent when nobody is there to answer a prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I will keep sharing the journey here. The project also posts updates on X as @vetobenchai.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>devtools</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
