Anthropic CEO Discusses Share of AI-Generated Code

Anthropic CEO Dario Amodei predicted in March 2025 that AI would be writing 90% of code within 3 to 6 months, a claim that resurfaced in June 2026 after newsletter Tech Trenches reviewed a leaked portion of the Claude Code codebase and found messy patterns, including a single 3,167-line function and a bug that wasted 250,000 API calls daily, alongside Anthropic engineer Boris Cherny's claim that 100% of his recent contributions were Claude-Code-written. Redwood Research's independent analysis argues the underlying metric was never well-defined and estimates Anthropic's company-wide merged-line fraction closer to 50%, depending heavily on counting rules. Writer John Gruber has offered a different reframe: rather than AI replacing human-written lines one-for-one, it may be generating far more total code that would not otherwise have existed, and GitHub reports commit volume up 14x year-over-year as of May 2026. The debate illustrates why headline AI-code percentages need a stated metric before they mean much.
Headline claims about "AI writes X% of our code" keep resurfacing because the underlying metric is almost never specified, and that ambiguity is doing a lot of work: lines merged, commits authored, characters typed, and "any code that was at all useful" can each produce wildly different percentages from the same codebase. That gap between a punchy number and what it actually measures is the throughline connecting Dario Amodei's original prediction, Anthropic engineers' recent claims, and the skeptical pushback from outside researchers.
What happened
Anthropic CEO Dario Amodei said in March 2025 that AI would be writing 90% of code within three to six months, in remarks Tech Trenches and Daring Fireball both later revisited. Anthropic engineer Boris Cherny posted on X in late December 2025 that in the last thirty days, 100% of his contributions to Claude Code were written by Claude Code, and Tech Trenches reports an Anthropic product leader separately describing some teams as near-100% AI-written. Tech Trenches' own contribution was a review of a leaked portion of the Claude Code codebase, which it says shows a single 3,167-line function, regex-based sentiment heuristics, and a documented bug that wasted 250,000 API calls per day, evidence it uses to question whether heavy AI authorship correlates with clean code.
Technical context
Redwood Research's analysis, published in October 2025, argues the definitional basis for these percentages is the real story: metrics like lines merged, commits authored, characters typed, or any code judged "at all useful" produce very different headline numbers from the same underlying activity. Redwood estimates Anthropic's company-wide merged-line fraction is likely closer to 50%, well below the 90% figure, while acknowledging individual teams or engineers can plausibly reach much higher fractions depending on how contributions are counted.
Industry context
Writing about the same underlying claim in March 2026, Daring Fireball's John Gruber offered a different reframe: the real shift may not be that AI replaced human-written lines one-for-one, but that AI code generation is producing services, apps, and libraries that would not have been written at all otherwise, meaning the human-written line count may be roughly flat even as AI-generated volume grows far faster. Gruber cited GitHub data in a May 2026 update showing commit volume up roughly 14x year-over-year. Neither framing resolves the underlying measurement problem Redwood Research raised, but both point to the same practical takeaway: aggregate percentages without a stated denominator understate how contested this question still is.
For practitioners
Anyone evaluating AI-code claims, whether a vendor's marketing figure or an internal engineering metric, should ask what specifically is being counted (lines merged versus commits versus any AI-touched code), whether the figure is company-wide or cherry-picked from a high-adoption team, and whether code volume and code quality are being conflated. Tech Trenches' leaked-codebase findings are a reminder that a high AI-authorship percentage says nothing on its own about maintainability, test coverage, or whether unusual patterns like an undetected daily API-call bug got caught before shipping.
What to watch
Whether Anthropic or other labs publish a reproducible, clearly-defined measurement methodology, rather than a single headline percentage, would settle much of this debate; until then, expect the 90%-vs-50%-vs-metric-undefined argument to keep recurring each time an executive repeats the claim. Also worth tracking: whether GitHub's aggregate commit-volume data continues to accelerate, and whether independent security or maintainability audits of AI-heavy codebases surface more issues like the ones Tech Trenches found.
Key Points
- 1Anthropic CEO Dario Amodei predicted in March 2025 that AI would write 90% of code within months, a claim Anthropic engineers have since echoed publicly.
- 2Redwood Research's independent analysis argues the underlying metric was never defined and estimates Anthropic's company-wide fraction closer to 50%.
- 3A leaked Claude Code codebase review found messy patterns like a 3,167-line function, showing high AI-authorship percentages say nothing about code quality.
Scoring Rationale
A well-sourced, contested-metric story with real practitioner relevance (how to interpret AI-code-authorship claims) now strengthened by a third independent source (Daring Fireball) with a concrete, dated GitHub commit-growth figure. Nudged up slightly from 6.8 given the added corroboration and the alternative framing it introduces.
Sources
Public references used for this report.
Practice interview problems based on real data
1,625 SQL & Python problems across 15 industry datasets — the exact type of data you work with.
Try 250 free problems


