coderot

Four beliefs about AI code, tested on 112 repos

We tested four things people say about AI-written code on 112 of GitHub’s most popular repos, comparing AI-signed pull requests with the rest of the same repo. AI PRs didn’t skip tests, didn’t silence the linter more, and files only agents touched weren’t more complex. The fourth belief, that AI only adds code and never deletes any, held, but barely: AI PRs were pure additions a median 1.1 points more often within a repo, and the ones we read were features and fixes that came with their tests.

The question each time is the same: within one repo, do the PRs an AI tool signed look different from the others? A repo counts only with 30 or more of each. That leaves out most popular repos, which still sign few PRs with AI.

This is another report from coderot, the tool we’re building, on the pool of repos from our first one. All data covers the 180 days before each repo’s newest commit on 1 December 2026.

Repos
112 repos with 30 or more AI-signed and 30 or more other merged PRs in 180 days, 335,963 PRs, 65,322 of them AI-signedTypeScriptJavaScriptC#PythonGoRust

The short version

0.54suppression comments per 1,000 added code lines, for AI-signed PRs and for the rest alike

AI doesn’t silence the linter more. Over 17.3 million AI-signed lines and 50.7 million others. Within a repo, AI PRs added fewer in 57 repos and more in 36.

51 of 83repos where AI PRs shipped with no test lines less often than the rest

AI doesn’t skip tests. Test lines per code line came out level: a median gap of 0, with AI higher in 42 repos and lower in 39.

45 of 78repos where files only agents touched were less complex than files only people touched

Agent-only files aren’t worse. A median of 1 point lower in cognitive complexity per 100 lines, over 28,575 agent-only and 97,816 person-only files created in the 180 days.

+1.1points: how much more often AI PRs only added code, the median within a repo at matched size

The one that held, barely. Higher in 45 repos, lower in 38. The add-only AI PRs we read were features and fixes, and all came with tests.

Repos where AI PRs looked worse or better, per beliefAdds without deleting: worse in 49 repos, better in 34. Skips tests: worse in 39, better in 42. Silences the linter: worse in 36, better in 57. Agent-only files more complex: worse in 32, better in 45. Repos where AI PRs looked worse or better ← AI PRs looked betterAI PRs looked worse → Adds without deleting3449 Skips tests4239 Silences the linter5736 Agent-only files4532
Repos with 30 or more AI-signed and 30 or more other PRs (or 10 or more files of each kind), by each belief’s measure below. A repo with no difference counts on neither side. Adds without deleting is the planned measure, without matching size. At matched size it’s 45 and 38.

1. “AI only adds code, it never deletes any”

The share of PRs adding 20 or more code lines that deleted no more than 5% as many. Pooled over all 112 repos, by size:

Code lines added AI-signed PRs Other PRs AI add-only Other add-only
20–99 17,246 64,590 21.1% 16.5%
100–399 12,491 43,622 24.9% 20.7%
400 or more 6,833 23,958 33.7% 25.2%

Pooled, AI PRs only add more often in every size band, and they aren’t bigger within a band (a median of 789 lines against 769 over 400). But pooling mixes repos, and the repos that use AI most also add new code most. Within each repo, at matched size, the gap is a median 1.1 points: higher in 45 repos, lower in 38. Without matching size, AI was higher in 49 and lower in 34.

What these PRs are matters more than how many. In the three repos with the biggest gap, we read five add-only AI PRs over 100 lines each. All 15 were features or fixes, and all came with tests: AmneziaWG protocol support in 3x-ui (7,223 code lines and 6,180 test lines), a scriptable test backend in oh-my-openagent, a report rendered from a script in ai-job-search. Where AI PRs deleted more than the rest, as in QuantConnect’s Lean (29% add-only against 54%), they included cleanups, such as removing unused variables, and features that changed existing code.

AI PRs are slightly more often pure additions. The ones we read were features, not copies of code that already existed.

2. “AI skips tests”

Test lines added per code line added, on PRs adding 20 or more code lines.

Code lines added AI test lines per code line Other AI PRs with no tests Other
20–99 1.98 2.27 19% 16%
100–399 1.25 1.26 15% 14%
400 or more 0.74 0.75 12% 12%

Pooled, small AI PRs carry a little fewer tests. Within repos it disappears: the median gap in test lines per code line is 0, AI higher in 42 repos and lower in 39, and the same without each side’s 5 most test-heavy PRs. AI PRs with no test lines at all were rarer than other PRs in 51 repos, and more common in 29.

The biggest gap either way is size and kind, not care. In dotnet/roslyn, AI PRs carried 1.03 test lines per code line, against 3.97 for the rest, and the largest of them moved whole repos into Roslyn (roslyn-sdk, roslyn-tools). Rust keeps unit tests inside code files, so its numbers read low on both sides.

3. “AI silences the linter”

Suppression comments in added code lines: eslint-disable, @ts-ignore, @ts-expect-error, # noqa, # type: ignore, //nolint, #pragma warning disable, #[allow(…)] and their kin. 0.54 per 1,000 added lines for AI-signed PRs, and 0.54 for the rest, over 17.3 million and 50.7 million lines.

Within a repo, AI PRs added fewer in 57 repos and more in 36, and fewer in 55 against 23 without each side’s 5 PRs with the most. Where AI added more, a few large PRs did it. In mudler/LocalAI, 823 of the AI side’s 1,119 came from four PRs of 5,000 to 170,000 lines, such as a web UI redesign. TypeScript’s any, counted apart, was level too: a median gap of 0 over 35 TypeScript and JavaScript repos.

4. “Files only agents touched are worse”

Code files created in the 180 days and still there, with 20 or more code lines. Agent-only means every commit that touched the file was AI-signed, person-only that none was. Then their cognitive complexity per 100 code lines, as of the newest commit.

Agent-only files were less complex than person-only ones in 45 of 78 repos, more in 32, a median of 1 point lower. Pooled it’s level: 21.0 against 22.8, or 20.7 against 19.9 without 186 minified or bundled files our generated-file check missed, most of them person-created (in heygen-com/hyperframes and ruvnet/ruflo). The repo-by-repo result doesn’t change without them.

What stands out is how many there are. 28,575 agent-only files against 97,816 person-only ones, and 38,176 touched by both, in 180 days.

5. Not tested: “AI leaves dead code”

We planned it and dropped it. In a test we ran on 5 repos in November, 68 of the 73 functions flagged as unused weren’t: commands a decorator registers, Python’s __dunder__ methods, overrides. Without a filter that holds across six languages, a count would be mostly noise.

How we measured

What this can’t tell you

If you maintain one of these repos and something looks wrong, tell us at [email protected] and we’ll correct it.

See it for yourself

Every repo’s numbers are in repos.csv, one row each, the ones not counted marked. coderot runs as a CLI in your CI, and your code never leaves it. Try the beta, free, to see your own repo.

Left out

Get the next report by email. We publish them as the data comes in, and now and then news about coderot.

Double opt-in. Unsubscribe anytime. How we handle your email.

See any public repo’s last 6 months, measured the same way: paste it here, no sign-in.