2026-11-26 15:37 UTC

Coderot finds AI-signed PRs rising, with complexity increases tied more to fast growth

state: seedheat: mediumuncertainty: mediumrelevance: highai-code-maintenance open-source ai-assisted-developmentCoderot

What is this?

Coderot, a team building a codebase-analysis tool, published a study dated 4 November 2026, updated 7 November, covering 450 popular GitHub repositories and 1,030,702 merged pull requests over 12 months through 25 October 2026. It reports that the average repo’s share of PRs carrying a recorded AI signal rose from 2.3% in October 2025 to 11.5% in September 2026; the median was just 1.5%, showing adoption is concentrated. Its separate complexity analysis covered 85 sufficiently large TypeScript and C# repos: the 22 AI-heavy repos had a median 4.8% increase in cognitive complexity per line, versus 3.0% in the others. The difference was associated chiefly with fast-growing codebases, not AI share alone. Coderot says signatures and other Git traces are an incomplete proxy for AI use; it also notes that trailers vary by tool and can be absent even when agents are used. This is a first-party analysis by the tool’s builders, not an independent or representative survey.

Why it matters

The study offers a concrete, qualified snapshot of coding agents entering established open-source projects: recorded AI contributions grew quickly, but unevenly, and the measured code-quality signal is modest overall rather than evidence of broad code rot. This matters because AI-assisted development could change how much software communities can produce—and how much review and maintenance they must absorb. The study is useful as a baseline, but its Git-signature method, selected repos, and narrow complexity measure limit conclusions about actual AI use or software quality.

Current assessment

