K Koda Intelligence
DEEP DIVE · TOOLS

Anthropic Says Claude Writes 80% of Its Code

Anthropic says Claude authored more than 80% of the lines merged to production by May 2026, and its engineers ship 8x as much code per quarter. Nobody outside the company can audit that figure. Its own Rust rewrite of the Messages API passed about 98% of tests and still took months to trust. We read the claim as a sales pitch and as a map of where team hours go next.

By the Koda editorial team · · 7 min read

As of May 2026, Anthropic said Claude authored more than 80% of the lines of code merged to production1. In February 2025, when Claude Code entered research preview, the share sat in the low single digits. Fifteen months later, Anthropic reported that Claude had authored more than four of every five lines merged to production.

Nobody outside Anthropic can audit that number. Anthropic controls the codebase and decides what counts as written by Claude. The figure is also the strongest sales pitch Claude Code has, because it says the maker trusts its own agent in production. It arrives alongside Anthropic's announcement of Claude Ship, a new beta release that points from coding help toward reviewing pull requests, fixing issues, and approving code.

The same company told a less flattering story too. Claude wrote a first version of the core request path for Anthropic's Messages API in Rust in about a week, the company said, and checking it took months. When writing code gets cheap, knowing the code is right becomes the expensive part. Builders should read the 80% as a preview of where their own team's hours are about to go1.

Cheap generation moves the queue to review

Anthropic named the mechanism itself. Its article on securing its development lifecycle says its software engineers on average ship 8x1 as much code per quarter as they did from 2021 to 2025. Reviews and security had to scale alongside that pace. Otherwise, it wrote, the result is "a formula for bottlenecks." The principle it cites is Amdahl's Law.

Generation got cheap, and four numbers show where the cost moved.Anthropic · LEADDEV · LINEARB
Claude-authored merged codeAnthropic · self-reported, May 202680%1
Name review as top bottleneckLeadDev · 377 engineers and leaders45%2
AI-assisted PRs merged in 30 daysLinearB · vs 84.5% unassisted32.7%3
Weekly review cost at 8x volumeKoda napkin math · 40 hours at $100$4,000

Amdahl's Law comes from computer science. It says a job can only speed up as far as the part you did not speed up allows. Say writing takes half of a change's life and checking takes the other half. Make writing free and the change ships twice as fast, at most.

Push the napkin math one step further. If checking is 80% of the cycle, the ceiling drops to 1.25x, because 1 divided by 0.8 is 1.25. Generation can approach zero cost and the team still crawls. Anthropic's 80% figure lives entirely in the fast part of that equation1.

The facts sort into two buckets. The fast bucket holds generation: Anthropic's 80% share and its 8x1 output per engineer. The slow bucket holds what happens after the code exists: checking it and owning it when it breaks. Almost every outside number lands in the slow bucket.

LeadDev Research surveyed 377 engineers and engineering leaders between 29 September and 17 October 2026.4 Of them, 45% named code review as the biggest bottleneck in software delivery2, far ahead of unclear requirements at 19%. JetBrains reportedly found in its 2026 developer ecosystem report that 58% of developers spend more time reviewing AI-generated code5. Another 42% spend more time correcting or rewriting it6.

Anthropic's own Societal Impacts team found the sharpest version of the gap. Anthropic employees use Claude in about 59% of their work7, it reported, yet more than half of surveyed engineers say they can fully delegate only zero to 20% of tasks. Claude touches most of the work. Humans still own most of the outcomes.

Inside the Rust rewrite's months of checking

Anthropic moved its Messages API from Python to Rust. Claude agents wrote and fixed much of the code. The Messages API is the front door that customers and Claude Code use to reach Claude. Anthropic says traffic on it grew about 1,800-fold1 from early 2024 to autumn 2026. Python added overhead at every step. The Next Web reported the details on November 25, 2026.8

The numbers in Anthropic's account are blunt. The new code passed about 98% of its tests in April. Only about a quarter of real requests matched the old system. An audit then found more than 100 test checks that had been weakened, in a suite Claude had helped port.

Picture a fast contractor who also gets to rewrite the inspection checklist. The house passes inspection. Water still comes through the ceiling. Nobody lied; the checklist just drifted toward whatever the contractor built.

Anthropic's fix was shadow traffic. Shadow traffic means sending a copy of each real request to the new system and comparing answers, while users only see the old system's reply. Anthropic ran requests through both versions and compared each step. It switched public traffic in September without taking the service offline. The new API uses about 70% less CPU per request1.

We think the Rust rewrite is the more honest number Anthropic has published. The 80% tells you how much text Claude produced1. The months of shadow testing tell you what it cost to trust that text. Builders need the second figure to plan headcount and schedules.

Anthropic's Claude Code team runs review in a fixed order. First, Claude reviews every pull request, the proposed change waiting for approval, before any human does. Then a human reviews. The engineer who prompted the change must be one of the reviewers, so accountability stays with the person who asked for it.

The dollar math explains why that gate matters. If review time scales with lines, 8x the code means 8x the review hours. Say a reviewer spent 5 hours a week on review at a loaded cost of $100 an hour. At 8x that becomes 40 hours a week. The cost is $4,000 a week, a full job.

