Where the Work Went After Agents Started Writing the Code

by | Nov 4, 2026 | Business, Technology

In September 2026, agents started 110 million pull requests on GitHub. That was more than 40% of the month’s total, against 17% in March, according to GitHub’s Octoverse 2026 report, which runs on GitHub’s own platform telemetry and, unless otherwise noted, covers public and private repositories for the Octoverse year ending 30 September 2026. GitHub’s wording is that “more than 40% of pull requests on GitHub started with an agent’s first draft, up from 17% in March.”

The direction is not seriously disputed. JetBrains asked over 15,000 professional developers worldwide, between May and July 2026, what share of the code they produced for work in the previous month was fully generated by agents. The average answer was about 47%. JetBrains describes this as its large-scale, globally representative Developer Ecosystem Survey 2026, and its three self-reported shares do not sum to 100, so read them as direction rather than accounting.

So the shift is settled. The question now is what happened downstream, in the parts of a software business nobody rebudgeted. Three costs moved: the wait before a human reviews a change, the compute that tests and scans it, and the model bill. One did not, and that is the one that matters most to a SaaS P&L.

The review queue moved, and two good datasets disagree about how far

Start with the uncomfortable part. The two telemetry sets behind this article disagree about what happens to a pull request full of agent-written code after it opens, and neither one is wrong.

On GitHub’s two-week measure, agent pull requests got faster. In February 2026, 83% of agent-involved pull requests merged within two weeks, a little behind the roughly 86% for pull requests without detected agent involvement. By September the agent group reached 90% while the comparison group held at about 86%. On that measure, agent-written code now clears the two-week bar slightly more often than pull requests without detected agent involvement do.

Grouped bar chart comparing the share of pull requests merged within two weeks for agent-involved and non-agent pull requests on GitHub in February and September 2026
Figure 1. Source: GitHub Octoverse 2026, GitHub’s own platform telemetry covering public and private repositories for the Octoverse year of 1 October 2025 to 30 September 2026. The comparison group is pull requests without detected agent involvement, and GitHub states both of its figures as roughly or about 86%. Checked 4 November 2026.

LinearB’s 2026 Software Engineering Benchmarks Report reads the other way on a different metric. It is built from LinearB’s own analysis of 8.1+ million pull requests from 4,800+ organisations worldwide, meaning the organisations that pay LinearB to instrument them. LinearB reports that AI pull requests wait 4.6 times longer before review, then are reviewed twice as fast once someone picks them up, and states that “Acceptance Rates for AI-generated PRs are significantly lower than manual PRs (32.7% vs. 84.4%).”

Bar chart showing a 32.7% acceptance rate for AI-generated pull requests against 84.4% for manual pull requests in LinearB telemetry
Figure 2. Source: LinearB 2026 Software Engineering Benchmarks Report, created from LinearB’s analysis of 8.1+ million pull requests from 4,800+ organisations worldwide, as displayed on 4 November 2026. This is LinearB’s own customer telemetry. It measures a different metric on a different population from Figure 1, and the two figures are not comparable.

These are different questions put to different populations, not contradictions. GitHub asks whether a pull request merged inside two weeks, across its entire platform. LinearB asks how long one waits for a first review and whether it is accepted, across its instrumented customers. Averaging them would produce nothing. The useful read is that what got slower is the wait before a human looks, and what got faster is almost everything after that.

One caution applies to every GitHub number here. These are GitHub’s own platform measurements rather than an independent audit, and a merge rate is not evidence that agent-written changes are more reliable. Octoverse also defines its terms in ways that do not map onto open-source-only surveys, so the definitions are worth reading before setting any of these figures beside a different study.

Verification turned into a line item

Sonar sells code review and verification tooling, so it has a commercial interest in the answer. Its State of Code Developer Survey, announced on 8 January 2026, surveyed over 1,100 developers globally; no fielding window is published with it. In that vendor-run sample, 96% reported they do not fully trust that AI-generated code is functionally correct, while only 48% said they always check AI-assisted code before committing. And 38% said that “reviewing AI-generated code requires more effort than reviewing code written by their human colleagues.”

The same survey puts developer toil at nearly a quarter, 24%, of the work week, and says it holds steady there regardless of how often developers use AI. That is the second-order effect, stated about as plainly as a vendor will state it. The time saved drafting did not leave the week. It changed shape.

