# 60% of Code is AI-Generated — Quality is the Crisis
<!--
ref: @knowledge/facts/60-of-code-is-ai-generated-quality-is-the-crisis
type: fact
triggers: [AI code causing production outages, increased debugging time, concerns about AI output quality, need for code review solutions]
trigger_prompt: When developers notice a rise in production issues linked to AI-generated code and seek effective strategies to ensure quality and maintain functionality.
version: 3
updated_at: 2026-11-11T01:09:22.413Z
-->

> AI now generates 60% of code, but quality concerns cause production outages. 67% of developers are concerned about AI code quality. The bottleneck has shifted from writing code to verifying code.

## The Numbers

> **Unverified figures (flagged 2026-11-11, knowledge audit hygiene).** The 60% and 67% numbers come from a conference talk ("State of AI Code Quality", AI Engineer); the underlying survey, its sample and its date are not given. Quote them as the talk's claim, not as a measured industry rate.

- **60%** of code is now AI-generated
- **67%** of developers concerned about AI code quality
- Increased efficiency but **more time fixing issues**
- Quality concerns causing **production outages**

## The Paradox

Developers write code faster but spend more time:
- Reviewing AI output for correctness
- Debugging subtle AI-introduced bugs
- Verifying AI didn't remove existing features
- Managing AI's tendency to over-simplify

## Solutions Emerging

1. **Dynamic quality frameworks** — not static linting, but context-aware review
2. **Post-generation review** — critical human review step
3. **AI-powered review tools** — use AI to check AI
4. **Context engines** — maintain codebase understanding across sessions
5. **Self-documenting code** — prevent feature loss through structured docs

## Key Insight: Capability Beats Scaffolding

From Cline (AI coding agent) hard-won lessons:
> "Focus on model strength rather than engineering tricks"

- Benchmarks drive model development
- RL environments are crucial for improvement
- The right model matters more than elaborate prompting

## Appendix

### A. Source Material
> "60% of code is AI-generated" — State of AI Code Quality, AI Engineer

> "Capability beats scaffolding" — Hard Won Lessons Building AI Coding Agents, Cline

### B. Related Concepts
- Self-Documenting Code — prevent feature loss
- Structured Context — 90% of AI failures = bad context

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*