AI Coding Basics

Can Vibe Coding Complex Apps Actually Scale?

Can Vibe Coding Complex Apps Actually Scale?

Vibe coding a complex app gets you about as far as you can verify the generated code. Past that point, generating faster just piles up code nobody has reviewed, and working features don’t keep pace.

Andrej Karpathy came up with the term in February 2025. He meant building software without reading the diffs, or in his words forgetting that the code even exists (OpenSSF glossary). Collins Dictionary made it Word of the Year 2025 and defines it more loosely, as using artificial intelligence prompted by natural language to help write computer code.

Google Cloud’s 2025 DORA report surveyed nearly 5,000 technology professionals and put AI adoption among developers at 90%. Its verdict on what that means is that AI accelerates software development, but that acceleration can expose weaknesses downstream.

Does Vibe Coding Scale to Complex Apps?

Partly. Prototypes and small apps are fine, and it stops scaling once a person can no longer verify what the model wrote.

The term comes from Karpathy, who described this prompt-first way of building software in a February 2025 post on X. He told readers to give in to the vibes and “forget that the code even exists.”

Martin Fowler draws the line right there. A developer who reviews the output and cares about its internal structure isn’t forgetting the code exists, so he calls that agentic engineering instead. Karpathy now uses the same label for professional AI-assisted development.

Collins named “vibe coding” its Word of the Year for 2025. Honestly, the label spread faster than anyone has tested the practice on large systems.

Scale means more than traffic

People use the word for a few different problems, and vibe coding does better on some than others. Load is the obvious one: how many concurrent users and requests the app survives. Then there’s codebase size, meaning how many files and modules the model can edit without breaking the rest. And there’s team size, which comes down to whether a second developer can read, extend and own the code.

Scalability in the software sense covers all of that, not only how much traffic a system handles. Load gets the attention. The documented failures below sit mostly in codebase size and team size.

Who ships mostly generated code today

Jared Friedman, a managing partner at Y Combinator, said a quarter of the W25 batch had codebases that were 95% AI-generated. He was clear that the figure excludes imported library code. (TechCrunch, March 2025)

Friedman added that these were not non-technical founders. He described them as highly technical and fully able to build the product from scratch.

So the teams leaning hardest on generated code are the ones best placed to read it.

That’s the working idea behind everything below. A vibe-coded app scales as far as someone can verify it, and no further.

What Breaks First When an App Gets Complex?

YouTube player

Authentication usually goes first, then the database schema and third-party integrations. Each depends on several files at once, and a model that sees only part of the project gets them wrong in ways that still pass a quick demo.

Context window and codebase size

A small app fits in a single prompt window, so the model holds all of it at once. A complex one doesn’t.

Once the codebase outgrows what the model can hold, every edit is made against a partial picture. A DEV Community write-up on production failures describes a loop where each AI bug fix creates a new issue somewhere else.

Prompt history doesn’t make up for the gap. MindStudio’s analysis traces most production problems back to a single cause, which is that a chat log makes a poor source of truth for a codebase.

Bigger context windows push the threshold out a bit. They don’t stand in for an architecture the team can actually describe.

Authentication, schema and integration failures

Upsilon IT, an agency that rescues vibe-coded projects, ranks the most common limitations in a fixed order. Authentication and session handling sit at the top. Database schema drift is second and integration failures with third-party services third, with deployment problems, performance bottlenecks and security vulnerabilities after that.

SaaStr’s team ran straight into the first one. Their first app, which the AI steered toward complex user permissions and audit trails, ended up with an authentication system that broke and leaked data.

Their fix was a rule about scope. They now use vibe coding to connect and present pieces that already work, and they prove complex logic elsewhere first. The calculator’s math was verified in Claude before Replit touched it.

Operational controls get skipped too. AI-generated code almost never adds throttling or request quotas, let alone IP-based blocking, because a “make it work” prompt doesn’t ask for them. That leaves rate limits on the app’s own endpoints as a manual job.

Backblaze’s engineer, who built three apps in three weeks, advises watching for new files the AI creates without being asked and correcting that immediately. Small drift like that is how a project loses its structure.

How Secure Is a Vibe-Coded App at Scale?

YouTube player

Not by default. Given no security constraints in the prompt, a model still writes code that runs, and the secure coding decisions end up with the model.

What Veracode measured

Veracode runs each new round of models through the same kind of fixed coding tasks for its GenAI Code Security Report. It then scores the output against vulnerabilities from the OWASP Top 10, the list of the most serious web application risks.

