Finding a bug, writing the fix and committing it now cost close to nothing in human time. Reviewing that change, merging it safely and running it on every machine that needs it cost what they always did. The bottleneck didn’t disappear. It moved past the commit, and most teams are still measuring the part that got cheap.
Key takeaways
- AI moved the cost of software from producing changes to absorbing them: review, merge, rollout and operations.
- PHP2Shell is the clearest case so far. AI-assisted researchers found the bugs within days. About ten weeks passed between the first report to PHP and the patched release. About a week after the patch shipped, Censys still counted 32.5 million PHP services on vulnerable versions.
- Inside companies the pattern is the same. In a Carnegie Mellon and Stanford study of 196,212 pull requests, PR volume grew 3.1× while the reviewer pool grew 1.5×. The share of PRs that got a substantive human review fell from about 39% to about 21%.
- Review is a queue. Wait times grow nonlinearly with utilization, and overloaded teams respond by approving without reading.
- Measure the queue, not the output. Budget human attention and production capacity the way you budget latency.
The cheap half got very cheap
Start with code. As of May 2026, more than 80% of the code merged into Anthropic’s codebase was written by Claude, according to Anthropic’s own internal data. In Q2 2026, the typical Anthropic engineer merged 8× as much code per day as in 2024, though Anthropic itself notes that lines of code overstate the real gain. Across GitHub, monthly commits went from 1.4 billion to 2.9 billion between April and August 2026, according to GitHub’s CTO.
Finding bugs got cheap too. Anthropic says Claude Mythos Preview, deployed through Project Glasswing, found more than ten thousand high- and critical-severity vulnerabilities in its first weeks. That was enough, Anthropic argues, to move the bottleneck in cyber defense from finding vulnerabilities to patching them fast enough.
The cheapness cuts both ways. curl ended its HackerOne bug bounty on January 31, 2026, after a flood of low-quality AI-generated reports. Generating a report costs nothing. Triaging it costs maintainer time.
That is the pattern this post is about. AI collapses the cost of producing a change, a finding or a report. It does much less for the cost of verifying, integrating and operating one. Anthropic describes this as Amdahl’s law applied to an organization: speeding up one stage just moves the bottleneck to the stages that didn’t speed up. Inside Anthropic, it showed up first in human code review.
PHP2Shell: the whole thesis in one incident
PHP2Shell is a pair of critical remote code execution bugs in the PHP interpreter, CVE-2026-109618 and CVE-2026-109619, both rated CVSS 9.2. The affected code paths go back to PHP 5.4, and Wiz estimates PHP runs about 70% of websites. Here is how long each stage took.
| Stage | Date (2026) | What happened |
|---|---|---|
| Find | Jul 30 – Aug 1 | Calif starts auditing PHP under OpenAI’s Patch the Planet program and finds the first exploitable path within days |
| Report | Aug 11 | Calif reports the first bug to PHP; PHP confirms the proof of concept on Aug 15 |
| Find | Aug 19 – 21 | Wiz independently finds the bugs and confirms unauthenticated RCE on Drupal and WordPress |
| Report | Aug 24 | Wiz reports to PHP |
| Fix | Sep 21 | PHP acknowledges Wiz’s reports and begins building a coordinated fix |
| Leak | Oct 17 – 20 | Amazon logs an exploit attempt on a honeypot on Oct 17; details leak publicly on Oct 20 |
| Ship | Oct 21 | PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35, a day earlier than planned |
| Run | Oct 26 | CISA adds both CVEs to its Known Exploited Vulnerabilities catalog |
| Run | ~1 week later | Censys counts 32.5 million PHP services still on vulnerable versions |
Finding took days. Calif says in its write-up that it used no special harness and no models that weren’t generally available. OpenAI says Calif used GPT-5.6 Sol. Wiz used Wiz Atlas, Gemini 4 Argon and GPT-5.6 Sol, and says a single researcher completed in a week what would previously have taken a world-class team months.
Fixing took about two months. Nobody was slow at typing a patch. A fix to the core of an interpreter that runs most of the web has to be understood, checked against variants, coordinated with hosting providers and CDNs, and released without breaking millions of applications. That is review and merge at internet scale, and the PHP Foundation’s account of the release shows how much coordination it took. PHP confirmed Calif’s proof of concept within days, but Wiz’s later reports were acknowledged about four weeks after they arrived, according to Wiz’s disclosure timeline. A small maintainer team was the queue.
Running the fix is still going. After the leak, Cloudflare saw exploit attempts climb from thousands in the ten hours before the announcement to tens of thousands within 45 minutes of it, hundreds of thousands within two hours, and millions by the next day, according to CEO Matthew Prince. Cloudflare had switched on WAF rules for all customers before disclosure, but rules buy time; they don’t patch PHP. Some organizations took services offline rather than run unpatched. Several European government sites went dark after CERT-EU warned that unpatched sites might need to come down, and in Japan, MUFG temporarily suspended some internet services, TNW reported. Nearly a week after the release, Censys found that only about a quarter of PHP services showing their version had moved to a fixed release. Most of the vulnerable servers were on PHP 7.4, which last received an update about four years ago. Versions older than 8.2 no longer get official PHP support at all.
Two caveats belong here. First, measurements differ by method. Wiz’s own telemetry showed the number of affected organizations falling by about 48% within a week, and Wiz had not seen a successful end-to-end exploit as of its update. Second, a third related RCE, disclosed on October 23, is not fixed by the October 21 releases, as The Hacker News reported.
Even the AI-assisted side needed humans. Tenable reports that AI agents sped up its PHP2Shell exploit research but also produced at least one convincing false positive. Cheap findings still need expensive verification.
The patch existing and the patch running are different events. The cost lives in the second one.
Inside your company, the shape is the same
PHP2Shell is the public version. The private version shows up in your pull request queue.
The best data I’ve seen is a Carnegie Mellon and Stanford study, AI Writes Faster Than Humans Can Review, which followed an enterprise “2×” AI mandate: 802 developers and 196,212 pull requests from January 2024 to April 2026. Per-developer throughput did roughly double. Then:
- Company-wide PR volume grew 3.1×, while the pool of people acting as reviewers grew 1.5×. Per-reviewer load roughly doubled.
- The share of PRs with at least one human review fell from 89% to 68%. Automated AI review rose from about 19% to about 84%.
- Reviews with a human-written comment fell from about 39% to about 21% of PRs. Silent approvals per reviewer roughly doubled.
- AI-authored PRs took about 20% longer to get from first human review to merge.
- For PRs that did get a substantive human review, p90 cycle time peaked near 114 hours and settled around 73 hours, still above its baseline of about 63 hours. That queue never cleared. The company kept pace by routing work around it.
To be fair to the data, merge and revert rates in that company stayed flat. The authors call those coarse, short-horizon proxies that miss incidents and maintainability, which is right. Their summary is worth remembering: the speedup “relocates work downstream rather than removing it.”
Broader data points the same way:
- Faros AI’s Acceleration Whiplash report (vendor telemetry, 22,000 developers across 4,000 teams, two years): moving from low to high AI adoption, epics completed per developer rose 66.2%. Incidents per PR rose 242.7%, bugs per developer rose 54%, and median review time rose about 5×.
- DORA 2025: AI adoption now correlates with higher delivery throughput, reversing the 2024 finding. It still correlates with higher delivery instability. The full report breaks this down by team archetype.
- Undo’s 2026 research report (vendor survey by Coleman Parkes of 300 senior leaders, mostly on mission-critical C/C++ code; InfoQ’s summary): teams spend 9.8 hours a week producing code and 16.9 hours debugging. 35% of AI-generated code reaches production before the team fully understands it, and 81% had at least one production incident linked to AI coding tools in the previous six months.
Faros and Undo both sell solutions to the problems they measured, so treat their numbers as direction rather than precision. The direction is consistent.
Why the bill lands after the merge
Review is a queue, and queues are nonlinear
I covered the picture in Queueing Theory in One Picture. For a simple queue, waiting time relative to service time scales with ρ / (1 − ρ), where ρ is utilization. At 50% utilization that ratio is 1. At 80% it is 4. At 90% it is 9.
Take a reviewer who is 45% busy and double their load to 90%, roughly the doubling in the CMU/Stanford study. Expected wait goes from about 0.8× the service time to 9×. A 2× change in arrivals makes the wait more than ten times longer. This is illustrative M/M/1 math, not a measurement. Real review queues are burstier, which makes it worse.
Real teams don’t sit in that queue. They shorten the service time by reading less. That is what doubled silent approvals look like. Review didn’t scale. It hollowed out.
Merged code keeps costing
A merged change isn’t a finished cost. It’s a new liability: configuration, migrations, dependencies, alerts, and eventually someone who has to understand it at 3 a.m. Undo’s 35% figure is the alarming one. If a third of the AI-generated code reaching production isn’t understood by the team that shipped it, incident response will be slow. In the same survey, 93% of leaders said an AI hallucination had led to an incorrect root-cause diagnosis at least once. I made the broader version of this argument in Skill Is a Dependency.
Production capacity is shared and finite
GitHub’s August 17 outage lasted 7 hours and 47 minutes. GitHub says no code or configuration change caused it. It was a capacity failure: traffic hit a new peak and a critical component didn’t scale, after monthly commits had doubled since April. During recovery, a Copilot client retry loop added traffic, and GitHub had to mitigate it before it could safely restore service. The full root cause analysis has the timeline. That is Retries as a Load Multiplier at platform scale. GitHub’s own diagnosis was that its operational practices didn’t keep up as the pace and complexity of change increased.
The commits were cheap. The platform that absorbs them isn’t.
Blast radius is an authorization problem
In April, a Cursor agent running Claude Opus 4.6 deleted PocketOS’s production database and its backups with a single API call to Railway, in about nine seconds. While fixing a staging credential mismatch, the agent found a full-permission API token in an unrelated file and used it. Railway allowed the deletion without confirmation, and the backups were stored close enough to the database to be erased with it.
Writing that command cost nothing. Agents make actions cheap, so the cost of an action is set by what it is allowed to touch.
What to do about it
None of this argues against coding agents. It argues for spending attention where the cost moved.
- Measure the queue, not the output. Merged PRs per engineer is the metric that got cheap. Track time to first review, review-lead time, p90 cycle time, the share of PRs with substantive review, change failure rate and rework. The CMU/Stanford authors recommend this pairing.
- Keep batches small. AI-authored PRs tend to be larger, and larger diffs take longer to review well. Cap PR size for agents the way you would for a new hire.
- Tier review by blast radius. Let automated review clear low-risk changes, and spend human attention on schema changes, auth, payment paths and anything irreversible. Automated review helps, but it doesn’t replace judgment. Anthropic estimates its automated reviewer would have caught roughly a third of the bugs behind past claude.ai incidents. A third is a lot. It isn’t everything.
- Make rollout cheap and reversible. Use canaries, feature flags and a rollback path you have actually tested. That is the argument of Ship Fast. Recover Faster.
- Know your fleet. PHP2Shell’s long tail is end-of-life runtimes nobody owns. If you can’t list every runtime version you run in production, you can’t patch in a day, however fast the fix arrives.
- Put authorization outside the agent. Use scoped tokens, keep production credentials out of the workspace, enable deletion protection, and keep backups in a separate blast radius. A rule written in an agent’s prompt is a suggestion.
- Budget human attention like an SLO. If reviewers run above about 80% utilization, you don’t have a review process. You have a rubber stamp with latency.
The fix is cheap. Shipping it isn’t.
An agent can find the bug and write the patch in an afternoon. Getting that patch reviewed, merged and running on every machine that needs it still takes as long as it takes. The teams that do well in this era won’t be the ones generating the most code. They’ll be the ones that treat everything after the commit as the scarce resource it has become.
FAQ
Is code review the bottleneck for teams using AI coding agents? It’s the first visible one. In the CMU/Stanford study, PR volume grew 3.1× while reviewers grew 1.5×, and substantive human review fell from about 39% to 21% of PRs. Anthropic reports that human code review became a bottleneck internally. The cost continues past review into rollout and operations.
Did AI find PHP2Shell? AI-assisted researchers did. OpenAI says Calif found the bugs using GPT-5.6 Sol under its Patch the Planet program. Wiz found them independently using Wiz Atlas, Gemini 4 Argon and GPT-5.6 Sol. Humans directed the research, verified the findings and coordinated the fix with PHP.
Does AI-generated code cause more production incidents? The evidence points that way but isn’t settled. Faros reports incidents per PR up 242.7% at high AI adoption, and DORA 2025 links AI adoption to higher delivery instability. The CMU/Stanford case study found flat revert rates. Most of this data is correlational.
What should engineering teams measure instead of PR throughput? Review latency and queue depth, the share of PRs with substantive review, p90 cycle time, change failure rate, rework rate, and incidents per change.