coderot

Is AI rotting your codebase?

89% of VS Code's commits last month credited an AI agent. coderot shows what that's doing to your code, which PRs drove it, and where to look first.

See any public repo’s last 6 months, no sign-in:

For example: mermaid-js/mermaid · dotnet/efcore

Or try the beta, freeFor GitHub repos in C#, TypeScript/JavaScript, Python, Go and Rust

// 00what you get

See what changed when agents took over.

For every folder, coderot charts complexity month by month, marks the month most merged PRs started coming from agents, and names the PR behind each jump. Here are two folders of VS Code: same repo, same agents, but only the one that grew fast got more complex.

complexity per 1,000 lines · higher means harder to maintain

now AI PRs 93% complexity +11% since agents took over 341k lines, 4.8× since Dec 2025

Dec 2025now

Real data: microsoft/vscode as of Dec 4, 2026, from our live demo, which measures it every other day. Your first report covers the last 12 months of your git history.

// 01attribution

We don't guess who wrote it.

Quick test, 3 rounds. Every method is real, from dotnet/runtime and VS Code. In each round, GitHub Copilot's coding agent wrote one of the two. Which one?

Round 1 of 3

A · GroupJoinIterator()

{
    using (IEnumerator<TOuter> e = outer.GetEnumerator())
    {
        if (e.MoveNext())
        {
            Lookup<TKey, TInner> lookup =
                Lookup<TKey, TInner>.CreateForJoin(
                    inner, innerKeySelector, comparer);
            do
            {
                TOuter item = e.Current;
                yield return resultSelector(
                    item, lookup[outerKeySelector(item)]);
            }
            while (e.MoveNext());
        }
    }
}
Human. dotnet/runtime as of 2020, before Copilot existed. Source

B · GroupJoinIterator()

{
    using IEnumerator<TOuter> e = outer.GetEnumerator();
    if (e.MoveNext())
    {
        Lookup<TKey, TInner> lookup =
            Lookup<TKey, TInner>.CreateForJoin(
                inner, innerKeySelector, comparer);
        do
        {
            TOuter item = e.Current;
            yield return new GroupJoinGrouping<TOuter, TInner>(
                item, lookup[outerKeySelector(item)]);
        }
        while (e.MoveNext());
    }
}
AI. GitHub Copilot coding agent, April 2026, recorded as Co-authored-by: copilot-swe-agent[bot]. Commit

Spotted the newer using syntax? That dates the code, but it doesn't name the author: the agent mirrored the existing method next to it, line for line.

Round 2 of 3

A · IsWhiteSpaceByte()

{
    // Check for ASCII whitespace characters: space (0x20),
    // tab (0x09), newline (0x0A), carriage return (0x0D),
    // form feed (0x0C), and vertical tab (0x0B)
    // For non-ASCII bytes, convert to char and check with
    // char.IsWhiteSpace
    return b <= 127 ? char.IsWhiteSpace((char)b) : false;
}
AI. GitHub Copilot coding agent, March 2026, recorded as Co-authored-by: copilot-swe-agent[bot]. Commit

B · SkipWhiteSpace()

{
    // Create local copy to avoid bounds checks.
    ReadOnlySpan<byte> localBuffer = _buffer;
    for (; _consumed < localBuffer.Length; _consumed++)
    {
        byte val = localBuffer[_consumed];

        // JSON RFC 8259 section 2 says only these 4
        // characters count, not all of the Unicode
        // defintions of whitespace.
        if (val != JsonConstants.Space &&
            val != JsonConstants.CarriageReturn &&
            val != JsonConstants.LineFeed &&
            val != JsonConstants.Tab)
        {
            break;
        }

        if (val == JsonConstants.LineFeed)
        {
            _lineNumber++;
            _bytePositionInLine = 0;
        }
        else
        {
            _bytePositionInLine++;
        }
    }
}
Human. System.Text.Json in dotnet/runtime as of 2020, before Copilot existed. Source

A's comment says non-ASCII bytes get checked with char.IsWhiteSpace, but the code returns false for them. A tell? People leave wrong comments too, and this one passed review.

Round 3 of 3

A · normalizeGitRepoPath()

{
    const trimmed =
        path.replace(/\/+/g, '/').replace(/\/+$/g, '');
    if (!trimmed.toLowerCase().endsWith('.git')) {
        return undefined;
    }

    const withLeadingSlash =
        trimmed.startsWith('/') ? trimmed : `/${trimmed}`;
    const pathWithoutGit = withLeadingSlash.slice(1, -4);
    if (!pathWithoutGit || !pathWithoutGit.includes('/')) {
        return undefined;
    }

    return withLeadingSlash;
}
Unknown. Committed by a VS Code maintainer, February 2026, with no AI trailer. Commit

B · normalizeGitRepoPath()