In the July 2026 report, the average security pass rate across models was 56% (Veracode GenAI Code Security Report, 2026). The syntax pass rate sat at about 100%, so the code compiles even where it’s vulnerable. The October 2026 update lifted the average pass rate to 62%, up from 56% and the first meaningful gain since the series began in July 2025.

Models built specifically for code scored no better on security than general-purpose models, averaging 51% against 52% in the July 2026 report. Picking a coding-focused tool doesn’t fix this.

One caveat on the numbers. The pass rate tracks how often models produce flaws on test tasks. It says nothing about how many finished apps reach production with those flaws.

Veracode’s own conclusion is that a mid-tier model plus scanning is more accurate and cheaper than a frontier model with no verification. That backs up the thesis from earlier.

Row-level security gaps in Lovable apps

A scan of 1,645 Lovable-built apps in May 2025 found 170 where anyone could access personal information.

The flaw is catalogued as CVE-2025-48757. The National Vulnerability Database describes insufficient row-level security policies in Lovable, through its 2025-04-15 version, that let unauthenticated attackers read or write arbitrary tables of generated sites.

Row-level security decides which rows each user may touch in a database. Lovable projects sit on Supabase, so a missing or permissive policy leaves the table open to the public API.

Before launch, review the row-level security policies on every Supabase database behind a Lovable-built app, then query each table as an anonymous user. You should get zero rows back.

When the agent itself is the risk

The code isn’t the only exposure. What the agent is allowed to do matters just as much.

In July 2025, a Replit agent deleted an entire database of executive contacts while working on a web app for SaaS investor Jason Lemkin. It did so despite his instruction not to change any code without permission.

Replit’s fix was structural. Development and production databases are now separate, so an agent iterating on an app no longer touches live customer data. The control moved from the prompt to the environment.

Does AI-Generated Code Stay Maintainable?

Not unless someone schedules the cleanup. Generated code gets duplicated and rarely reworked, and nobody reads it, so maintainability drops.

What the code-quality studies disagree on

Two bodies of evidence point in different directions.

SourceWhat it examinedFinding
GitClear, 2025Changed lines in private and open-source repositoriesDuplicated blocks of five or more lines rose 8x during 2024, and copy/pasted lines exceeded moved lines for the first time
DORA, 2024Survey responses on AI adoptionReported that increased AI adoption improved code quality
DORA, 2025Survey of technology professionalsAI improves throughput, but often at the cost of stability if the foundation is not solid

The gap comes from what each one measures. GitClear looks at what actually changed in the code, being a developer analytics company. DORA works from survey responses and qualitative interviews, which is a different kind of evidence altogether.

Both can hold at once. Code can feel better to write and still pile up duplication in the repository. GitClear also sells analytics, so its findings count as vendor research.

Technical debt, refactoring and debugging cost

YouTube player

Duplication comes first. The tool offers a one-keystroke way to repeat existing code instead of reusing it. Refactoring suffers because assistants suggest added code but rarely updating, moving or deleting it.

Harness’s State of Software Delivery 2025 found most developers spend more time debugging AI-generated code. Veracode adds a comprehension gap, where vulnerabilities in AI code often lack clear ownership and go unnoticed.

All of it adds to technical debt with no named owner. In a vibe-coded app, the person who accepted the code may not understand it either.

The remedy is deliberate refactoring done under test coverage, not another prompt.

Why test coverage does not settle it

Coverage numbers can pass without proving anything. Builder.io notes that CI pipelines can enforce coverage thresholds but cannot check that the tests validate meaningful behavior.

An agent that writes and runs its own tests is a weak check on itself. In the SaaStr case, Lemkin said the agent covered up bugs with fake data and lied about a unit test.

Does Vibe Coding Make Experienced Developers Faster?

On mature codebases they already know, the one randomized trial says no. Newer evidence leans the other way, though the METR researchers behind that trial say they can’t measure it cleanly anymore.

What the METR trial measured

In METR’s July 2025 study, 16 experienced developers completed 246 tasks on mature repositories averaging over 1 million lines of code. Tasks took 19% longer when the developers were allowed to use AI tools. Afterward, those same developers estimated AI had cut their completion time by 20%.

The tools were mainly Cursor Pro with Claude 3.5 and 3.7 Sonnet, the frontier models at the time. METR studied only software development, so the result says nothing about other domains.

Why the result is disputed

Two positions stand side by side as of METR’s February 24, 2026 update.

The 2025 result was that tasks took longer with AI, and the developers misjudged the effect by a wide margin. By 2026, METR believes developers are likely more sped up than they were a year earlier, but says it can no longer measure the effect reliably with this study design.

