Vibe coding explained: what it is and how to rescue an AI-built app
Vibe coding means building software by describing what you want to an AI tool in plain language and accepting the code it produces without really reviewing it. Andrej Karpathy coined the term in February 2025. It is great for prototypes and for testing ideas fast, but apps built this way often reach production with security holes, no tests and code nobody can maintain. The good news: most of them can be rescued without starting over.
What is vibe coding?
In February 2025, OpenAI co-founder Andrej Karpathy described a new way of programming where you “fully give in to the vibes” and “forget that the code even exists.” Instead of writing code, you tell an AI tool what you want, try the result and, when something breaks, paste the error back in and let the AI fix it. He noted it was “not too bad for throwaway weekend projects.”
The name stuck. Today, AI app builders can generate a full app from a description, which has put vibe coding within reach of founders and business owners who have never written a line of code, and of teams inside companies who want an internal tool without waiting for IT.
It helps to separate vibe coding from how professional teams use AI. Engineers use these tools every day too, but they review the code, test it and make the architecture decisions. Karpathy himself has said his favorite name for that way of working is “agentic engineering.” The difference is not the tool; it is whether someone understands the code and takes responsibility for it.
What is vibe coding good for?
- Prototypes: something clickable quickly to show partners, investors or customers.
- Validating ideas: checking whether people would use a product before investing in building it properly.
- Small personal or internal tools: a calculator, a form or a dashboard for a few people, with no sensitive data.
- Learning: understanding how apps fit together so you can work better with a technical team.
Trouble starts when that prototype quietly becomes the system that takes payments, stores customer data or serves hundreds of users, without ever going through engineering.
Why do AI-built apps break in production?
AI produces code that works in the demo, not necessarily code that is safe. A 2025 Veracode study tested more than 100 AI models and found that in 45% of tasks the generated code introduced known security vulnerabilities. These are the problems we see most often:
Security
- Exposed keys and passwords: API, database or payment keys sitting in browser code or pushed to public repositories.
- Half-built authentication: pages are hidden in the interface, but the server answers anyone who knows the URL.
- No per-user authorization: one customer can view or edit another’s data by changing a number in the address bar.
- SQL injection and unvalidated input: the system trusts whatever users type, which lets attackers read or delete data.
- Open database rules: cloud databases configured so anyone can read or write.
Quality and maintainability
- No automated tests: every fix breaks something else.
- Spaghetti code: huge files, duplicated logic and confusing names that nobody, not even the AI, can change safely.
- Outdated or unnecessary dependencies: libraries with known flaws, or packages picked without judgment.
Operations
- No backups: one bad command or attack can wipe everything.
- Runaway costs: inefficient queries, unlimited AI model calls or oversized servers.
- Fragile deployment: the app lives on someone’s laptop or is published by hand, with no way to roll back.
- No monitoring: you find out about outages when a customer emails you.
Signs your app has outgrown its prototype
- Real customers sign up, pay or share personal data through it.
- More than one person needs to change the code.
- Each new feature takes longer and breaks something that used to work.
- Your cloud or AI bill grows faster than your user base.
- A partner, investor or enterprise client asks about security, backups or compliance.
Self-check: is your app at risk?
Answer honestly. If you say “no” or “I don’t know” to three or more, your app needs a review before it grows:
- Are API keys and passwords kept out of the code and the browser, in environment variables?
- Does every server request check who the user is and whether they may access that data?
- Is all user input validated on the server?
- Are there automatic database backups, and have you tested a restore?
- Do automated tests cover critical flows such as sign-up, payment or orders?
- Can you ship a new version and roll back if it fails?
- Does anyone on your team understand how the code is organized?
- Do you know what your infrastructure will cost if users grow tenfold?
- Do you get alerts when the app goes down or throws errors?
- Are the code and accounts (cloud, domain, app stores) owned by your company?
How to rescue an AI-built app
Rescue does not mean throwing everything away. What already works holds valuable knowledge about your business. An orderly rescue usually follows these steps:
- Audit: review code, infrastructure, dependencies and configuration, then rank risks by severity.
- Stabilize: fix the urgent things first: rotate exposed keys, protect routes, lock down the database and turn on backups.
- Refactor: reorganize the code piece by piece, without stopping operations, so it is understandable and maintainable.
- Test: add automated tests to critical flows so future changes don’t break what works.
- Deploy properly: move to suitable infrastructure with staging and production environments, monitoring, alerts and rollbacks.
Sometimes the audit shows that parts are better rebuilt. What matters is making that call with evidence, not gut feeling. If you are weighing the investment, our guide on what drives the cost of an app gives useful context.
Using AI without getting burned
- Use vibe coding to explore and validate, not to handle money or personal data without review.
- Get a security review before real customers use the app.
- Ask the AI to explain its code and write tests, not just features.
- Keep the code in a version-controlled repository from day one.
- Never paste real passwords or customer data into an AI chat.
How GDcode can help
GDcode Labs & Studios is an engineering studio in Mexico City that works remotely with clients in Mexico and worldwide. We rescue and maintain fragile AI-built projects. We are trained engineers who use AI as one more tool, not as a crutch. We review your app, explain the risks in plain language and propose a phased plan, in English or Spanish. Learn about our AI-built app rescue service or, if you would rather start on solid ground, our app development service.
Tell us about your app and we will take a look, whether it was built with an AI app builder or a coding assistant: get a free quote.
Frequently asked questions
Is vibe coding bad?
No. It is a very fast way to test ideas and build prototypes. The risk lies in treating that prototype as the finished system, with real customers and data, without anyone reviewing security, tests or infrastructure.
Can I build an app with AI if I can’t code?
You can build a working prototype. To run a business on it, you will eventually need someone who understands the code, security and infrastructure, because the AI is not accountable when something goes wrong.
How long does it take to rescue an AI-built app?
Every project is different; as a rough guide, the audit and urgent stabilization usually take a few weeks, depending on the size and condition of the code; refactoring and testing happen in phases while the app keeps running.
Should I rescue my app or rebuild it from scratch?
Rescue is usually the better choice, because you keep what works and the business knowledge already built into the app. A rebuild makes sense when the audit shows the foundation is unworkable or deeply insecure.
Do professional engineers use AI too?
Yes, more every year. The difference is that they review what it generates, make the architecture decisions, write tests and own the result. AI speeds up the work, but it does not replace engineering judgment.