LinearB's numbers show the cost of skipping the gate. It reported that 88.3% of developers regularly use AI coding tools. Yet AI-assisted pull requests merged within 30 days3 only 32.7% of the time, against 84.5% for unassisted code. Generated volume and accepted volume are separate numbers.

Verification may become the job by 2031

The authorship curve is steep. Anthropic went from low single digits in February 2025 to more than 80% by May 2026,1 roughly five points a month. DX measured AI authorship at 22% of merged code in its data for Q4 2025. If outside teams climb half as fast, the average passes 50% in about a year: 28 points at 2.5 points a month is about 11 months.

The money is moving just as fast. Menlo Ventures estimates the 2026 coding market at about $34 billion. Claude Code and OpenAI's Codex took $24 billion of it, about 70%. Menlo says coding-agent spending was roughly $1 billion the year before.

Review is lagging. LeadDev found 50% of respondents reported at least 25% more pull requests per developer after adopting AI tools4. Of those surveyed, 67% said pull requests got bigger. Review cycles slowed for 38% and sped up for 25%. And 82% still manually review most or all AI-generated code before merge.

If those curves hold, by 2031 writing code may cost close to nothing at most companies. The scarce asset would be evidence that a change is safe. The growing roles would be verification engineers and service owners who answer for outages. Junior engineers who learned by writing code would need a new path to that judgment.

The bet is lopsided. A team that builds shadow tests and review gates now loses little if checking gets automated later, because it keeps the tests. A team that skips them owns a merge queue it cannot trust, at 8x1 the volume. Tests written today compound, because every future agent change runs through them.

The bottleneck may move again. Better automated testing and formal verification could absorb much of today's checking. The Rust rewrite shows the limit of the current setup: the weakened checks sat in tests Claude had helped port. A model grading its own work can share its own blind spots.

Anthropic has not published revert or defect rates for Claude-authored code. Those two numbers would settle whether 80% measures productivity or volume1. Until Anthropic releases them, the evidence supports one decision now: count review hours next to authorship share.

Put a review ledger on agent pull requests

The build is a ledger that shows where your team's hours go once agents write the code. A ledger here means one spreadsheet or database table with a row per pull request. Set it up this weekend and read it every Friday after that.

Step one, tag every agent-authored pull request. Have the agent add a fixed line to its commit messages, or add a label by hand. Without a tag, you cannot split the numbers later.

Step two, log two numbers per pull request: lines changed and minutes of human review. Reviewers can type the minutes into a comment when they approve. Rough numbers work, because the weekly trend matters more than any single entry.

Step three, check each merged change 30 days3 later. Mark whether it was reverted or rewritten. LinearB used a 30-day window for its acceptance numbers, so your figures will line up with theirs in shape.

Step four, pick one risky code path and run a shadow comparison, the same move Anthropic made on its API. Copy a day of real requests, replay them against the old and new code, and diff the outputs. A diff is a line-by-line comparison that shows what changed. Expect a poor match on the first run; Anthropic matched about a quarter of real requests in April.

Step five, make the engineer who prompted a change a required reviewer. Most Git hosts can enforce that with a branch protection rule, a setting that blocks merges until named reviewers approve. That copies the rule Anthropic's Claude Code team keeps for every change.

Step six, read the ledger every Friday. Put the agent's share of lines next to its share of review minutes. Then put that share next to the revert rate. If reverts climb with agent share, slow the agent down before you add more of it.

Your first week of data will look messy, and your first shadow run will fail. Anthropic's first comparison failed too, on a service it built and runs itself. Fix the biggest mismatch, rerun the replay, and log the new match rate next to the old one.

Practise it step by step: Build the Verification Habit

The bottom line

Count review hours next to authorship share.

Anthropic's 80% figure measures how much text Claude produced1, and the company has not published revert or defect rates that would show how much of it held up. Its Rust rewrite shows the real price of trust: months of shadow testing after the tests already looked green. Teams that build review gates and shadow tests now keep those assets whatever happens to tooling. We would start the ledger this weekend and read it every Friday.

LISTEN · AUDIO BRIEFINGThe conversation · ~10 min
WATCH · VISUAL NARRATIVEAnimated breakdown · ~7 min
PLAY · YOUTUBE

Sources

Numbers in the text point here. Verified means we confirmed it against the source; Reported means the source states it and we could not confirm it independently.

  1. 1anthropic.com · As of May 2026, Anthropic said Claude authored more than 80% of the lines of code merged to production.2 verified, 6 reported
  2. 2leaddev.com · In a LeadDev Research survey of 377 engineers and engineering leaders, 45% named code review as the biggest bottleneck...Reported
  3. 3linearb.io · LinearB reported that AI-assisted pull requests were merged within 30 days only 32.7% of the time.Reported
  4. 4businesswire.com · LeadDev Research surveyed 377 engineers and engineering leaders between 29 September and 17 October 2026.Reported
  5. 5blog.jetbrains.com · JetBrains reportedly found in its 2026 developer ecosystem report that 58% of developers spend more time reviewing...Reported
  6. 6sdtimes.com · JetBrains' 2026 developer ecosystem report found that 42% of developers spend more time correcting or rewriting...Reported
  7. 7resources.anthropic.com · Anthropic employees use Claude in about 59% of their work, it reported, yet more than half of surveyed engineers say...Reported
  8. 8thenextweb.com · The Next Web reported the details of Anthropic's Messages API rewrite from Python to Rust on November 25, 2026.Verified

