Research · 3 November 2026 · Leandro Basla

Clone it or prompt it?

GitHub is flooded with new repos, and they keep getting bigger. A look at what changed in 2026, what code written by AI agents looks like, and when it's still worth pulling someone else's repo instead of having an agent write exactly what you need.

The question

I'm always trying to keep up with the latest releases and popular repos so I can apply them to my work and my personal projects. Lately I've been seeing so many new task-focused repos that I started to wonder: when does it make sense to keep cloning, and when should I just tell an agent to code exactly what I need?

Answering that turned into a rabbit hole. Before deciding whether to borrow from new repos, I wanted to know what's actually in them: how many there are, how big they are, who (or what) wrote them, and how tested they are. This page sums up five studies built on random samples of 170,000 public repos, plus my own Claude Code usage logs. The detailed reports have every number, chart and method.

Why now? OpenAI and Anthropic are coming out with their own version control for coding agents, which will start pulling projects away from Git. That makes this one of the last snapshots in which GitHub holds a good-quality amount of data to pull.

Key takeaways

  1. Repo creation sped up sharply. New public repos per month roughly tripled, from ~3.3 million in early 2024 to 10–11 million by autumn 2026: in all of 2024, in 2025 and in just the first ten months of 2026.
  2. And the repos got much bigger. After a decade at a median of ~300–450 lines of code, the median 2026 repo with code has lines. It isn't because 2026 repos are younger: compared at the same age (90 days), 2026 is still 2024.
  3. Two milestones. Size first steps up in November 2025 (Gemini 3 Pro, Claude Opus 4.5), then climbs steeply from February 2026, when Claude Opus 4.6 and GPT-5.3-Codex came out. That's timing, not proof of cause.
  4. Repos with a visible AI trace are huge, and removing them brings sizes back toward normal. of 2026 repos carry a clear AI-agent mark (in commits or agent instruction files), with a median of lines at 90 days. Without them, the 2026 median drops from to . That's still above the ~ of 2024, but many developers and agents leave no obvious mark.
  5. Agents write more, not always better. Given one shot at an ML exercise, agents wrote 1.6–2.3× as many lines as my worked-out 2022 solution, and neither scored higher. READMEs grew too: repos with a visible AI trace have a median README of ~3.8 KB, against ~450 bytes for 2024 repos.
  6. For most new repos, prompting is cheaper than vetting. One 5-hour Claude Pro window writes about as much code as of 2026 repos contain, and one Max window . Meanwhile only of new repos have tests and have a license.
  7. The catch is a chicken-and-egg. Cloning a new repo only beats prompting your own if that repo wasn't itself written by an agent. Otherwise you get the extra lines without the tailoring. Borrow mature, maintained libraries; generate small, tailored code, with tests.

1GitHub's 2026 flood

For each creation year from 2010 to 2026 I drew 10,000 fully random public repos (forks excluded) and estimated their lines of code; monthly counts come straight from GitHub search [1]. Two things changed at once: how many repos people create, and how much code is in each one.

new public repos, Jan–Oct 2026 ( in all of 2024)
~3×new repos per month, January 2024 → autumn 2026
median lines of code, 2026 repos with code ( in 2024)
New public repos created per month
Forks excluded, January 2024 to October 2026, from GitHub search's repository count [1]. Dashed lines: major model releases [9]–[11]. Shaded: the two milestones.

Growth came in steps that held afterwards, rather than a smooth curve. The biggest are March 2025 (+15% on the month before, after Claude 3.7 Sonnet and the Claude Code preview), March 2026 (+24%, after Claude Opus 4.6, GPT-5.3-Codex and GPT-5.4) and September 2026 (+27%, the month of GPT-6 and Claude Opus 5.5).

Median lines of code per new repo, by year created
Repos with any code, 10,000 random repos per year. Shaded band = 95% confidence interval. 2026 runs to 2 November.

The typical repo actually shrank for a decade, from ~530–610 lines in 2010–2015 to ~300–365 in 2019–2024, as GitHub filled with homework, tutorials and small experiments. 2025 ticked up to , and 2026 more than doubled it.

Two milestones

Median lines of code, by month created
Repos with any code, January 2024 to October 2026, ~650–1,600 repos per month. Shaded band = 95% CI. Dashed lines: major model releases; releases a few days apart share a line.
Median lines of codeMilestones

The monthly median sits at roughly 300–400 lines through mid-2025. Two moments stand out:

Both line up with stronger coding models, but this can't prove they caused it: agentic tools like Claude Code and Codex were also spreading to more people at the same time.

