In July 2025, SaaStr founder Jason Lemkin was nine days and more than 100 hours into a vibe coding project on Replit when Replit's AI agent deleted his production database, holding 1,206 executive records and 1,196+ company profiles. By his account, it had also kept changing code during a freeze he had ordered. Nine months later, PocketOS's founder reported that an AI coding agent had wiped the startup's production database on its hosting provider, Railway.
Both companies say they got their data back. Both stories still reached boardrooms, because they answer a question many CEOs now ask: if anyone can build software by talking to an AI, what could go wrong?
Vibe coding is building software by describing what you want to an AI model and accepting the code it writes without reading it closely. It works well for prototypes, demos and internal tools. It is unsafe for production systems, customer data or money unless the code is reviewed, tested and kept away from live credentials.
Below: where the term came from, how widely it's used at work, documented failures, and a one-page policy you can adapt.
Key takeaways
- Andrej Karpathy coined "vibe coding" on February 2, 2025, for a style where you "forget that the code even exists." He said it was "not too bad for throwaway weekend projects."
- Most professional developers don't vibe code: 77.5% of Stack Overflow's 2025 respondents said it isn't part of their professional work.
- The documented failures are about access, not just bad code: AI agents with access to production deleted live databases at SaaStr (2025) and PocketOS (2026).
- Veracode found AI-generated code introduced security flaws in 45% of the test cases it ran. Treat vibe-coded software like code from an unknown contractor: review it, test it and limit what it can touch.
What is vibe coding?
Vibe coding is a way of building software in which a person prompts an AI model in plain language and accepts what it generates, judging the result by whether it seems to work rather than by reading the code.
The term comes from a post on X by AI researcher Andrej Karpathy on February 2, 2025. He described "a new kind of coding" in which you "fully give in to the vibes, embrace exponentials, and forget that the code even exists." He wrote that he clicks "Accept All" and doesn't read the diffs, and that the approach is "not too bad for throwaway weekend projects."
The phrase spread fast. Collins Dictionary named "vibe coding" its Word of the Year 2025 on November 6, 2025, defining it as using AI prompted by natural language to write computer code.
One distinction matters for executives. Developer Simon Willison argues that if an AI wrote the code but someone then reviewed it, tested it thoroughly and could explain how it works, "that's not vibe coding, it's software development." Your engineering team using AI assistants is not the same as an untested app built by prompting. The risk sits in the second case.
How common is vibe coding at work?
Vibe coding is common for side projects but still rare in professional work. AI-assisted coding, where engineers review what the AI produces, is now mainstream.
| Measure | Finding | Source |
|---|---|---|
| Vibe coding at work | 77.5% said vibe coding is not part of their professional work (72.2% "No", 5.3% "No, emphatically"); about 15% said yes to some degree (26,564 responses, global) | Stack Overflow Developer Survey 2025 |
| AI share of committed code | 42% today, expected to reach 65% by 2027; 96% don't fully trust AI code is functionally correct, but only 48% always check it before committing (1,100+ developers, global; vendor survey) | Sonar, January 2026 |
| AI code at one large company | 75% of all new code at Google is AI-generated and approved by engineers, up from 50% in fall 2025 | Google, April 22, 2026 |
| Effect on delivery | AI adoption now improves throughput, but "does continue to have a negative relationship with software delivery stability" (nearly 5,000 technology professionals, global) | DORA 2025, Google Cloud |
Watch the gap between Sonar's 96% and 48%: most developers don't trust AI-written code, yet half don't always check it. That's vibe coding creeping into professional work.
Vibe coding examples: where does it work?
Vibe coding works best when the cost of a mistake is low and nothing important depends on the code. Karpathy's own framing, weekend projects, is a fair guide.
Good fits:
- Prototypes and demos. A clickable version of an idea to show customers or investors before engineering commits time. Willison asks, for "low stakes projects and prototypes why not just let it rip?"
- Personal and internal tools. A script that cleans a spreadsheet, or a dashboard over a test dataset.
- Learning. Seeing what an AI tool can and can't do before you set policy for it.
Poor fits: anything that stores customer or employee data, moves money, holds production credentials, or falls under a regulator, auditor or customer contract.
Lemkin's project is the instructive vibe coding example. He was building an app on a production database of real business contacts, not a weekend toy, and his post-incident review on SaaStr asks whether "prosumer vibe coding" is ready for commercial apps yet. That's the line leaders need to draw.
What goes wrong? Documented vibe coding failures
The best-documented failures come down to access: an AI agent, an AI-generated app or an AI tool's build pipeline could reach more than the people responsible realized. Here are four incidents with first-party sources.
| Date | Who | What happened | Primary source |
|---|---|---|---|
| March–May 2025 | Apps built with Lovable | Insufficient row-level security in Lovable-generated projects (through April 15, 2025) let unauthenticated users read or write their database tables. Rated CVSS 9.3 and reported by a Replit employee. Lovable disputes the CVE, saying each customer is responsible for its app's data, and added a security scan on April 24, 2025. | CVE-2025-48757; researcher's statement |
| July 2025 | SaaStr, on Replit | Replit's agent deleted a production database during a vibe coding project. Data was later recovered. Replit's CEO called it "unacceptable," and Replit launched separate development and production databases on July 21. | Lemkin, SaaStr; Replit blog |
| July 2025 | Amazon Q Developer for VS Code 1.84.0 | An attacker used an over-scoped GitHub token to commit malicious code that shipped in a release. AWS says it failed to run because of a syntax error. | AWS bulletin AWS-2025-015 |
| April 2026 | PocketOS, on Railway | An AI coding agent found a locally stored, account-scoped API token and deleted a production volume. The founder says the token was created to manage custom domains and nothing warned him it could delete volumes; Railway says the right scope existed but its flow "didn't make it obvious which one to pick." Railway recovered the data and made all API deletes reversible for 48 hours. | Railway blog, April 29, 2026; founder's post |
Three lessons stand out:
- The agent had the keys. Railway says the token "was provisioned with account scoped access, the maximum access possible." No prompt outranks a credential.
- Instructions aren't controls. A code freeze written in a chat window is a request, not a lock.
- Responsibility stays with you. Lovable's dispute note puts data protection on each customer. Ship a vibe-coded app, and your company owns the breach.
For a longer, dated ledger, see our AI software failures tracker.
Is vibe coding safe? The security data
Vibe coding is safe for code that never touches real data, money or production systems. For anything else it isn't safe on its own, because AI models still write insecure code at high rates and vibe coding means nobody checks it.
- Common flaws. In Veracode's 2025 GenAI Code Security Report, AI-generated code introduced OWASP Top 10 vulnerabilities in 45% of test cases (80 coding tasks given to more than 100 models). Java's failure rate was over 70%, and models failed to secure code against cross-site scripting in 86% of cases. Newer models wrote more functional code but no more secure code, and larger models did not do significantly better.
- Invented dependencies. A USENIX Security 2025 paper found that at least 5.2% of packages suggested by commercial models, and 21.7% from open-source models, didn't exist: 205,474 unique made-up names. Attackers can register those names and wait.
- Incidents in production. In a Sauce Labs vendor survey of 400 US executives and engineering leaders, run with Wakefield Research and published in August 2026, 80% said they had traced a production incident, outage or customer-impacting defect directly to AI-generated code.
What are the biggest vibe coding risks for a company?
The biggest vibe coding risks are data loss, data exposure and code nobody understands. Each has a business cost.
- Data loss. An agent with production credentials can delete whatever it can reach.
- Data exposure. Generated apps can ship with inadequate access controls, as the Lovable CVE shows. A customer data breach brings notification duties and, for public companies, possible SEC disclosure.
- Supply chain. Hallucinated packages and compromised tools bring outside code into your environment.
- Unowned code. If no one can explain how a system works, no one can fix it at 2 a.m. That's verification debt, and it compounds.
- Insurance. Ask whether your cyber and liability policies cover losses from AI-written code; our guide to AI insurance exclusions lists the questions.
The cost of a bad release is rarely small. In the same Sauce Labs survey, 65% said their most significant software quality incident in the past year cost $500,000 or more. For the wider numbers, see why software testing is important.
A one-page vibe coding policy for leadership
A vibe coding policy should allow it where mistakes are cheap and require engineering controls everywhere else. Here's a template to adapt. It's a starting point drawn from the incidents above, not legal advice.
1. Sort work into three zones.
- Green (allowed freely): prototypes, demos and experiments with no real data.
- Yellow (allowed with review): internal tools that touch real but non-sensitive data. An engineer reviews the code before others use it.
- Red (full process only): customer-facing systems and anything handling personal data, payments or production infrastructure. These follow your normal review, testing and security process, whoever or whatever wrote the code.
2. Keep agents away from production credentials. No production tokens on laptops or in agent workspaces. Use scoped, least-privilege tokens and separate development and production databases.
3. Make destructive actions reversible. Backups stored outside the system they protect, soft deletes and a tested restore.
4. Require human review before merge. A named engineer approves every AI-written change in the red zone.
5. Test against intent, not the AI's own tests. Run independent automated regression tests on the journeys that make money. Our playbook for testing AI-generated code covers the layers.
6. Scan for security flaws and fake packages. Static analysis, dependency checks and web application security testing before release.
7. Keep an approved tool list, with the accounts and data access each tool has.
8. Log it. Record what was generated, reviewed, tested and deployed, so you can show customers, auditors and insurers.
9. Measure outcomes, such as change failure rate and incidents from AI-written code, not lines generated. See AI coding ROI.
10. Name an owner. One executive owns the policy and reviews it every quarter.
How teams are closing the gap
Most companies won't ban AI coding, and shouldn't. The answer is to make verification as fast as generation, as we argued in AIDLC: when AI builds faster than teams can test.
Robonito is one option for the testing layer. It's an agentic QA platform: you describe a test in plain English, paste a URL or reference a Jira issue, and AI agents create, run and maintain end-to-end tests. Self-healing steps adapt when the UI changes, and every heal is logged for review. Every run keeps video, network traces and an AI root cause for failures, which helps with the logging rule above. On Starter and above it connects to GitHub Actions, GitLab CI, Jenkins, Azure DevOps and CircleCI. Club Car cut QA testing time by over 70% with it.
It doesn't replace code review, static security scanning or credential management. It checks that the app behaves as intended, end to end. Web testing is on the free-forever plan; see pricing, or .
Frequently asked questions
What is vibe coding?
Vibe coding is building software by prompting an AI model in plain language and accepting the code it produces without reading it closely. Andrej Karpathy coined the term on February 2, 2025. Collins Dictionary named it Word of the Year 2025.
Is vibe coding safe?
It's safe for prototypes and throwaway tools that never touch real data or production systems. For customer-facing software, it isn't safe without review, testing and security scanning. Veracode found AI-generated code introduced security flaws in 45% of the test cases it ran.
What are the main vibe coding security risks?
Missing access controls, insecure patterns such as cross-site scripting, and dependencies that don't exist. A USENIX Security 2025 study found at least 5.2% of packages suggested by commercial models were hallucinated. Agents holding production credentials add the risk of deleted data.
What are some vibe coding examples?
Good examples are prototypes, investor demos, internal dashboards and one-off scripts. Documented failures include agents deleting SaaStr's production database on Replit in July 2025 and PocketOS's production volume on Railway in April 2026. Both companies say their data was recovered.
Is AI-assisted coding the same as vibe coding?
No. If engineers review, test and understand AI-written code, that's AI-assisted software development. Google says 75% of its new code is AI-generated and approved by engineers. Vibe coding skips the review.
Should a company ban vibe coding?
Usually not. A zone-based policy works better: allow it for prototypes and internal experiments, and require human review, independent testing and scoped credentials for anything that touches customers, money or production.
Vibe coding gets you to a demo fast. Testing gets you to production safely: or .




