What is vibe coding, and when does it break?

The fastest way to go from idea to working prototype, and the fastest way to ship a security hole. Here is how to get the first without the second.

A vinyl record spinning on a turntable with the tonearm down
Photo by Andrea Cipriani on Unsplashdithered by Cyborb

Vibe coding means building software by describing what you want to an AI and accepting the code it writes without reading it closely. You judge the result by running it: if it works, you keep going, and if it breaks, you paste the error back in. Andrej Karpathy named it in February 2025, and Collins Dictionary made it its word of the year.

It is a great way to make prototypes and personal tools. It breaks when real users, real data or real money are involved, because nobody has checked what the code actually does. This guide covers where the term came from, what it is good for, and how to vibe code without getting burned.

The short version
  • Vibe coding is building software from plain-language prompts and accepting the AI’s code without reviewing it.
  • Andrej Karpathy coined the term in February 2025. Collins Dictionary named it word of the year in November 2025.
  • It shines for prototypes, demos and personal tools, where a bug costs little.
  • It breaks on security, maintenance and scale. In Veracode’s testing, 45% of AI coding tasks introduced a known security flaw.
  • Keep the speed, add guardrails: git, tests, a secrets check and a review of the risky parts.

Where the term came from

On February 2, 2025, Andrej Karpathy, a founding member of OpenAI and former head of AI at Tesla, described a new way of coding on X. You go with the vibes and “forget that the code even exists.” He accepted every change without reading the diffs, pasted error messages back in without comment, and asked for random changes until bugs went away.

He was clear about the limits: he saw it as fine for weekend projects you plan to throw away. The name spread anyway, because it described something many people were already doing.

  1. February 2025Karpathy coins “vibe coding” in a post on X
  2. March 2025Simon Willison defines it narrowly: building software with AI without reviewing the code it writes
  3. November 2025Collins Dictionary names “vibe coding” its word of the year
  4. February 2026Karpathy suggests “agentic engineering” for the careful, professional version

Collins defines vibe coding as the use of AI, prompted by natural language, to write computer code. That broad sense is how many people use it today. The narrow sense matters more, though, and developer Simon Willison put it best: if you reviewed and tested the code and can explain how it works, that is not vibe coding. It is software development, whoever typed it.

What vibe coding looks like in practice

A vibe coding session is a loop. You describe, run, react and repeat, and you never open the code unless something forces you to.

PromptA typical opening prompt
Build a single-page web app where I can paste a list of expenses and see a pie chart by category.
Save everything in the browser so it is still there when I come back.
Make it clean and simple, with a dark mode.

Then the follow-ups are reactions, not instructions: “the chart is empty,” “make the numbers bigger,” or a pasted error message. Within an hour you often have something that works well enough to use.

People do this in chat-based app builders like Lovable, Bolt, v0 and Replit, and in coding agents like Claude Code, Codex and Cursor. Our comparison of the best AI coding agents of 2026 covers the differences. Any of these tools can be used carefully or carelessly. What makes it vibe coding is the lack of review, not the tool.

Most developers kept vibe coding out of their day jobs, at least in 2025. In Stack Overflow’s survey that year, 72% of respondents said it was not part of their professional work, and another 5% said so emphatically. About 15% said it was, to some degree.

What is vibe coding good for?

For low-stakes work, vibe coding is hard to beat. Even Willison, who is strict about AI code in production, says to go for it on low-stakes projects and prototypes.

Great for
  • Prototypes you plan to throw away
  • Personal tools that only you use
  • Demos to test an idea with real people
  • Learning what is possible before you invest
  • One-off scripts, as long as your files are backed up
Risky for
  • Anything that stores other people’s data
  • Logins, payments and permissions
  • Code a team must maintain for years
  • Systems where downtime or a bug costs money

The pattern is simple. The cost of a hidden bug decides whether vibe coding is fine. If the worst case is “I rebuild it on Saturday,” go ahead. If the worst case is “a stranger reads my users’ messages,” slow down.

Where vibe coding breaks

It breaks in three predictable places: security, maintenance and scale.

Security. AI writes code that looks right far more often than it writes code that is safe. Veracode has tested more than 150 models, and two years of new releases have barely moved its security pass rate.

45%
of AI code generation tasks introduced a known security flaw
Veracode, March 2026
95%+
of the AI-generated code was syntactically correct
Veracode, March 2026
15%
pass rate on tasks exposed to cross-site scripting
Veracode, March 2026

A real example: in January 2026, security firm Wiz looked at Moltbook, a social network for AI agents whose founder said he did not write a line of its code. A database key sat in the site’s public JavaScript, and row-level security (the database rules that limit who can see which rows) was off.

