Does AI Really Write 40% of Code? GitHub’s Data

A programmer working on code on a laptop, illustrating AI agents writing code on GitHub

Does AI really write 40% of the world’s code? Not exactly. GitHub, the biggest home for software projects, says that more than 40% of pull requests in September 2026 began with a first draft from an AI coding agent. That is a big number, but it does not mean AI wrote 40% of all code.

Here is what the number really says, what it leaves out, and why it matters even if you never write code.

What Did GitHub Actually Report?

GitHub’s yearly report, called Octoverse 2026, says AI coding agents started more than 40% of pull requests in September 2026. In March the share was 17%. A pull request is a proposed change to a software project.

An AI coding agent is software that can take a task, like “fix this bug,” and write the code on its own. GitHub counted a pull request as “agent-started” if its first draft came from a coding agent it could detect. Agents started about 110 million pull requests in September alone. That is about six times the March level, according to GitHub’s own report.

The whole platform also grew fast. In the 12 months to September 30, 2026, GitHub saw 34.3 billion commits (saved code changes). That is up from 12.9 billion the year before. Merged pull requests reached 1.3 billion, up from 538 million.

Does AI Write 40% of Code? Why the Answer Is No

No. The 40% figure counts pull requests that an AI started, not lines of code that an AI wrote. A person usually reviews the change, and often edits it, before it joins the project.

Think of a pull request like a school essay. An AI might write the first draft. A teacher still reads it, marks it, and asks for fixes. The draft counts as “AI-started,” but the final essay may be mixed.

There is another limit. GitHub only counts agents it can detect. Some AI help leaves no trace. So the real share could be higher or lower, depending on how you measure it. Numbers from different groups do not match either. One outside analysis cited by a Spanish tech blog put the agent share at 27.6%, which is a different way of counting.

Are AI-Started Changes Better or Worse?

GitHub says AI-started changes are accepted at a slightly higher rate: 90% were merged within two weeks, against about 86% for others. But “merged” only means a person said yes. It does not prove the code is better.

GitHub also found that agent-started changes touch more than one file more often: about 87% of the time, against 79%. In plain words, agents tend to take on bigger jobs.

  • Good sign: people accept most AI drafts.
  • Caution: people may accept them because they look right, not because they are right.
  • Unknown: the report does not measure how many bugs slip through.

This worry is real. We have written about how safe an always-on AI agent really is. Agents that act quickly still need a careful human checking their work.

Will AI Replace Programmers?

The data does not show that. GitHub reports more than 225 million developers, and both the United States and India added over 10 million this year. The work is changing from typing code to directing and checking it.

The top countries by developer count in September 2026 were the United States (38.3 million), India (32.0 million), China (12.4 million), Brazil (10.2 million), Japan (7.15 million) and the United Kingdom (6.47 million). So this is a worldwide change, not one country’s story.

Still, the job mix is shifting. GitHub says 55% of monthly Copilot users now use its agent features, up from 35% a year earlier. Many tech workers worry about what this means for jobs. For a related story on how companies talk about AI and layoffs, read our piece on Meta’s 16,000 job cuts.

What Does This Mean for Everyday Software?

More software is being changed, faster. That can mean quicker app updates and bug fixes. It can also mean more mistakes reach the apps you use, if checking does not keep pace.

GitHub says people pushed 17.9 billion code updates in a year, more than in 2024 and 2025 combined. The same report says projects created in 2026 that have an agent setup file logged eight times as many commits on average.

Companies are also not relying on just one AI model. Among people who pick their own model, 61% used more than one in September. Paying users tried 47 different models, and no single model got more than 25% of requests.

How Should You Read Numbers Like This?

Ask three questions: what exactly was counted, who counted it, and what was left out. A big percentage with a vague definition tells you less than it seems.

  • What was counted? Pull requests started by agents, not finished code.
  • Who counted? GitHub, which also sells AI coding tools through GitHub Copilot.
  • What is missing? Bug rates, and AI help that GitHub cannot detect.

Takeaway: AI now starts a large and fast-growing share of software changes, but people still decide what ships.

Frequently Asked Questions

Does AI write 40% of all code?

No. GitHub says more than 40% of pull requests started with an AI agent’s first draft. A pull request is a proposed change. Humans still review it, and many are edited before they are accepted.

What is a pull request?

A pull request is a request to add a change to a software project. Someone writes the change, then others check it. If it passes, it is merged into the main code.

Are AI-written code changes accepted more often?

GitHub says 90% of agent-started pull requests were merged within two weeks, compared with about 86% for the rest. That is a small gap, and a merge only means someone approved it.

Will AI replace programmers?

This data does not show that. GitHub also reports more than 225 million developers, and the US and India each added over 10 million this year. The job is changing toward directing and checking AI work.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top