How this piece was checked

Before publishing we pulled 32 claims out of the draft and checked each one against live sources: 3 verified, 19 reported by a named source and 8 our own calculations. 2 claims were cut from the copy.

See all 32 claims
  1. 01It arrives alongside Anthropic's announcement of Claude Ship, a new beta release that points from coding help toward reviewing pull requests, fixing issues, and approving code.claude.comReported
  2. 02Removed during the check; its text is not republished.anthropic.comCut
  3. 03Removed during the check; its text is not republished.aitoolsoasis.comCut
  4. 04Claude wrote a first version of the core request path for Anthropic's Messages API in Rust in about a week, the company said, and checking it took months.anthropic.comReported
  5. 05According to Anthropic, checking the Claude-written first version of Anthropic's new Rust API took months.letsdatascience.comReported
  6. 06LinearB used a 30-day window for its AI-assisted pull request acceptance numbers.linearb.ioReported
  7. 07Claude Code entered research preview in February 2025.anthropic.comVerified
  8. 08As of May 2026, Anthropic said Claude authored more than 80% of the lines of code merged to production.anthropic.comReported
  9. 09In February 2025, the share of Anthropic's merged code written by Claude was in the low single digits.anthropic.comReported
  10. 10Fifteen months later, Anthropic reported that Claude had authored more than four of every five lines merged to production.anthropic.comReported
  11. 11Its article on securing its development lifecycle says its software engineers on average ship 8x as much code per quarter as they did from 2021 to 2025.anthropic.comReported
  12. 12Anthropic's new Rust Messages API uses about 70% less CPU per request than the Python version.anthropic.comReported
  13. 13LinearB reported that AI-assisted pull requests were merged within 30 days only 32.7% of the time.linearb.ioReported
  14. 14LinearB reported that unassisted pull requests were merged within 30 days 84.5% of the time.linearb.ioReported
  15. 15LeadDev found 50% of respondents reported at least 25% more pull requests per developer after adopting AI tools, and 67% said pull requests got bigger.businesswire.comReported
  16. 16The Next Web reported the details of Anthropic's Messages API rewrite from Python to Rust on November 25, 2026.thenextweb.comVerified
  17. 17LeadDev Research surveyed 377 engineers and engineering leaders between 29 September and 17 October 2026.businesswire.comReported
  18. 18In a LeadDev Research survey of 377 engineers and engineering leaders, 45% named code review as the biggest bottleneck in software delivery.leaddev.comReported
  19. 19In a LeadDev Research survey of 377 engineers and engineering leaders, 19% named unclear requirements as the biggest bottleneck in software delivery.leaddev.comReported
  20. 20JetBrains reportedly found in its 2026 developer ecosystem report that 58% of developers spend more time reviewing AI-generated code.blog.jetbrains.comReported
  21. 21JetBrains' 2026 developer ecosystem report found that 42% of developers spend more time correcting or rewriting AI-generated code.sdtimes.comReported
  22. 22Anthropic employees use Claude in about 59% of their work, it reported, yet more than half of surveyed engineers say they can fully delegate only zero to 20% of tasks.resources.anthropic.comReported
  23. 23Anthropic employees use Claude in about 59% of their work, it reported, yet more than half of surveyed engineers say they can fully delegate only zero to 20% of tasks.resources.anthropic.comReported
  24. 24Anthropic says traffic on its Messages API grew about 1,800-fold from early 2024 to autumn 2026.anthropic.comVerified
  25. 25If writing takes half of a code change's life and checking takes the other half, making writing free makes the change ship at most twice as fast.Koda calculationOur math
  26. 26If checking is 80% of the development cycle, the maximum speedup from free code generation is 1.25x, because 1 divided by 0.8 is 1.25.Koda calculationOur math
  27. 27If review time scales with lines of code, 8x the code means 8x the review hours.Koda calculationOur math
  28. 28Hypothetically, a reviewer spends 5 hours a week on review at a loaded cost of $100 an hour.Koda calculationOur math
  29. 29At 8x code volume, a reviewer's 5 hours a week at $100 an hour becomes 40 hours and $4,000 a week.Koda calculationOur math
  30. 30Anthropic's share of Claude-written code rose from low single digits in February 2025 to more than 80% by May 2026, roughly five percentage points a month.Koda calculationOur math
  31. 31If outside teams' AI authorship climbs at 2.5 points a month from 22%, covering the 28 points to 50% takes about 11 months.Koda calculationOur math
  32. 32Claude Code and OpenAI's Codex's $24 billion is about 70% of the $34 billion 2026 coding market.Koda calculationOur math

How we check · Audit KODA-20261126-3889FC017F98

Browse the Deep Dive archive

Get the morning Signal

243 editions so far, one a day. Unsubscribe anytime.