Anyone could read and change the production database. Wiz counted 1.5 million API tokens, 35,000 email addresses and thousands of private messages. The team fixed it within about three hours of being told. It is exactly the kind of mistake a quick review catches.

Maintenance. Karpathy himself admitted that the code grew past what he could easily follow. When nobody understands a codebase, every fix is a guess, and each guess can break something else. Bugs that keep coming back are the usual first sign.

Scale. What works for five users can fall over at five thousand. Slow database queries, missing rate limits and paid APIs called in a loop rarely show up while you click around alone. They show up as an outage or a surprise bill.

How to vibe code responsibly

You do not have to give up the speed. Add a few guardrails that take minutes, not days.

  1. Start every project in git

    Commit after each step that works. When the AI breaks something, you can roll back in seconds instead of asking it to undo its own changes. Our guide to git for beginners covers eight commands worth knowing.

  2. Keep secrets out of the code

    API keys and database passwords belong in environment variables on the server, never in files a browser can load. Ask the AI where each key lives and who can see it.

  3. Ask for tests as you go

    After each feature, ask the agent to write a test, run it and show you that it passes. Tests catch the regressions you will not notice by clicking around.

  4. Read the risky parts, skip the rest

    Skim styling and layout if you like. Read anything that touches logins, payments, user data or deletion. Our guide on how to review AI-generated code shows how to review by risk.

  5. Run a security pass before anyone else uses it

    Use the prompt below, then fix what it finds. For the full list, see our checklist for securing AI-generated code.

PromptPre-launch security pass
Before I share this app, act as a strict security reviewer.
1. List every place user data is stored or sent, and who can read it.
2. Find any API key, token or password in a file the browser can load.
3. Check that the database only lets each user read and change their own rows.
4. Check every form field and URL parameter for injection and cross-site scripting.
5. List what would break or cost money if 1,000 people used it at once.
Do not fix anything yet. Give me the list, most serious first.

When to graduate to a careful agent workflow

A year after coining the term, Karpathy wrote that programming through AI agents is becoming the default for professionals, but with more oversight and checking. His favorite name for that is agentic engineering. Agents still write most of the code, but you plan it, check it and own the result.

Vibe codingCareful agent workflow
Who reads the codeMostly nobodyYou, focused on the risky parts
How you know it worksYou click aroundTests, plus you click around
InstructionsLoose prompts, one at a timeA short spec and a plan first
UndoAsk the AI to fix itSmall commits and git history
Best forPrototypes and personal toolsAnything with users, data or money

Switch when any of these become true: other people use it, it stores personal data or payments, you will maintain it for more than a few weeks, or the same bugs keep returning. The AI pair programming workflow is a good next step, and it keeps most of the speed.

FAQ

Is vibe coding bad?

No. It is a fast, fun way to build prototypes and personal tools. It becomes a problem when unreviewed code handles other people’s data, money or logins.

Who coined the term vibe coding?

Andrej Karpathy, a founding member of OpenAI and former head of AI at Tesla, in a post on X on February 2, 2025. Collins Dictionary named it its word of the year in November 2025.

Do professional developers vibe code?

Mostly not at work, at least as of 2025. In Stack Overflow’s survey that year, 72% of respondents said vibe coding was not part of their professional work. Many developers use AI heavily, but they review and test what it writes.

Can I vibe code an app I plan to sell?

You can start that way. Before paying customers rely on it, add tests, move secrets out of the code, lock down the database and read the code that handles logins and payments, or get someone who can.

Key takeaways
  • Vibe coding is building from prompts without reviewing the code. Karpathy named it in February 2025.
  • It is excellent for prototypes and personal tools, where bugs are cheap.
  • It breaks on security, maintenance and scale, often invisibly.
  • Git, tests, a secrets check and a review of risky code keep most of the speed and remove most of the risk.
  • Once real users, data or money are involved, switch to a careful agent workflow.

Read next: how to review AI-generated code without reading every line, or compare the best AI coding agents of 2026.

Sources
  1. Post introducing “vibe coding”, Andrej Karpathy on X, February 2025
  2. Retrospective on a year of vibe coding, Andrej Karpathy on X, February 2026
  3. Collins’ word of the year 2025: AI meets authenticity as society shifts, Collins Dictionary, November 2025
  4. Not all AI-assisted programming is vibe coding (but vibe coding rocks), Simon Willison, March 2025
  5. 2025 Developer Survey: AI, Stack Overflow, July 2025
  6. Spring 2026 GenAI code security update, Veracode, March 2026
  7. Hacking Moltbook: AI social network reveals 1.5M API keys, Wiz, February 2026
cyborb.ai

Stop reading about it. Build it.

Describe what you want in plain words. Cyborb plans the work, writes and runs the code, makes the assets, and puts the result online.

Download Cyborb

Free to start. No card required.