Vibe Coding vs Software Engineering: Taking an AI-Built Prototype to Production

In short
Vibe coding means building software by describing it to an AI tool and accepting the code without reading it. Software engineering means someone has read, tested and taken responsibility for the code. A vibe-coded prototype is a very good brief: it shows what the product should do. Before real users arrive, check who can see whose data, where the secrets live, and whether you can change it safely.
Key takeaways
- The line between vibe coding and software engineering is not whether AI wrote the code. It is whether anyone has read it, tested it and can explain how it works.
- A vibe-coded prototype is a very good brief. It shows what the product should do more clearly than most documents, and it lets you test an idea before you fund a build.
- Prototypes break in production in the places a demo never reaches: access control, secrets, the data model, tests, and code that nobody on the team has read.
- Before real users arrive, check three things: who can see whose data, where the secrets live, and whether you can change the app safely and undo a bad release.
- Moving to production does not mean starting again. Keep the flows, the screens and the lessons; rebuild the foundations under them, starting with the data model.
Table of contents
Vibe coding vs software engineering has turned into an argument about whether AI is replacing developers. That argument misses the useful question for anyone who has just built something with an AI tool and wants real people to use it: what does the thing you have built need before you can depend on it?
The short answer is that a vibe-coded prototype is a very good brief and not yet a product. This guide covers what vibe coding is good for, where it breaks once real users and real data arrive, and how to take an AI-built prototype to production without throwing away what it taught you.
What vibe coding is, and what it is not
The term comes from a post by Andrej Karpathy in February 2025, describing a way of building where you "fully give in to the vibes" and "forget that the code even exists". You describe what you want, the tool writes it, you run it, and if something is wrong you describe the problem again. Karpathy called it "not too bad for throwaway weekend projects".
The defining feature is not that an AI wrote the code. It is that nobody reads it. Simon Willison put the distinction precisely: vibe coding is "building software with an LLM without reviewing the code it writes". If the code was then reviewed, tested and understood well enough to explain to someone else, he wrote, "that's not vibe coding, it's software development."
Vibe coding vs AI assisted development
That distinction matters because most professional teams now use AI tools every day, and that is not vibe coding. In AI assisted development, the tool drafts and the engineer decides: they read each change, run the tests, check how it touches the data, and own the result. The speed comes from the tool; the responsibility stays with a person.
In vibe coding, the responsibility goes with the code into a place nobody has looked. That is fine for a prototype, a personal tool or a weekend experiment, where the cost of a mistake is small. It stops being fine at the moment other people trust the software with their data, their money or their work.
So the real comparison is not human code versus AI code. It is reviewed code versus unreviewed code, and a product someone is accountable for versus a demo that works for the person who built it.
What a vibe-coded prototype is good for
Plenty, and it is worth saying clearly before the warnings.
It is a working brief. A written brief describes what a product should do; a clickable prototype shows it. Screens, flows, the order of steps, the fields a form really needs, the report someone actually wants at the end: a prototype settles these faster than a document and with fewer misunderstandings. When a founder or an operations lead arrives with something they built themselves, the conversation starts much further along than it would from a page of notes. If you are writing the document version, our guide to writing a software project brief covers what to put in it.
It is a fast answer. You can put a prototype in front of the people who would use it and find out whether the idea holds up before anyone funds a build. Sometimes the answer is that the idea needs to change, which is the cheapest thing a prototype can tell you. A prototype answers a different question from an MVP; our comparison of POC vs prototype vs MVP sets out which question each one answers.
It shows what is hard. The parts the AI tool struggled with, the screens you rebuilt five ways, the rule you could not get it to follow: these are usually the real complexity of the product, found early.
What a prototype does not tell you is whether the software underneath is safe to depend on. A demo only ever runs the happy path, as the person who built it, with their own test data. Production is everything else.
AI generated code security risks: where prototypes break in production
The problems below are not unique to AI-written code. Rushed human code has all of them. The difference is that in a vibe-coded app nobody has looked, so nobody knows which of them are present.
Who can see whose data
The most serious and most common gap is access control: making sure each user can only see and change what belongs to them. Broken Access Control is the first entry in the OWASP Top 10 for 2025, the standard list of the most critical web application security risks.
In a prototype, access control often lives in the screen. The page only shows your own records, so it looks right. But hidden in the screen is not the same as forbidden on the server. If the database or the API will hand any record to anyone who asks for it directly, the screen is just a polite suggestion.
This has already happened at scale. In 2025 a CVE record was published for apps generated with Lovable, describing insufficient row level security policies that allowed remote, unauthenticated attackers to read or write arbitrary database tables of the generated sites. The supplier disputes the record, on the grounds that each customer is responsible for protecting their own application's data. Both readings lead to the same practical point: if you built it, checking it is your job. Supabase, the database service many of these tools build on, puts the rule plainly in its documentation: a table in an exposed schema without row level security "is readable and writable by any role with a grant on it."
Where the secrets live
Prototypes collect keys: for the database, the payment provider, the email service, the AI model. In a vibe-coded app they often end up in the code, in the project history, or in the JavaScript sent to the browser, where anyone can read them with the developer tools every browser has. A key that has been in the browser or in the repository should be treated as public. It needs to be rotated, not just moved.
The data model
AI tools design the database for the screen in front of them. Fields get added as each feature is requested, the same information ends up stored in two places, and nothing enforces that an order belongs to a customer who exists. This works in a demo. In production it shows up as reports that do not add up, records that contradict each other, and changes that are risky because nobody is sure what depends on what. Of all the foundations, the data model is the most expensive one to fix late, because real data has to be moved into the corrected shape.
Tests and a way back
A vibe-coded app is usually changed by asking the tool for something new and checking the screen. Every change can quietly break something that worked yesterday, and there are no tests to notice. Often there is no proper version control either, so there is no clean way to see what changed or to undo a bad release. In production, the ability to change safely and to roll back matters more than the ability to change fast.
Code that nobody has read
The last gap is ownership. When something fails at the weekend, someone has to find the cause in code they did not write and have never read, under pressure, with users waiting. Large AI-generated codebases tend to repeat themselves, mix several approaches to the same problem, and carry code for features that were tried and abandoned. None of that is visible in the demo, and all of it slows down every fix.
Three things to check before real users arrive
If you only do three things before opening a vibe-coded app to real users, do these.
- Who can see whose data? Sign in as one test user and try to read or change another user's records directly, not through the screens: change the ID in the address bar, call the API, query the database with the key the browser holds. Every rule has to be enforced on the server or in the database itself.
- Where do the secrets live? Search the code, the project history and the files the browser downloads for keys and passwords. Move every secret to the server side, rotate anything that was exposed, and confirm the browser only ever holds keys that are designed to be public.
- Can you change it safely? Put the code in version control the business owns, add tests for the flows that matter most (signing up, paying, the core task), and make sure a bad release can be undone in minutes, not rebuilt from memory.
These three do not make a prototype production ready on their own. They make it safe enough to find out what else it needs.
Can I build an app in Lovable?
Yes, you can build a working app in Lovable or a similar tool, and for a prototype, an internal tool with a handful of trusted users, or a test of demand, that may be all you need. The question to ask is not which tool built it, but what happens when real users, real data or real money arrive.
Before that point, run the three checks above, find out who owns the accounts the tool created (the database, the hosting, the domain), and decide who will maintain the app when it needs to change. If the honest answer to the last question is "the tool, when I ask it", plan for the day the tool cannot fix what it built.
Taking an AI-built prototype to production
Moving to production does not mean starting again from a blank page. The prototype has already done the hardest part of discovery: it has shown what the product should do and what people actually use. The aim is to keep the lessons and rebuild the foundations.
What to keep
Keep the flows, the screens and the copy that tested well, the list of features people used and the ones they ignored, and every rule you discovered along the way. Write them down as the specification. This is the part of the prototype that took real time and real users to learn, and it carries straight into the build.
What to rebuild
Rebuild what the prototype could not test: the data model first, then access control enforced on the server, then the handling of secrets, errors, payments and email, and the release process with tests and a way back. Some of the prototype's code may survive this, once it has been read and covered by tests. Much of it usually does not, and that is fine: it did its job.
Harden it or rebuild it?
A small app with a sound data model, few users and simple rules can often be hardened in place: reviewed, tested and fixed piece by piece. An app whose data model is wrong, whose access rules live in the screens, or that nobody can explain, is usually faster and safer to rebuild beside the prototype, using it as the reference. A structured review answers the question; our code audit checklist for an inherited codebase covers what that review looks at, and taking over a software project covers the handover itself.
Vibe coding vs software engineering, side by side
| Vibe-coded prototype | Engineered product | |
|---|---|---|
| Who has read the code | Nobody | The team that owns it |
| Access control | Often in the screens | Enforced on the server and in the database |
| Secrets | Often in the code or the browser | On the server, rotated when exposed |
| Data model | Grows with each request | Designed for the data you will have |
| Changing it | Ask the tool, check the screen | Version control, tests, review, a way back |
| Best used for | Showing what the product should do | Running it for people who depend on it |
Where to start
If you have built something with an AI tool and real users are getting close, the most useful next step is a review of what you have: what to keep, what to fix, and what has to be rebuilt before launch. That is how most of our custom software development work begins, and a prototype makes it a faster conversation. Get your prototype reviewed before real users find the gaps for you.
Sources
- Simon Willison: Not all AI-assisted programming is vibe coding (but vibe coding rocks), 19 March 2025: vibe coding is building software with an LLM without reviewing the code it writes; reviewed, tested and explainable code is software development; quotes Karpathy's original post, including "fully give in to the vibes", "forget that the code even exists" and "not too bad for throwaway weekend projects".
- CVE Program: CVE-2025-48757: insufficient database row level security policy in Lovable through 2025-04-15 allowed remote unauthenticated attackers to read or write arbitrary database tables of generated sites; published 2025-05-30; disputed by the supplier because each customer is responsible for protecting their application's data.
- Supabase Docs: Row Level Security: a table in an exposed schema without row level security is readable and writable by any role with a grant on it; enable RLS on every table in an exposed schema; never use a secret key in the browser.
- OWASP Top 10:2025: A01:2025 is Broken Access Control, the first entry in the 2025 list of the most critical web application security risks.
Frequently asked questions
Vibe coding is building software by describing it to an AI tool and accepting the code without reading it. Software engineering means someone has read, tested and taken responsibility for the code, whoever or whatever wrote the first draft. Vibe coding is fast and well suited to prototypes. Engineering is what makes software safe for other people to depend on, with access control, tests, a sound data model and a way to undo a bad release.
No. In AI assisted development an engineer uses an AI tool to draft code, then reads each change, runs the tests and owns the result. In vibe coding nobody reviews the code; you judge it only by whether the screen seems to work. Most professional teams use AI tools daily, and that is not vibe coding as long as a person reviews, tests and can explain what was built.
The most common risk is broken access control: rules that live in the screens instead of being enforced on the server, so one user can read or change another user's data directly. Others are secrets left in the code or sent to the browser, and missing database protections such as row level security. These risks exist in rushed human code too; with unreviewed AI code nobody knows which are present.
Yes. Lovable and similar tools can build a working app, and for a prototype, an internal tool with a few trusted users or a test of demand that may be enough. Before real users, real data or payments arrive, check who can see whose data, where the secrets live and whether you can change it safely, confirm you own the accounts it created, and decide who will maintain it.
Sometimes, after review. A small app with a sound data model and simple rules can be hardened in place: reviewed, tested and fixed. If the data model is wrong, access rules live only in the screens or nobody can explain the code, rebuilding beside the prototype is usually faster and safer. Either way, keep the flows, screens and lessons it gave you as the specification for the build.
Have a Custom software development project like this in mind?
Tell us what you are trying to build. We will tell you plainly what Custom software development work like this would take.
Get a quoteContact Us
Lahore, Pakistan · London, U.K · Austin TX, U.S · Toronto, Canada