AI Coding

Vibe Coding Explained: When It Works and When It Bites

On February 2, 2025, Andrej Karpathy posted about a new way he’d been writing software. He called it vibe coding, and the idea was to stop paying attention to the code itself. You describe what you want, accept whatever the AI writes, paste errors back in, and keep going.

The name stuck. By November 2025, Collins Dictionary had made it its Word of the Year. A year after that, “vibe coding” gets used for almost anything involving AI and code, which is where the confusion starts.

So what is it, really? When does it work? And when does it quietly leave you with an app you can’t fix?

What vibe coding actually means

Karpathy’s original post described something specific, and Simon Willison’s write-up (more on it below) sums it up well: vibe coding means building software with an LLM without reviewing the code it writes. No reading diffs. Accept the change, run it, and if it breaks, hand the error back to the AI.

Developer Simon Willison wrote the clearest line between the two ideas in a post titled “Not all AI-assisted programming is vibe coding”. His view: if you review, test and understand the code an AI wrote, that’s just software development with a helper. Vibe coding is when you don’t look.

That distinction is the whole article, honestly. Keep it in your head for the rest of this.

Vibe coding vs AI-assisted coding comparison
Vibe codingAI-assisted coding
Do you read the code?No, or barelyYes, every change
How you check it worksClick around, see if it runsTests plus manual checks
When it breaksPaste the error back inFind the cause, then fix
Good forPrototypes, personal tools, learningAnything other people depend on
Who can maintain itMostly the AIYou

A quick test: are you vibe coding right now?

Try answering these about the last thing you built with AI.

  • Could you explain what each file does without opening the chat history?
  • If the AI disappeared tomorrow, could you fix a small bug on your own?
  • Do you know where user input gets checked?
  • Is there a single test anywhere in the project?

Mostly “no”? Then you’re vibe coding. That’s okay for a side project. It’s a warning sign if the thing has real users, because those four questions are exactly what you’ll need the day something goes wrong.

Where vibe coding genuinely works

We’re not here to dunk on it. For some jobs it’s the right call.

  • Throwaway prototypes. Want to see if an idea feels right before you build it properly? Vibe it in an evening, then decide.
  • Personal scripts. A tool that renames your photos or merges two CSV files only has to work on your machine, for you.
  • Learning what’s possible. Non-programmers can find out what a web app even involves, which makes them better at briefing a developer later.
  • UI mockups. Clickable screens to show a client, where the code will be rewritten anyway.

The pattern: the stakes are low, the user is you, and nothing sensitive goes in.

Is vibe coding safe? Where it breaks

Problems show up the moment any of those three conditions stop being true.

Size. Small projects fit in the model’s head. Past a few thousand lines, the AI starts forgetting decisions it made earlier, duplicates logic, and “fixes” one thing by breaking another. If you never read the code, you can’t tell which change caused what.

Debugging. The paste-the-error loop works until it doesn’t. Then you’re stuck with an AI that keeps offering the same three patches and a codebase you can’t read. We cover a better loop in how to fix bugs with AI.

Security. This is the big one. An app that handles logins, payments or anyone’s personal data needs things you can’t see by clicking around: input validation, proper access checks, secrets kept out of the frontend, database rules that block other users’ records. “It runs” tells you nothing about any of that.

Costs. A vibe-coded app wired to a paid API, with no rate limits, can rack up a bill fast if someone finds the endpoint.

The catch: the risk isn’t that AI writes bad code. Current models often write decent code. The risk is that nobody on the project can tell good from bad, so mistakes ship with full confidence. A human developer who’s unsure usually leaves a comment or asks. A vibe-coded app has no one in that role. If you publish something other people sign up for, you’re responsible for their data whether or not you read the code, and “the AI wrote it” won’t help much if it leaks.

How to vibe code without getting burned

If you’re going to do it (and plenty of people will), these rules keep the damage small.

Six rules for safe vibe coding
  1. Use git from minute one. Commit after every change that works. When the AI breaks something, roll back instead of asking it to dig deeper.
  2. Keep real secrets out. Use test API keys with spending limits. Never paste production passwords or customer data into a prompt.
  3. Work in a sandbox. Agents like Claude Code and Codex can ask before running commands. Keep that on, or run them in a container. Claude Code’s docs reserve its skip-all-prompts mode for isolated containers and VMs.
  4. Ask for tests, then run them. Even if you don’t read the app code, you can read a test that says “a logged-out user can’t see another user’s orders.”
  5. Ask the AI to review its own work. A separate prompt such as “act as a security reviewer; list every way this login flow could be abused” catches more than you’d expect.
  6. Get a human review before launch. If real users or money are involved, pay a developer for an hour. It’s cheap next to a breach.

Once you do start reading the code, this checklist to review AI-generated code shows what to look at first, from invented packages to tests that can’t fail.

Which tools people use for it

Vibe coding happens in two kinds of tools. Browser-based app builders let you describe an app and get a running preview without touching a terminal. Coding agents such as Claude Code, Codex and GitHub Copilot work on files on your machine or in a cloud sandbox, which gives you git, tests and more control. We compare the agents in Claude Code vs Codex vs GitHub Copilot, and there are no-cost options in our free AI coding tools list.

What this means for you

If you can’t code, vibe coding is a real way to build small things for yourself, and a decent way to start learning. Read the code the AI writes even when you don’t have to. You’ll pick up more than you think.

If you’re a developer, it’s a fast way to throw away ideas cheaply. Just be honest with yourself about when a prototype has quietly become a product.

Our verdict

Vibe code your weekend projects, your personal scripts and your first drafts. Don’t vibe code anything that stores other people’s data, takes payments, or that you’ll need to maintain for a year. The moment you start reading, testing and understanding the AI’s code, you’ve stopped vibe coding, and that’s usually a good sign.

Next: when the vibes run out, use this six-step method to fix bugs with AI.

FAQ

Who invented vibe coding?

Andrej Karpathy coined the term in a post on X on February 2, 2025. People had been coding with AI before that, but his post gave the hands-off style a name.

Can I build a real business app by vibe coding?

You can build a prototype that way. Before real users, payments or personal data are involved, someone needs to read and test the code, especially login, permissions and anything touching the database.

Is vibe coding bad for learning to program?

Only if you never look at the code. Asking the AI to explain each change and reading along turns vibe coding into a decent tutor.

Is AI-assisted coding the same thing?

No. AI-assisted coding means you review and understand what the AI writes. Vibe coding means you deliberately don’t. Same tools, different habits.

Leave a Comment