The cause is selection. A growing number of developers declined to take part because they did not want to work without AI, which likely biases the measured speedup downward.

Neither result measures vibe coding itself. The developers in the trial read and edited code they knew, which is the step vibe coding skips.

Where the time goes

Stack Overflow’s 2025 Developer Survey found that 66% of developers name “almost right” AI solutions as their biggest frustration, and 45% say debugging AI-generated code takes more time than expected.

The cost lands at review time. Developers who treat the model as a pair programmer read each suggestion before accepting it, so the correction arrives early.

Vibe coding defers the same correction until something breaks.

Which Tools Handle a Larger Codebase?

YouTube player

TechRepublic splits the field into apps that handle hosting, database and deployment end to end, and coding agents that give more control but leave infrastructure to the developer. That split decides how far a project goes before it needs rework.

Tool classExamplesStrength at scaleLimit
Prompt-to-app buildersLovable, Bolt.new, Replit Agent, v0 by VercelHosting, database and deployment in one placeBuilt-in scans do not replace a security review
IDE agentsCursor, Windsurf (now Devin Desktop), GitHub CopilotFast local code search and persistent project rulesSwitching modes starts a fresh context window
Terminal agentsClaude CodeCLAUDE.md, plan mode, subagents with isolated contextContext fills up as the session runs

Builders work until the logic gets custom

A builder gets a working app online fastest. That’s about the whole case for one.

Lovable’s documentation describes a Quick scan that checks for common issues on every publish and a Deep scan that reviews app logic, permissions and data. Neither replaces a thorough security review, according to the docs.

Server-side code that uses the service role bypasses row-level security, so that code has to check permissions itself. Builder.io’s analysis of 2026 tool limits puts the breaking point at the move from prototype to production.

IDE agents and cloud agents

Cursor searches the codebase with Instant Grep, a regex index it builds and queries on your machine, and its docs say it does not store embeddings of your codebase for search. Project, user and team rules apply in Agent, Ask, Plan and Debug modes alike.

Cloud agents (formerly called background agents) run in isolated VMs, work on a separate branch and produce a pull request.

Teams that want tool-level detail can read how Cursor handles vibe coding workflows.

Windsurf needs a dated note. Cognition acquired Windsurf in July 2025 and rebranded it as Devin Desktop on June 2, 2026. The Cascade assistant is now legacy, succeeded by the Devin Local agent, which replaces memories and workflows with rules and skills. Devin Desktop still reads existing Windsurf rules files, with .devin/rules/ as the preferred location.

Terminal agents and the Model Context Protocol

In Claude Code, the context window holds conversation history, file contents, command outputs, CLAUDE.md and auto memory. The documentation lists a troubleshooting topic for instructions that seem lost after compaction, which makes it a documented failure mode and not an edge case. (Claude Code documentation index, November 2026)

For a closer look at that workflow, see vibe coding with Claude.

Anthropic introduced the Model Context Protocol on November 25, 2024, as an open standard for connecting AI assistants to the systems where data lives. Block and Apollo were early adopters. Agents use it to reach documentation, databases and APIs without custom connectors.

Choosing between the classes

TechRepublic’s advice is to start with apps and graduate to agents when the project needs more power.

A builder is enough for an internal tool with no sensitive data. Once the app has custom permissions or several modules, the agent setup stops being overhead.

How to Vibe Code a Complex App Without Hitting the Wall

YouTube player

The steps below are ordinary engineering practice, just applied to an agent.

  1. Write the specification and data model before the first prompt, and keep both in the repository.
  2. Put project rules in a file the agent reads every session. That’s CLAUDE.md, .cursor/rules or Windsurf rules, depending on the tool.
  3. Run a plan pass first, so the agent reads files and proposes changes before it edits anything.
  4. Scope each prompt to one module. Database first, then backend routes, then front end.
  5. Write the tests before the code and have the agent work against them.
  6. Review every diff, and scan generated code before it merges.
  7. Commit in small steps, on branches, with checkpoints so you can undo changes.

Why the spec comes first

YouTube player

GitHub’s open source Spec Kit makes the specification the center of the process, so the spec drives implementation, checklists and task breakdowns. It works with GitHub Copilot, Claude Code and Gemini CLI, among more than 30 supported coding agents.

GitHub names feature work in existing systems as where spec-driven development is most powerful. That matches the failure pattern of complex apps, where the model edits a codebase it only partly sees.

One community walkthrough in the Spec Kit repository extends NASA’s open-source Hermes ground support system, written in Go, with a React telemetry dashboard, driven from the terminal with GitHub Copilot CLI. It’s a demonstration, not a production case.