{
    const gitSuffix = '.git';
    const trimmed =
        path.replace(/\/+/g, '/').replace(/\/+$/g, '');

    const withLeadingSlash =
        trimmed.startsWith('/') ? trimmed : `/${trimmed}`;
    // Strip .git suffix (if present) only for the purposes
    // of validating path depth.
    const pathWithoutGit =
        withLeadingSlash.toLowerCase().endsWith(gitSuffix)
            ? withLeadingSlash.slice(1,
                withLeadingSlash.length - gitSuffix.length)
            : withLeadingSlash.slice(1);
    if (!pathWithoutGit || !pathWithoutGit.includes('/')) {
        return undefined;
    }

    return withLeadingSlash;
}
AI. GitHub Copilot coding agent, March 2026, recorded as Co-authored-by: copilot-swe-agent[bot]. Commit

The named constant and the explaining comment felt like AI? Fair guess. But A isn't proven human either: its commit message says "(Commit message generated by Copilot)", and nothing records who wrote the code. coderot would count A as unknown.

Method bodies as committed, with long lines wrapped.

So coderot doesn't guess. AI attribution comes only from what your tools record, and that's how coderot knows when agents took over and which agent wrote each PR. Everything else is marked "unknown", and every AI number shows how many of the PRs we could attribute.

Co-authored-by: ClaudeAIMade-with: CursorAIgit notes: Git AIAIauthor: copilot-swe-agent[bot]AIno signalunknown

Thinking of turning those lines off? How, tool by tool, and why you might not.

// 02the problem

Your codebase is changing faster than anyone can review it.

89%

Agents are in almost every PR.

In Nov 2026, 89% of commits merged into VS Code credited an AI agent as author or co-author.

74%

Most PRs merge without discussion.

In the median repo run by an organization, 74% of merged PRs got no review comments from another person: approved without a word, or not reviewed at all. AI PRs get no less review than the rest, but they're bigger.

2.4×

AI PRs are bigger.

In 55 of the 61 repos we measured, the median AI PR was bigger than the rest, typically 2.4×.

why?

Your tools can't say what drove it.

Quality tools show the code got worse, not what drove it: which agent, how big the PRs, how much review.

// 03how it works

One workflow file. A year of history on day one.

  1. Sign in with GitHub and pick a repo.

    The coderot app sees repo names and who has access, never code.

  2. Add one workflow file.

    No secrets to set. Setup takes 5 minutes.

  3. coderot runs in your CI.

    On the first run it walks 12 months of git history, so you start with a trend, not a single number.

  4. See what got worse, where, why, and what to do about it.

    Which folders are rotting since agents took over, which PR did it, which agent wrote it and how much review it had. Then where to look first, with one thing to consider for each.

# .github/workflows/coderot.yml
on:
  push:
    branches: [main]   # your default branch, nothing else
  pull_request:       # a comment on each PR, nothing uploaded
permissions:
  contents: read       # check out the repo
  id-token: write      # upload via GitHub OIDC, no secrets
  pull-requests: write # review counts, and the PR comment
concurrency: coderot-${{ github.event.pull_request.number || github.sha }}
jobs:
  coderot:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
        with: { fetch-depth: 0 }
      - uses: coderot-ai/action@v1

Setup guide: every step, what you can configure, and what to do when a run fails.

// 04privacy

Your code never leaves your CI.

your repo→your CInumbers + names →coderot

The analysis runs on your own runners. We receive numbers, file paths and function names, never source code, and coderot can't read your repository: the GitHub app you sign in with sees only its metadata, such as its name and who has access, never its files. Run npx @coderot-ai/cli analyze --out report to read what would be sent (the full list). Simplified, it looks like this:

// report/, simplified
{
  "commit": "4f2a9c1",
  "ai": { "agent": "claude-code", "lines": 38 },
  "path": "src/Orders/InvoiceCalculator.cs",
  "function": "CalculateTotal",
  "complexity": 14,
  "duplicates": ["src/Billing/Totals.cs:40-51"]
}

// 05live demo

Which open-source repos are rotting?

coderot runs every other day on 11 well-known TypeScript, C#, Go, Python and Rust repos, VS Code, n8n and Aspire among them, with the same CLI you'll run. See when agents took over, where complexity grew, and the PRs behind every jump.

9/10

More complex per line than a year ago.

The six where a fifth or more of PRs carry an AI signal rose more, a median 17.5%, against 4.5% for the other four. But they also grew fastest: a median 3.0× in code, against 1.5×. From the live demo's data as of Dec 4, 2026; github/spec-kit had under 8,000 lines a year ago, too few to compare.

  1. microsoft/aspire+26%AI-heavy
  2. n8n-io/n8n+21%AI-heavy
  3. outline/outline+20%
  4. jdx/mise+19%AI-heavy
  5. microsoft/vscode+16%AI-heavy
  6. cli/cli+15%AI-heavy
  7. langfuse/langfuse+10%AI-heavy
  8. jellyfin/jellyfin+5%
  9. excalidraw/excalidraw+4%
  10. bitwarden/server-1%

See the live demo

Beyond the 11, our report on 450 popular repos over 12 months: Is AI code rotting open source?

// 06beta

See your own numbers.

Free during the beta. Sign in with GitHub, add one workflow file, and get 12 months of history in minutes.

Try the beta, free

Or see any public repo’s last month first, no sign-in:

Not ready yet? Get our open-source reports on AI code rot by email, and now and then news about coderot.

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