Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 4 min read

93% of the merged code in one repo came from an agent. I built a one-command check that proves it

GitHub Octoverse 2026 (2026-10-28) reports over 40% of pull requests now start from an agent first draft, and 110 million agent-started PRs in September 2026 alone. LinearB's 2026 benchmarks (8,109,244 PRs) show AI PRs m

93% of the merged code in one repo came from an agent. I built a one-command check that proves it

GitHub Octoverse 2026 (2026-10-28) reports over 40% of pull requests now start from an agent first draft, and 110 million agent-started PRs in September 2026 alone. LinearB's 2026 benchmarks (8,109,244 PRs) show AI PRs merging within 30 days at 32.7% vs 84.4% manual, and agentic PRs waiting for pickup P75 1,055 minutes vs 201 minutes unassisted. A CMU/Stanford study of 196,212 PRs found per-reviewer load nearly doubling while the share of PRs with human review fell from 89% to 68%.

Those are industry numbers. Nobody could answer the smaller question: what is the mix in this repo, right now?

I built a small CLI to answer it. It is called agentmix, and it measures the agent/human mix of merged code from your own git history, in one command, with no signup, no token, and no cloud.

What it found on real repos

Measured 2026-12-03, from live git history:

$ agentmix measure --since 2026-11-01 ../lighthouse
Commits: 24 | Agent lines: 93% | Verdict: AT-RISK
  (19 of 24 commits carry the Claude marker)

$ agentmix measure --since 2026-10-01 ../rust-playground
Commits: 644 | Agent lines: 97.9% | Verdict: AT-RISK
  (578 of 644 commits carry the Copilot trailer)

$ agentmix measure ../diffgate
Commits: 9 | Agent lines: 0% | Verdict: HEALTHY
  (all HUMAN, no agent signal detected)

93% of the merged lines in one repo, 97.9% in another, and 0% in a third. Same tool, same rules, opposite answers. That is the point: the mix is a property of the repo, not of the industry average.

How it classifies a commit

agentmix reads git log --numstat (read-only, nothing else) and classifies every commit as AGENT, HUMAN, or UNKNOWN:

  • AGENT - the commit matches a verified agent signal: a known agent bot login, an agent email, a co-author trailer naming an agent, or a message marker. Every signal was verified against a real commit on GitHub, with repo + SHA + date published in the tool (agentmix explain signals).
  • HUMAN - no agent signal matched and the author is not a bot. Read this as "no agent signal detected", not as proof that no AI was involved.
  • UNKNOWN - the commit cannot be classified honestly: missing author identity, or a bot account that is not in the verified signal table (for example github-actions[bot]).

Every agent number is a detected share (lower bound): an agent that leaves no verified signal is missed, so the true agent share is at least as high as the number shown. GitHub states the same caveat for its own Octoverse agent numbers, and agentmix applies it the same way.

What it does

agentmix init [dir]                    # scaffold agentmix.json + agentmix.signals.json
agentmix measure [path] [--since <90d|date>] [--json]
agentmix check [--path <dir>] [--measure <file>] [--json]
agentmix diff --baseline <measure.json> [--measure <measure.json>] [path] [--json]
agentmix explain [classification|signals|limits] [--json]

measure prints totals, detected agent share by commits and by lines, a weekly trend, the top agent signals, revert rate by class, a merge-lag proxy (median hours from branch tip to merge, with coverage), a review proxy (agent commits with no human co-author or reviewer signal), and a verdict: HEALTHY, STRAINED, AT-RISK, or UNKNOWN.

check is the CI gate: exit 1 when the detected agent line share is over the policy limit, or when unreviewed agent commits are over budget. diff fails when the detected agent line share jumps more than the policy allows, the revert rate jumps more than 5pp, or the merge-lag proxy median grows more than 50%. Default policy: max agent line share 50%, max unreviewed agent commits 10, window 90 days, max share drift 10pp.

agentmix demo

The demo measures a real repo (24 commits, 93% agent lines, AT-RISK), runs the CI gate (it fails, exit 1), and explains the classification rules.

Where rivals beat us

Honesty first. Three places where something else is better:

  • LinearB, Jellyfish, and Faros AI are much deeper than agentmix. They measure pickup time, cycle time, rework, and cost per effective PR from full SDLC data (Jira, CI, real review events), and LinearB's 8.1M-PR benchmark gives industry context no single-repo tool can. agentmix only sees git history: it has no review timestamps, no Jira, no CI data, so its merge-lag is only a proxy and its review coverage only counts when a trailer says so.
  • GitHub Insights reports platform-wide agent numbers. It does not measure one repo from the command line.
  • claimtrace (same author) checks an agent's claims against its transcript. That is a different axis: claims vs evidence, not mix vs history.

If you already pay for one of those platforms, keep using it for the deep questions and use agentmix for the fast local check and the CI gate.

Honest limits

  • The review-load half of the promise is proxy-only. Merge-lag is a proxy (reported, never gated on) and review coverage only counts when a trailer says so. There are no real review timestamps in v0.1.0.
  • No trailer, no login, no marker, no detection. Agents used silently through an editor are invisible; that is why every agent number is a lower bound.
  • Squash merges collapse branch history into one commit, so per-author signals on the branch disappear. One squash commit bundles a whole agent-driven branch, so the signal on the squash commit stands for the branch.
  • dependabot is dependency automation, shown separately in the signal breakdown. It is not a coding agent; subtract it if you want coding agents only.
  • Install is from source only for now. The npm package name agentmix is currently unclaimed (verified 404 on 2026-12-03) and is not published yet.

Try it

git clone https://github.com/techdevfun/agentmix.git
cd agentmix
npm install
npm run build
node dist/cli.js measure

Source, tests (44/44), and the full signal table with repo + SHA + date for every pattern: https://github.com/techdevfun/agentmix

The industry average says agents write a lot of code now. Measure your own repo before you decide what to do about it.

πŸ“° 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.