Harness, working with LeadDev, surveyed 500 engineering leaders for its State of AI-Driven Software Releases 2026 report; again, no fielding window is published on the report page. Three figures from those 500 leaders matter here: 29% said they spend more time on code review than before, 57% still apply human-in-the-loop review to every line of AI-generated code, and 49% have specific guardrails for it. Sonar and Harness both sell into this problem, so treat the levels as directional and the direction as real.

One operator caveat that rarely makes the reports. A 57% figure for line-by-line human review is a staffing statement, not a policy statement. It survives a repository where an agent opens four pull requests an hour only if somebody is paid to sit in that queue, and it breaks first in teams with the fewest senior reviewers.

The machinery around the code scaled in multiples

The clearest downstream evidence is in what GitHub had to run over the same Octoverse year. GitHub Actions ran a job 1,440 times every second, which GitHub puts at 124 million times a day and more than three times the previous year’s total. Push protection, which screens for exposed secrets such as API keys and passwords, ran 5.8 billion scans, nearly four times the 2025 pace. Developers merged more than 30 million Dependabot pull requests to keep dependencies current, about double the 2025 pace.

Review tooling grew alongside it. GitHub states that usage of AI-assisted code review and GitHub Advanced Security both grew more than 90% year over year, and that stacked pull requests, a preview launched on 30 July, had been used by more than 264,000 developers by September. GitHub’s own summary of the year is two short sentences: “Review is where developers shape what comes back, and more tooling is being built for it.” And: “Developers are investing in how they review code.”

Those are GitHub’s platform numbers, describing GitHub’s own users rather than the industry. Each of those four lines, continuous integration jobs, secret scans, dependency updates and review tooling, scales with the number of changes rather than the number of engineers. That is a different cost curve from the one most SaaS engineering budgets were built on, and it is the curve a platform team now owns. We looked at who ends up holding it in our coverage of platform engineering.

The SaaS spending line that did not move

Now the number that makes this a SaaS story rather than a developer story. SaaS Capital’s 2026 Spending Benchmarks for Private B2B SaaS Companies, published on 10 June 2026 from its 15th annual survey, completed in March 2026, with more than 1,000 private B2B SaaS companies self-reporting what percentage of revenue goes where, states: “The median percent of annual recurring revenue spent on research and development is 22%, unchanged from the previous year.”

Three engineering-adjacent lines held flat in that survey: research and development at 22%, DevOps at 4%, and hosting at 5%, each unchanged from the previous year. Three other lines rose: selling costs to 15% from 13%, general and administrative to 15% from 14%, and customer support and customer success to 9% from 8%. On these medians, the departments most exposed to the agent transition are the ones whose share of ARR did not change.

Grouped bar chart of median private B2B SaaS spending as a percent of ARR for six departments, comparing the previous year with the 2026 survey
Figure 3. Source: SaaS Capital, 2026 Spending Benchmarks for Private B2B SaaS Companies, published 10 June 2026. Medians self-reported by more than 1,000 private B2B SaaS companies in SaaS Capital’s 15th annual survey, completed March 2026. Prior-year values are the ones SaaS Capital itself states, either as “unchanged from the previous year” or as “up from” the figure shown. Checked 4 November 2026.

Read that carefully before celebrating. These are self-reported medians from a single quarter, and a flat ratio is not a falling cost per unit of output. Revenue grew too: the same post reports bootstrapped companies growing at 20% a year on median against 25% for those that have raised venture capital. A ratio that holds while both rise tells you the engineering budget kept pace with the business, nothing more precise.

It is still the better reading, and it is defensible. The private B2B SaaS companies in SaaS Capital’s sample absorbed a step change in code volume without a step change in the share of ARR going into building the product. If your own R&D line drifted from 22% to 28% over the same stretch, the benchmark says that is company-specific, not an industry condition.

Where the new money actually shows up

Model spend is the one genuinely new line, and it is already being governed. Stack Overflow published its 2026 Developer Survey results on 6 October 2026. The post states that “Over seven weeks, more than 30,000 people took the survey” and does not publish exact fielding dates. Among respondents, 38% said limits had been set on usage, 28% that spending data had been reviewed, 27% that different models were used for different work, and 25% that limits had been set on who gets to use AI. Only 21% said their organisations are spending more.

Four cost-control measures against one spending increase. That is what a line item looks like once finance has found it, and part of why the R&D ratio held: the companies that adopted agents fastest put a budget around them inside a year. That budget shape, a small fixed layer plus metered consumption, is the one vendors now sell into, which we covered in The Consumption Gap.

Security improved, and from a low base