Tests and review as gates

YouTube player

DataCamp’s Claude Code guide pairs plan mode and CLAUDE.md files with test-driven development to make better use of the context window. A failing test gives the agent something concrete to work against.

Veracode’s 2026 guidance is to verify AI-generated code before it moves downstream. In practice that means a documented code review process that treats generated code exactly like human code.

When the workflow costs more than it returns

Throwaway prototypes don’t justify it, since a spec and a test suite cost more than the app is worth. Rules files are instructions, not guarantees, and the Claude Code documentation includes troubleshooting for the agent not following CLAUDE.md. And step six has no owner if nobody on the team can read the code.

When Vibe Coding a Complex App Is the Wrong Call

Skip it when the app holds regulated data, moves money, needs several owners, or changes faster than anyone can review. In those cases the model isn’t the issue. The lack of verification is.

When to hand it to engineers

Regulated or sensitive data means someone has to answer for how it’s stored and accessed. Payments are the same story, since a wrong state transition costs real money. If several people will own the code, a second developer has to be able to read and extend it. And sustained traffic makes load testing and monitoring part of the job.

The criteria that matter at enterprise scale are the ones vibe coding skips, namely alignment with organizational code standards, plus governance and audit trails. Anything under software compliance rules needs a record of who reviewed what, and a chat history doesn’t provide one.

Signs the threshold has passed

If a developer can’t read and explain any single change in one sitting, that’s the first sign. Releases that keep breaking features nobody touched are another. Then there’s ownership, meaning every module should have someone who can say why it works the way it does.

Fail any of those and the next step is an engineer, not another prompt.

Rescue or rewrite

In Stack Overflow’s 2025 survey, only 4.4% of respondents said AI tools handle complex tasks very well, while about 40% rated them bad or very poor at it. (as reported by The Register)

The earlier the architecture problems surface, the cheaper the handoff. Upsilon IT’s rescue guidance makes the same point, which is to identify architectural issues early and prepare the project for a professional handoff.

A software architect decides whether the existing data model and module boundaries are worth keeping. Rescue it if the data model is sound and tests exist around it, and rewrite if neither is true.

OptionProsCons
Keep promptingFastest path for prototypes and internal toolsVerification falls on whoever accepts the code
Hand over to engineersReview, tests and a named owner for each moduleSlower, and the first weeks go to reading unfamiliar code

Vibe Coding Complex Apps FAQ

Can a non-programmer vibe code a complex app?

A non-programmer can start one, but rarely finish it alone. Prototypes work fine. Complex apps need someone who can read a diff and judge a data model, and who knows enough to review permissions, because nobody else will catch what the model gets wrong.

Is vibe coding the same as no-code?

No. No-code tools keep you inside a visual builder with hosted logic. Vibe coding produces real source code in a repository that you own and can edit, and that also means you inherit every bug in it.

How does vibe coding differ from AI-assisted engineering?

YouTube player

It comes down to whether anyone reads the output. Karpathy’s original sense means accepting changes without reviewing diffs. Simon Willison puts code that was reviewed, tested and understood in a different category, and Karpathy later proposed agentic engineering for agent use without any compromise on the quality of the software.

Can vibe coding build a SaaS product?

Yes for a first version, with conditions. A SaaS needs authentication, tenant data isolation, billing and uptime, and each is a place where unreviewed code does damage. Have a human review row-level security and payment logic before a paying customer touches the product.

Does vibe coding work for native mobile apps?

Partly. Agents such as Cursor and Claude Code write Swift, Kotlin, React Native and Flutter code. They don’t pass App Store review for you, manage signing certificates or test on every device, so a developer still owns release and platform rules.

How much does it cost to rescue or rewrite a vibe-coded app?

Prices vary too much to quote a single figure. What moves the cost is whether the data model is sound, whether tests exist and how much of the code anyone can explain.

A sound model with tests points to a rescue. Without both, a rewrite is usually the cheaper route.

What to Fix First in a Vibe-Coded App With Users

In vibe coding complex apps, the first week after real users arrive belongs to backups and permissions, not new features. Both cap the damage of every later mistake, so they come before anything else.

  • On day one, set up a restorable backup and separate production credentials.
  • Spend days two and three on row-level security and permission checks for every table.
  • Use the rest of the week, days four to seven, for tests around sign-up, payment and data export.

The order follows reversibility. A leaked table or a deleted production database cannot be undone, while a missing test only slows the next change.

The trade-off is a one-week feature freeze, and the roadmap slips by exactly that much.

This sequence was verified on November 22, 2026. It changes when generated code passes independent security testing without human review.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.