AI Code Is 75% of Google's Output — Here's the Enforcement Architecture That Actually Works
The Trajectory Is Exponential, and It's Top-Down
Google's AI-generated code went from 25% (Oct 2024) → 50% (late 2025) → 75% (April 2026) — a tripling in 18 months. This isn't organic grassroots adoption: Google now has mandatory quarterly AI code generation targets per team. Snap is at 65%, Meta targets 75%, and Microsoft's CTO projects 95% by 2031 despite sitting at just 20-30% today. The gap between Google at 75% and Microsoft at 25% — despite Microsoft owning Copilot — tells you the bottleneck isn't the AI tool. It's the organizational infrastructure around it.
The Tolaria Proof: 100K LOC, Zero Human-Written Code, One Critical Finding
Tolaria shipped 100K+ lines of code, 2,000+ commits, 3,000+ tests, and 70+ Architecture Decision Records — with zero human-written code — and gained 6,000+ GitHub stars in under a week. But the most important engineering finding buried in this codebase is that AI agents reliably ignore instructions in CLAUDE.md. This isn't a bug; it's a fundamental characteristic of probabilistic systems. If you've been treating your .cursorrules or CLAUDE.md as quality enforcement, you effectively have no enforcement.
Treat agent instructions as advisory, not authoritative. The only reliable enforcement is the CI pipeline.
The Three-Gate Model
Tolaria's architecture uses defense in depth: rules live in the agent config (followed most of the time) AND are enforced again in CI (caught every time). Three specific gates:
- Test coverage thresholds — LLMs write code that compiles and runs but lacks tests
- CodeScene health scores — catches unnecessary complexity, tight coupling, cognitive load
- Library and docs currency — blocks hallucinated deprecated APIs and outdated dependencies
Bryan Cantrill's observation completes the picture: LLMs lack the 'laziness instinct' that drives human programmers to build abstractions. They'll generate the same utility function in every file. This makes duplication detection (jscpd, PMD CPD) critical CI infrastructure for AI-generated code.
The Harder Problem: Misaligned Code
'Bad code' — missing tests, high complexity, duplication — is now genuinely solvable with the right gates. But misaligned code — structurally clean, architecturally wrong for where your product is heading — is arguably harder to catch with AI in the loop because it passes every automated metric. This is why Tolaria's 70+ ADRs matter: they encode architectural intent that AI can't derive on its own. If you're scaling AI code without a robust ADR practice, you're accumulating strategic debt invisible until you need to pivot.
Claude Code's Quiet Takeover
Applied Intuition's CTO reports Claude Code has overtaken Cursor as the dominant AI coding tool among their 1,000 engineers — including for embedded C++/Rust and GPU shader code, domains where AI assistance was 'underwhelming' just 6 months ago. The bimodal productivity gap between engineers who invested in AI tools vs. those who didn't is now described as 'enormous.' If your team evaluated AI tools for systems-level work before mid-2025, that conclusion is stale.
What to do
Add redundant CI enforcement for all rules currently only in CLAUDE.md/.cursorrules — test coverage thresholds, complexity scoring, dependency currency checks
Add duplication detection (jscpd or PMD CPD) to your CI pipeline with strict thresholds for AI-generated code
Formalize Architecture Decision Records (ADRs) if you haven't already — start with your top 5 most consequential architectural constraints
Re-benchmark Claude Code vs. Cursor for C++/Rust/systems work if you last evaluated before mid-2025