Releases marked on the charts

    Not just younger repos

    A fair objection: 2026 repos are only weeks or months old, and young repos might simply be measured at a different stage. So for a subsample of ~4,250 repos I read the git history and measured every year's repos at the same ages: 7, 90 and 365 days after creation [4].

    Median lines of code at 90 days old, by year created
    Age-matched subsample, ~500 repos per year (750 for 2026). Shaded band = 95% CI on the median. Dashed: repos without a visible AI trace (see section 2).
    All repos with codeNo visible AI trace

    At 90 days old, repos from 2016–2025 had a median of lines. 2026 repos had , and they were already that big a week after creation. In every year, most repos reach close to their final size within 90 days. The jump is real.

    Most of the flood is noise

    More repos doesn't mean more useful repos. Of everything created in 2026:

    have no code at all (empty, docs, notebooks or data only)
    have even one star ( in 2016)

    So the repos most people would ever find, let alone clone, are a thin slice of the flood. The language mix also moved toward the web and Python: HTML, Python and TypeScript grew as primary languages while JavaScript and Java shrank.

    Primary language (share of all new repos)202020242026

    How lines of code were measured

    Downloading 170,000 repos wasn't an option, so lines of code are estimated: GitHub's languages API reports how many bytes of each language a repo contains [2], and dividing the code bytes by 41 bytes per line gives the line count. I calibrated that ratio by cloning 250 repos and counting their lines directly, then validated it on 306 more from 2010, 2020 and 2024. A typical estimate is off by about 26% either way, slightly undercounting, and the error is similar in every year, so the trend holds even if any single number is approximate. GitHub's own repo size field is useless for this: it includes git history and assets, and overestimated code size about 12× on random repos. Details in the calibration report.

    2What agent-made code looks like

    Visible AI traces

    Some AI tools leave fingerprints. For every repo in the age-matched subsample I checked the last 100 commits for agent signatures (for example the Co-Authored-By: Claude line Claude Code adds by default [6], or commits from Copilot's coding agent, Codex, Jules, Devin, Lovable or v0), and the file tree for agent instruction files such as CLAUDE.md, AGENTS.md [5], .cursor/ or Copilot instructions.

    of 2026 repos have a visible AI trace ( of 2025's)
    median lines at 90 days for traced 2026 repos
    median for 2026 repos without a trace (2024: )

    Repos with a visible trace are about eight times bigger than the rest. Taking them out brings 2026 back toward normal, from to lines at 90 days, but not all the way: that's still about twice 2024. The likely reason is that many developers and agents leave no obvious mark. Code pasted from a chat, Cursor without a rules file, an agent whose commits carry the user's name: none of these show up. So is a floor for AI involvement, not an estimate of it.

    Most common traces in 2026: . A repo can have several. For years before 2026 only traces present by day 90 are counted, so older repos touched by agents recently don't inflate the past.

    The README hunch

    Going in, I had a hunch from browsing: agents write long READMEs, even for tiny repos. The data backs it up.

    Median README size, by year created
    Repos that have a README, age-matched subsample, measured today.

    The median README was ~220–270 bytes in 2016–2020, a title and a line or two. It reached in 2025 and in 2026. In repos with a visible AI trace the median is ~3.8 KB, against ~1.4 KB in 2026 repos without one, and 46% have a README of 3 KB or more (20% without a trace).

    An ML exercise, three ways

    To see the "more lines" pattern up close, I took a small tabular machine-learning exercise from a written brief (predict how a product's sales respond to a price cut) and did it three ways: once myself, back in April 2022, before ChatGPT was even released (so no AI help at all), worked through the way a finished repo would be. Then twice with agents in 2026, one shot each, which is what you get when you prompt a script instead of cloning one: once running freely from the brief, and once given light guidance to match my approach (the same list of models to try).

    SolutionLines of codeBest modelR² (test)Mean abs. error
    Me197Random forest, default settings0.8870.864
    Agent, guided310 (1.6×)Random forest, tuned0.8561.007
    Agent, free run444 (2.3×)Blend of a linear model and gradient boosting~0.80*1.094

    Lines exclude blanks and comments. * Estimated from its error, as it reported R² on a different scale. The agents also chose a stricter test split (holding out whole products), which makes their task somewhat harder; the point here is the amount of code, not a leaderboard.

    More lines, more error
    Lines of code vs mean absolute error on the test set (lower is better), one dot per solution.

    I'm not claiming to be better than Opus. For one shot and a few minutes, what the agents produced is more than I could ever have done in that time. But it isn't better than a problem someone has already worked out, which is what a good repo gives you. It also shows the pattern from the GitHub data at small scale: for a similar task, agents add more lines, and more lines doesn't automatically mean better code. More code is more to read, review and maintain, whoever wrote it.

    On the other hand, traced repos are tested more often: of 2026 repos with an AI trace have test files, against without one (CI: vs ). Agents write tests when asked to build something properly, which is a point for generating your own code, as long as you ask for tests.

    3Clone it or prompt it?

    Back to the original question. Two things decide it: how much code an agent can write for you in a sitting, and how trustworthy the alternative is.

    One window of code

    Claude's paid plans have a rolling 5-hour usage limit, published only as multiples of the Pro plan [7]. Using a third-party measurement of what a window is worth at API prices (~$12 for Pro, ~$60 for Max) [8], and my own Claude Code logs for how much code a dollar buys (~ lines of code per dollar with Claude Opus 5.5, about output tokens per line written), a single window is worth roughly:

    ~1,500lines of code, one Pro window on Opus (~2,400 on Sonnet)
    ~7,700lines of code, one Max window on Opus (~11,900 on Sonnet)
    Share of new repos no bigger than one 5-hour window of code
    Repos with code, by creation year. Midpoint estimates; the range across my projects is in the table.
    Created 2026Created 2024
    One 5-hour windowLines (midpoint)2026 repos that fitRange2024 repos

    In other words, more than half of what people publish today is small enough for one Pro window, and more than four in five for one Max window. The comparison is generous to the agent (a window counts every line written, including rewrites, while a repo's size is only what survived), so read the low end of the range as the safer figure. Ultra has no 5-hour limit at all, and OpenAI's Codex meters messages rather than usage, with a similar ballpark on its Plus plan [12].

    How tested are new repos?

    For the repos with code in the age-matched subsample (~1,800 from 2020 and 2024–2026, 570 of them from 2026), I looked for test files, CI configuration, a license file and dependency lockfiles.

    2026 repos with codeReposAny testsCITests and CILicense

    Small repos, the kind you'd most likely find and want to borrow, are the least tested: of 2026 repos under 1,000 lines have any test file, and have a license. Without a license you have no right to reuse the code at all [13].

    Risks of cloning a new repo

    • Unknown quality: three in four have no tests and almost none have users.
    • No license: nearly nine in ten can't legally be reused [13].
    • Supply-chain attacks: 149,329 malicious open-source packages were logged in Q3 2026 alone [14].
    • Someone else's problem: you inherit their assumptions, and code you don't need.

    Risks of prompting your own

    • Security gaps: AI-generated code passed security tests only ~56% of the time in 2026 [15].
    • Invented packages: models recommend dependencies that don't exist 5–22% of the time [16].
    • Maintenance is yours: every generated line is one you own.
    • Untested unless you ask: generated code becomes trustworthy only once you've seen its tests run.

    Rule of thumb

    The chicken-and-egg problem is the deciding factor. A new repo's value used to be that a person had already thought the problem through. If an agent wrote it, cloning gets you a generic version of something you could have prompted for yourself, tailored to someone else, and usually untested. So:

    SituationBetter choiceWhy
    Small tool, script, glue code or UI for your own workflowPrompt your own, with testsFits in one window or less and is tailored to you. A random new repo of that size is usually untested, unlicensed and possibly agent-written anyway.
    Security-critical or standards-heavy: auth, crypto, parsing, payments, protocolsUse an established libraryIts value is years of edge cases and bug reports from real users, which no single session reproduces.
    Big, mature project: many users, regular releases, tests, CI, a licenseClone or depend on itOthers have already tested it in production, and maintenance is shared.
    New repo that does almost what you want, with a licenseUse it as a referenceHave the agent read it and write your version, keeping the ideas and the attribution the license asks for.
    New repo with no licenseDon't copy itYou have no right to reuse it. Build your own from the idea.

    Before cloning a new repo, check: a license; tests and CI that actually run; more than one contributor or some real users; commits after the first week; dependencies you recognise. Under 10% of 2026 repos with code pass even the first two.

    Limitations

    Detailed reports

    Every number above comes from these, with full methods, confidence intervals and data.

    Sources

    1. Understanding the search syntax, GitHub Docs: created: date-range search used for sampling and monthly counts. Data collected 2026-11-02.
    2. List repository languages, GitHub Docs: bytes of code per language.
    3. Linguist: Overrides, GitHub Linguist: which files count toward language statistics.
    4. Get a tree, GitHub Docs: Git trees API, used to read each repo as it was 7, 90 and 365 days after creation.
    5. AGENTS.md: an open format for instructions to coding agents, used by Codex, Cursor, Jules and others.
    6. Claude Code settings, Anthropic Docs: the co-authored-by attribution Claude Code adds to commits.
    7. What is the Max plan?, Claude Help Center, and Claude pricing, Anthropic: plan limits as multiples of Pro, and API prices. Accessed 2026-11-03.
    8. Claude Usage Limits (November 2026), Measured, Wokey: API value of subscription limits on real accounts, updated 2026-11-02. Third-party.
    9. Claude (language model), Wikipedia: Claude release dates. Accessed 2026-11-03.
    10. OpenAI GPT Model Release Timeline, Hidekazu Konishi, updated 2026-10-20; cross-checked with Wikipedia's GPT-6 page. GPT-5.3-Codex from third-party trackers only.
    11. Gemini (language model), Wikipedia: Gemini release dates. Accessed 2026-11-03.
    12. ChatGPT Work and Codex pricing, OpenAI: Codex messages per 5 hours by model. Accessed 2026-11-03.
    13. Licensing a repository, GitHub Docs: without a license, default copyright applies.
    14. Q3 2026 Open Source Malware Index, Sonatype, 2026-10-08.
    15. 2026 GenAI Code Security Report, Veracode, July 2026.
    16. We Have a Package for You! Package Hallucinations by Code Generating LLMs, Spracklen et al., USENIX Security 2025.