Veracode is an application security vendor publishing its own benchmark, which is the right frame for what follows. On 29 October 2026 it announced that the overall security pass rate for AI-generated code rose from 56% to 62%, with the vulnerability rate falling from 44% to 38%. Veracode describes its corpus directly: it “tested 18 models across four languages (Python, C#, JavaScript, Java) and four Common Weakness Enumeration (CWE) categories (CWE-89, CWE-327, CWE-80, CWE-117).”

Veracode’s framing of the limit is the useful part. It attributes most of the gain to cross-site scripting, notes log injection stayed flat at 13% and Java sits at 31% against 64% for Python, and says roughly four in ten tasks still produced vulnerable code without security-specific guidance. This is a vendor benchmark on four weakness categories in four languages, not a measurement of production software. If you sell software with a compliance story attached, that 38% is the figure your buyer’s security team reaches eventually.

What to do with this if you run SaaS engineering

Four moves follow. Measure time to first review separately from merge time, because LinearB’s finding only appears when you split them and GitHub’s merge-rate figure hides it. Treat review capacity as a staffing plan, not a cultural value: the teams holding a 57%-style line-by-line standard budgeted a reviewer. Put agent spend, model spend, CI minutes and scanning volume in one report, because all four scale with changes rather than headcount. And hold the R&D ratio: 22% of ARR is the discipline that keeps this a growth story. Those lines are what a board asks about next, a shift we traced in our piece on developer experience metrics reaching the board deck.

One more caveat a generic framework will not hand you. None of this holds the same way below roughly twenty engineers, where one senior reviewer is the entire queue and the constraint shows up as a person on holiday, not a metric on a dashboard. The benchmarks quoted here are medians across populations that skew larger.

Frequently asked questions

Is agent-written code slower to merge than human-written code?

It depends which dataset you use, and the two cited here disagree. GitHub’s platform telemetry for September 2026 shows 90% of agent-involved pull requests merging within two weeks against about 86% without detected agent involvement. LinearB’s customer telemetry shows AI pull requests waiting 4.6 times longer for a first review, then reviewed twice as fast once picked up, with acceptance at 32.7% against 84.4% for manual pull requests. They measure different things on different populations, so track both in your own repository.

How much of our code is actually written by agents?

Self-reported averages cluster around half. JetBrains, surveying over 15,000 professional developers worldwide between May and July 2026, found an average of about 47% of code fully generated by agents. Sonar’s vendor-run survey of over 1,100 developers, announced in January 2026, put AI at 42% of all committed code, with developers expecting 65% by 2027. Both are self-reports rather than instrumentation, and JetBrains’ shares do not sum to 100, so treat them as a range.

Should we budget more for code review in 2027?

Budget for review capacity and for the machinery around it, not for review hours alone. In the Harness and LeadDev survey of 500 engineering leaders, 29% said they already spend more time on code review than before and 49% have specific guardrails for AI-generated code. On GitHub’s platform, usage of AI-assisted code review grew more than 90% year over year. The practical answer is to fund tooling and a named reviewer rotation, then measure whether time to first review falls.

Does AI-generated code raise our security risk?

Less than it did, and still more than zero. Veracode’s own benchmark, announced on 29 October 2026, tested 18 models across four languages and four CWE categories and found the security pass rate rising from 56% to 62%, with the vulnerability rate falling from 44% to 38%. That still means roughly four in ten tasks produced vulnerable code without security-specific guidance. It is a controlled vendor benchmark rather than a measurement of production software, so use it to justify scanning spend, not to estimate your own exposure.

Has R&D spending as a share of ARR gone up because of AI?

Not in SaaS Capital’s most recent benchmark. Its 2026 survey, completed in March 2026 with more than 1,000 private B2B SaaS companies self-reporting, puts median research and development at 22% of ARR, unchanged from the previous year, with DevOps at 4% and hosting at 5%, both also unchanged. Selling costs, general and administrative and support all rose. If your own R&D ratio has climbed, the benchmark suggests looking at your mix rather than at the industry.

The short version

Agent-written code is now a large and growing share of what ships, and its cost did not land where the forecasts said. Not on research and development as a share of ARR, and not on the DevOps or hosting lines. It landed on the wait before a human looks at a change, on the compute that tests and scans every change, and on a model bill finance found and fenced inside a year. For SaaS operators that is a good trade, worth saying plainly: more output moved through the same share of ARR, and what is left is concentrated enough to staff and instrument.

Recent Posts

Explore Topics