New evidence: Coderot’s 4 November 2026 post, updated 7 November, analyzes 450 highly starred, active repositories selected across nine languages; the data end 25 October. In the average repository, the share of merged PRs with a recorded AI signal rose from 2.3% (October 2025) to 11.5% (September 2026). The median repo was at 1.5%; 28 repos had signals on at least half of September PRs, while 177 of 442 repos merging that month had none recorded. These are repository-weighted shares, not the fraction of all PRs or all code written with AI. Coderot reports 264 repositories had committed agent instruction/configuration files, but such files indicate setup, not actual use. Its updated count adds Assisted-by, Generated-by, and Cursor Made-with trailers, changing September’s average from an earlier 10.3% to 11.5% and adding ILSpy to the AI-heavy group; this revision matters when comparing versions of the post. For code quality, the analysis is narrower: 85 TypeScript and C# repositories large enough for a year-on-year measure, of which 22 were defined as AI-heavy (at least 20% of yearly merged PRs signed). Median cognitive complexity per 1,000 lines rose 4.8% in those repos versus 3.0% in the other 63. Coderot finds little relationship between AI share and complexity change (rank correlation 0.12); growth rate aligned more strongly (0.30). In the slow-growth group, AI-heavy repos rose 1.7% versus 2.5%; in faster-growth bands, they rose more, but group sizes were small. Six AI-heavy repos ended at or below starting complexity. Coderot also reports AI-signal PRs were typically larger (2.4× median size in a 61-repo comparison) but only slightly more likely to be fixed within 30 days within repositories; neither measure establishes correctness or maintainability. Interpretation: the findings support rapid growth in *recorded* agent contributions in some prominent projects, alongside no clear general complexity penalty attributable to AI alone. They do not establish causal effects or represent open source as a whole. AI use without a trace is counted as unknown, not human; tool-specific signing practices affect rankings (Coderot says Claude Code led recorded signals in 279 of 388 repositories with signals). The sample is popularity-selected, code-quality analysis covers only two languages and one complexity metric, and confounders include project growth and maturity. Track as a useful first-party observational baseline; independent validation or later comparable measurements would strengthen claims about prevalence and maintenance outcomes.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 554h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-03 13:00⭐ origin echo-reconstructedThis is the original research post, not an intermediary: it says “We ran coderot, the tool we’re building, in two layers,” and describes its
coderot on blog (echo) · attributed from hn.story.50440431
—
11-10 13:56first on hacker news · published · +168.9hIs AI code rotting open source? 450 repos, 12 months
coderot_ai
—
11-10 13:56amplified on hacker news 👑hn.story.50440431
coderot_ai
peak 1 · 0 comments · 103% of case engagement
11-10 14:24our radar first saw it · +169.4hdiscovery anchor: hn.story.50440431—
pace: p11 vs 1845 stories at the 336h mark (now 554h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnIs AI code rotting open source? 450 repos, 12 months
Retrieved article excerpt

Open article · Retrieved 2026-11-10T14:26:34.016638+00:00

# Is AI code rotting open source? 450 repos, 12 months

4 November 2026

In September 2026, the average one of 450 of GitHub’s most popular repos had 11.5% of its merged pull requests signed by an AI agent. In October 2025 it was 2.3%.

That month, 265 of the 450 merged at least one such PR; a year earlier, 84 did. In a few repos agents now write most of the code: 81% of VS Code’s merged PRs from 1 to 25 October, 47% of the .NET runtime’s over the whole year.

And those are only the PRs a tool signed. 264 of the 450 repos have instruction files for agents committed, half of them with hardly a signed PR, so every AI number here is a floor.

**Is that code aging worse?** Mostly not: AI-heavy repos got only a little more complex per line than the rest, and only where they were also growing fast. We ran [coderot](https://coderot.ai/), the tool we’re building, in two layers, then looked up close at 8 repos. All data is as of 25 October 2026.

> **Updated 7 November 2026:** we counted the same 12 months again, now also reading `Assisted-by:`, `Generated-by:` and Cursor’s `Made-with:` trailers ([which tools add which](https://coderot.ai/blog/keep-co-authored-by-claude)). The average September share went from 10.3% to 11.5%, and ILSpy joined the AI-heavy repos, which now rose a median 4.8% (3.9% before).

[Who writes the code](https://coderot.ai/blog/ai-code-rot-in-open-source#who-writes-the-code-450-repos)
:   **450 repos**, 50 of the most-starred in each of 9 languagesTypeScriptC#PythonJavaGoRustC++JavaScriptC

[Is it rotting?](https://coderot.ai/blog/ai-code-rot-in-open-source#is-it-rotting-100-typescript-and-c-repos)
:   **100 repos**, the TypeScript and C# ones among them: the languages coderot analyzes todayTypeScriptC#

[Up close](https://coderot.ai/blog/ai-code-rot-in-open-source#up-close-the-8-repos-we-track-daily)
:   **8 repos** our [live demo](https://app.coderot.ai/demo/microsoft/vscode) analyzes every day

## The short version

**11.5%**of the average repo’s merged PRs were AI-signed in September 2026, up from 2.3% in October 2025

**The share of AI-signed PRs grew fivefold in a year, but most repos are still low.** The median repo was at 1.5% in September, so a minority carries the average: 28 repos had half or more of their PRs signed that month, and in 19 agents took over, writing most merged PRs every month since.

**59%**of the 450 repos (264) have committed instructions for AI coding agents

**So the signed share is a floor, and a low one:** it counts only PRs a tool signed. Half of the repos with files such as `AGENTS.md` or `CLAUDE.md` have fewer than 5% of their PRs signed. Angular has an `AGENTS.md`, and 2 of its 4,037 merged PRs in the year carry a signal. [More on why every AI number here is a floor](https://coderot.ai/blog/ai-code-rot-in-open-source#every-ai-number-here-is-a-floor).

**279**of the 388 repos with AI-signed PRs have Claude Code as the tool that signs the most

**Claude Code leads by far.** Copilot’s coding agent leads in 40, Copilot CLI in 22, Cursor in 16 and Codex in 14. That’s a ranking of what tools record, not of what people use: Claude Code adds its co-author trailer unless it’s turned off.

**18%**of the average Python repo’s PRs were AI-signed in September, the most of nine languages, up from 4%

**Python, C# and TypeScript lead; C, C++ and JavaScript started from almost nothing.** In September the average C# repo had 17% of its PRs signed, TypeScript 16%, C 11%, Go 10%, Rust 9%, C++ 8%, and JavaScript and Java 6%. A year earlier C, C++ and JavaScript were all under 1%. In C#, Microsoft’s repos, where Copilot signs, average 41% from July to September against 11% for the rest.

**+4.8%**typical change in code complexity over the year in the 22 AI-heavy TypeScript and C# repos; +3.0% in the other 63

**AI-heavy repos got a little more complex than the rest, all of it where they were also growing fast.** Among repos that grew less than 1.5× in the year, the AI-heavy ones rose less (1.7% against 2.5%): the .NET runtime, ASP.NET Core and Roslyn held flat with a fifth to half of their PRs signed. Among repos that grew 1.5 to 3×, the AI-heavy ones rose a median 18% against 3%: n8n, VS Code, mermaid, Storybook.

**6**AI-heavy repos ended the year at or below the complexity they started with

**Where AI code looks fine.** Among them are Semantic Kernel, Garnet and Roslyn. Within a repo, AI PRs are fixed within 30 days only a little more often than the rest, a median 1 point, though they’re more than twice as big. And the code added this year has fewer copies per line, more so in AI-heavy repos.

**2.4×**as big as other PRs: a typical AI PR, in a typical repo

**AI PRs are bigger.** In 55 of the 61 repos with at least 10 AI PRs and 10 others in the last six months, the median AI PR is bigger than the median other PR. 27% of AI PRs are over 400 lines, against 18% of the rest.

## How we measured

- **Repos.** Per language, the 200 most-starred repos GitHub gives that primary language, not forks or archived, with a push in the month before. We left out 126 that aren’t one software project, each with a reason: curated lists, data collections, tutorials, courses and books, collections of examples or exercise solutions, documentation, agent skills, plugins or prompts, and copies of code developed elsewhere. Then, in star order, the first 50 per language with at least 100 merged PRs in the 12 months: 450 repos, 1,030,702 merged PRs. The code-rot layer is their 100 TypeScript and C# repos. We wrote these rules down before scanning anything, and added C++, JavaScript and C after the first six under the same rules. Every repo is [listed at the end](https://coderot.ai/blog/ai-code-rot-in-open-source#the-450-repos).
- **History.** For each repo, coderot walks the default branch over the last 12 months. For the code-rot layer it measures a snapshot each week. It only reads git, so it’s the same CLI you’d run in CI on a private repo.
- **Complexity** is cognitive complexity, from SonarSource’s specification: +1 for each break in the flow (`if`, loops, `catch`, chains of `&&`…), more when nested. We add it up over every function in C#, TypeScript and JavaScript code and divide by lines of code (blank lines and comments not counted), so a repo doesn’t look worse just for growing. Tests are left out, and so are generated and vendored files. A repo’s 12-month change counts only when it had at least 8,000 lines of code a year ago: smaller ones swing on a few files.
- **Duplication** is lines inside copies of 50 tokens or more, per 1,000 lines of code, measured once a month.
- **A merged PR** is a commit on the default branch’s first-parent line: a squash, a merge or a direct push, each counted once.
- **Shares count each repo once.** A repo’s share is its merged PRs with an AI signal over all its merged PRs, and an average or median is over repos, not PRs. Counted over all PRs, one repo that merges 300 PRs a day would outweigh dozens of others ([see openclaw](https://coderot.ai/blog/ai-code-rot-in-open-source#by-language)).
- **An AI signal** is something a tool recorded: a co-author trailer (`Co-authored-by: Copilot`, Claude, Cursor…), an `Assisted-by:` or `Made-with:` trailer naming an AI tool, a bot as author, an agent’s branch name (`copilot/…`, `claude/…`) or a [Git AI](https://usegitai.com) note. No signal means unknown, not human.
- **Agent files** are instruction or config files for coding agents committed to the repo, nested copies included: `AGENTS.md`, and the conventions of Claude Code, GitHub Copilot, Gemini, Cursor, Windsurf, Cline, Roo Code, Kiro, Junie, Aider, Continue, Amazon Q, Augment and Warp, plus `.mcp.json`. For each repo we record which are there at HEAD, when the first one was added and how many commits changed them.
- **Agents took over** in the month the share of merged PRs with an AI signal passed 50% and stayed above it. We count only complete months, so up to September 2026.
- **Fixed later:** a PR whose lines a later PR or push titled fix, bug, hotfix or revert changed or deleted within 30 days, found with git blame, test files left out. Counted over the last six months, for PRs merged at least 30 days before the data.

## Who writes the code: 450 repos



Share of merged PRs signed by an AI tool, month by monthIn the average of 450 repos, from 2.3% in October 2025 to 11.5% in September 2026; in the median repo from 0.0% to 1.5%.Share of merged PRs signed by an AI tool, month by monthAverage repoMedian repo0%4%8%12%Oct 2025Jan 2026AprJulSepOct 2025: the average repo, 2.3%Nov 2025: the average repo, 2.8%Dec 2025: the average repo, 3.1%Jan 2026: the average repo, 4.6%Feb 2026: the average repo, 6.1%Mar 2026: the average repo, 8.6%Apr 2026: the average repo, 8.6%May 2026: the average repo, 7.9%Jun 2026: the average repo, 9.6%Jul 2026: the average repo, 9.2%Aug 2026: the average repo, 9.0%Sep 2026: the average repo, 11.5%Oct 2025: the median repo, 0.0%Nov 2025: the median repo, 0.0%Dec 2025: the median repo, 0.0%Jan 2026: the median repo, 0.0%Feb 2026: the median repo, 0.0%Mar 2026: the median repo, 1.1%Apr 2026: the median repo, 0.9%May 2026: the median repo, 0.8%Jun 2026: the median repo, 0.9%Jul 2026: the median repo, 0.6%Aug 2026: the median repo, 1.0%Sep 2026: the median repo, 1.5%Average repo 11.5%Median repo 1.5%

Every repo counts the same, however many PRs it merges. The average rises because a few repos now sign a lot; the median repo, the one in the middle, still signs almost nothing.



Most of that average comes from a few repos. Of the 442 that merged a PR in September, 177 signed none of them and another 34 under 1%. At the other end, 28 signed half or more.



How many repos sign how much: share of PRs AI-signed, September 2026None: 177 repos; Under 1%: 34 repos; 1–5%: 57 repos; 5–10%: 42 repos; 10–20%: 45 repos; 20–50%: 59 repos; Half or more: 28 reposHow many repos sign how much: share of PRs AI-signed, September 2026050100150200None177 repos signed none of their PRs177Under 1%34 repos signed under 1% of their PRs341–5%57 repos signed 1–5% of their PRs575–10%42 repos signed 5–10% of their PRs4210–20%45 repos signed 10–20% of their PRs4520–50%59 repos signed 20–50% of their PRs59Half or more28 repos signed half or more of their PRs28

The 442 repos that merged at least one PR in September. The repo in the middle signed 1.5% of its PRs, in the third bar. The average of 11.5% comes mostly from the 132 repos in the bottom three bars.



And most of the signatures are one tool’s. In 279 of the 388 repos with a signed PR in the year, Claude Code signed more of them than any other agent.



Which AI tool signed the most PRs, in each of 388 reposClaude Code: 279; Copilot coding agent: 40; Copilot CLI: 22; Cursor: 16; Codex: 14; Other: 17Which AI tool signed the most PRs, in each of 388 repos0100200300Claude CodeClaude Code signed the most PRs in 279 repos279Copilot coding agentCopilot coding agent signed the most PRs in 40 repos40Copilot CLICopilot CLI signed the most PRs in 22 repos22CursorCursor signed the most PRs in 16 repos16CodexCodex signed the most PRs in 14 repos14OtherOther: Gemini 8, Devin 4, Jules 1, OpenHands 1, copilot 1, pi 1, opencode 117

Each of the 388 repos with at least one AI-signed PR in the year counts once, for the tool that signed the most of its PRs. This counts signatures, not use: Claude Code signs its commits unless someone turns that off.



### Every AI number here is a floor

A PR counts as AI only when a tool left a trace in git: a co-author trailer, a bot account, an agent’s branch name or a Git AI note. A developer who has an agent write the code and commits it under their own name leaves none. Neither do inline completions. We don’t guess at the rest: style classifiers are noisy, and one wrong accusation would cost trust in every other number.

How big the gap is shows in the repos themselves. 264 of the 450 (59%) have instruction or config files for agents committed: 217 an `AGENTS.
coderot_ai10
🟧 echo.blog ⭐This is the original research post, not an intermediary: it says “We ran coderot, the tool we’re building, in two layers,” and describes itscoderot——

Interpretation history

Decision trace