Skip to content

Is AI-Generated Code Production-Ready? What the 2026 Studies Actually Say

“Couldn’t I just build this with AI?” Yes. Probably. And that’s exactly why it’s no longer the interesting question. The better question: can you actually keep building on it afterwards? Here is the complete body of evidence — no hype, no panic.

By Janni Hares

TL;DR — the 7 numbers

  • Our own measurement (decivo Vibe-Code Audit): 12 MVP features from a naive prompt meet only 19.6% of production-readiness controls in chat coding, 47.1% with the newest agent (Codex) — 0 of 12 fully ready; authorization, validation and tests stay at zero in both.
  • 45% of all AI coding tasks introduce a known security flaw — a figure that has stagnated for two years despite better models (Veracode, 80 tasks, 150+ LLMs).
  • Over 95% syntax correctness vs. ~55% security pass rate: visible progress and technical progress are measurably drifting apart.
  • Duplicated code blocks are up 8×; the share of refactoring fell from ~25% to under 10% (GitClear, 211M lines of code).
  • Experienced developers were 19% slower with AI tools — while believing they had been 20% faster (METR, randomized controlled trial).
  • 66% of developers name “almost right, but not quite” as their top problem; only 29% still trust AI output (Stack Overflow, 49,000+ respondents).
  • 170 of 1,645 scanned Lovable apps exposed emails, payment data or API keys — missing Row Level Security (CVE-2025-48757).

“Couldn’t I just build this with AI?” Yes.

Open MacBook with three AI app builders in the browser: Lovable, Bolt and Base44, each showing an empty prompt field to start an app
Lovable, Bolt, Base44: the entry point is the same everywhere — an empty prompt field. The difference happens afterwards.

The 2026 evidence at a glance

Six independent studies plus our own measurement, one consistent picture: AI-generated code works — and still needs systematic rework before it can carry production.

StudyKey findingData basis
Veracode GenAI Code Security (2025 + 2026 update)45% of tasks introduce a known vulnerability; security pass rate stagnates at ~55%80 coding tasks, 150+ LLMs
GitClear AI Code Quality 20258× more duplicated code blocks; refactoring share fell from ~25% to under 10%211M changed lines of code (2020–2024)
METR experiment (July 2025)Experienced developers 19% slower with AI — while feeling +20% faster16 maintainers, 246 real tasks, randomized
Stack Overflow Developer Survey 202584% use AI, but only 29% trust it; 66% name “almost right” as their top frustration49,000+ developers worldwide
Fastly Developer Survey 2025Nearly 30% of senior devs: rework eats most of the time savedDeveloper survey, US
Lovable RLS scan (CVE-2025-48757)170 of 1,645 scanned apps exposed personal dataScan of the public Lovable showcase, May 2025
decivo Vibe-Code Audit (2026, our own study ↓)Chat coding 19.6%, agent (Codex) 47.1% of controls met; 0 of 12 features ready12 one-shot features × 2 models, semgrep + open checklist

Rows 1–6 come from the respective original publications (source list at the end). Row 7 is our own reproducible measurement — details below.

Visible progress is not technical progress

What goes wrong immediately: security

What goes wrong slowly: maintainability

The productivity paradox

Our own study: the decivo Vibe-Code Audit

Third-party studies are good — a reproducible measurement of your own is better. So we tested this article’s thesis ourselves: we had 12 typical MVP features (upload, contact form, comments, password reset, admin list, search, API-key storage, Stripe webhook, profile edit, file download, orders API, newsletter) generated with a single naive one-shot prompt each — exactly how a founder types it into an AI tool. No prompt said “secure”, “validation” or “test”.

We ran it in two modes: once like classic chat coding (where most people start — naive prompt, answer in the chat) and once with an agentic coding tool (OpenAI Codex, model gpt-5.6-sol) that writes the AI code straight to files. So we compare the mode, not model against model. Every output was checked against the Build-On Test controls, with semgrep as an independent detector plus an open checklist. The result:

47.1%production readiness is all even the newest agentic model (Codex) reaches — chat coding only 19.6%. And still: 0 of 12 features fully ready, in both modes.

Chat coding vs. agentic coding agent

ModeProduction readinessControlsFully readysemgrep findings
Chat coding19.6%10 / 510 / 123 (XSS, mass-assign, IDOR)
Agent (Codex gpt-5.6-sol)47.1%24 / 510 / 120

Agent closes

The agent fully closes the generic hygiene layer: Row Level Security, injection safety, error handling and secret storage jump from patchy to 100% each. The three syntactic semgrep findings disappear. Agentic coding is a real step up from chat coding.

Zero in both modes

But exactly the controls that would need to know your business rules stay at zero in both modes: authorization 0/7, input validation 0/7, tests 0/12, webhook signature 0/1. No model adds them, because the naive prompt never states who may do what or what counts as valid.

This is the real proof of a specification deficit, not a capability deficit: where the requirement is generic and implicit (use RLS, escape HTML), the agent fills it. Where it would have to know your product (may this user see this order?), even the frontier agent leaves it blank. Both modes produce running code — and not a single production-ready feature. That is exactly what “visible progress ≠ technical progress” means.

A transparency note, because citable research states its limits: two models, one run each, N = 12, one-shot — a reproducible pilot benchmark, not population statistics. Prompts, raw code, semgrep rules, the scoring script and both result datasets are fully disclosed (CC BY 4.0); rebuilt with any further model, the same methodology yields a directly comparable number.

The Build-On Test: 5 questions for every AI prototype

Whether an AI-built prototype is an MVP foundation or a throwaway prototype comes down to five questions. If you can answer all five with a yes — verifiable, not felt — you can keep building.

  1. 1.Does the architecture hold up?

    Is there a documented data model and a clear data flow — or is the structure whatever the tool happened to produce? Without an architecture anchor, every new feature costs more than the last.

  2. 2.Is the business logic clean?

    Does the core logic live in one place, tested and traceable — or spread across components, copied and implicit? The GitClear finding (8× more duplication) is born exactly here.

  3. 3.Are data and roles properly separated?

    Who may see, change, delete what — and is that enforced in the database (Row Level Security) rather than just hidden in the UI? That was the gap behind CVE-2025-48757.

  4. 4.Can the decisions be explained later?

    Can you justify to an investor, an auditor or the next developer why the system is built this way? “The AI did it that way” is not an answer that survives due diligence.

  5. 5.Can the code be handed over?

    Can another team open the code and keep working without wanting to start over? That is the hardest test — and the only one that decides the value of the work you’ve done so far.

Two or three no’s are not a death sentence — they just mean: the prototype is a specification, not a foundation. That is still valuable. But it is a different budget and a different plan.

Accelerator, not autopilot: how we use AI at decivo

“Couldn’t I just build this with AI?” Yes. The question that counts in 2026: does the result pass the Build-On Test? We’ll take an honest look →

AI-generated code: frequently asked questions

Is AI-generated code secure?
Can you build a real product with Lovable, Bolt or v0?
What is a throwaway prototype?
How do I know whether I can keep building on my AI prototype?
Does AI really make software development faster?
What does it cost to make an AI prototype production-ready?
Will AI replace development agencies and developers?

Does your prototype pass the Build-On Test?

Show us your AI prototype — we’ll take a look and tell you honestly whether you can keep building or what’s missing. Even if the answer is: “All good, carry on.”

Assess your prototype — free, 30 min.

Clearly structured. No sales pressure. An honest assessment.