What Is Vibe Coding? An SRE's Take on Shipping It Safely

Summary

What is vibe coding? It is building software by prompting an AI model and judging the result by whether it runs, without reading the generated code. Andrej Karpathy coined it in February 2025 for throwaway projects. In production it becomes a review and rollout problem: failure handling, security defaults and invented dependencies slip through. The fix is small diffs, human-owned tests, automated scanning and SLO-gated rollouts.

Dim late-night developer desk with a laptop glow and a pager alert on a phone

It is 3:12 a.m. and the alert says checkout latency is up 4x. You open the diff that shipped at 17:40. Nobody on the team can explain the retry loop in it, because nobody wrote it. A teammate prompted it into existence on Friday, saw the happy path work, and merged.

That is the operational answer to what is vibe coding: building software by describing what you want to an AI model, judging the result by whether it runs, and not reading the code too closely. The term is fun at a hackathon. On a production path with a 99.9% SLO, it is a change-management problem.

Where does the term come from, and what did it originally mean?

Andrej Karpathy coined it in a February 2025 post on X. He described a way of working where you "fully give in to the vibes" and forget the code exists, talking to an editor agent and accepting its diffs without reading them. He framed it as fine for throwaway weekend projects.

Two details matter. First, the original definition was narrow: you do not review the code. Second, it came with a scope warning that most of the later discussion dropped. Since then the label has stretched to cover almost anything involving an LLM and a keyboard. Karpathy himself has moved on to calling professional AI-assisted work "agentic engineering", which The New Stack covered when the old term started to feel dated.

When your team says "we vibe code", ask which one they mean. The answer decides your risk.

Hands typing a natural language prompt into a code editor

Is vibe coding the same as using an AI coding assistant?

No, and conflating them is how teams end up with the wrong policy. The difference is where the human sits in the loop.

The first two are tooling choices. The third is a review policy, or rather the absence of one. Tools like Cursor, GitHub Copilot and Claude Code can be used in any of the three modes. The tool does not decide the mode. Your merge rules do.

What does vibe coding get right?

Honest answer: a lot, for the right scope. Skip the sneering.

A prototype that takes forty minutes instead of two days changes how many ideas get tested. Internal tools with five users and no uptime requirement are a legitimate fit. So are one-off data migrations you will run once and delete, and spikes whose only job is to answer "is this approach even possible?".

The failure is not the technique. It is the promotion path. A prototype that works gets a customer, then a second customer, then a pager rotation. Nobody scheduled the moment where it stopped being a prototype, so nobody reviewed it as production code.

In the incident reviews we read, the pattern repeats. The code did what the prompt asked. The prompt did not mention timeouts, idempotency, or what happens when the downstream service returns a 429.

What breaks first when vibe-coded changes reach production?

Not syntax. The model is good at syntax. What breaks is everything the prompt did not say out loud.

Failure handling. Generated code tends to be written for the success case. Retries without backoff, no timeout on an outbound call, a catch block that swallows the error and returns a 200. Each one is small. Together they turn a slow dependency into an outage, because your service piles up requests waiting on it.

Security defaults. Veracode's 2025 GenAI code security work tested more than 100 models and found that 45 percent of generated samples failed security tests. That is a controlled benchmark, not your codebase, so treat it as a base rate and not a forecast. The practical reading: if nobody reads the code, nobody catches the injectable query.

Dependencies that do not exist. Models sometimes invent package names. An attacker can register the invented name. If your pipeline installs whatever the lockfile update says, you have given strangers a path into your build.

Throughput up, stability down. The DORA research on AI adoption has pointed the same way for two years: teams ship more, and delivery stability gets worse unless the surrounding practices keep up. Check the primary report before quoting a percentage, because secondary sources disagree on the exact figure. The direction is consistent.

Control panel with a red rollback lever and status lights

What does an incident from a vibe-coded change look like?

Picture a team of 80 engineers. A product engineer prompts a new export endpoint on Thursday. It works on the staging dataset of 2,000 rows. Nobody asks what happens at 40 million. On Monday a customer triggers the export, the handler loads everything into memory, the pod gets OOM-killed, the replacement pod picks up the same retry, and the loop repeats across the fleet.

The post-mortem will say "missing pagination". The honest line is shorter: nobody read the handler, and nothing between merge and customers could notice it was dangerous. A 1 percent rollout with a memory and restart-count gate would have stopped it at the first pod. The blast radius would have been one customer's export, not the fleet.

This is also why we distrust the phrase "it works on my machine" being replaced by "it works in the preview". A preview proves the path runs. It says nothing about load, failure modes or cost.

Why does review stop scaling when the model writes the code?

Because the reviewer's job changed and the process did not.

A human author writes maybe 150 changed lines a day and carries context about why. A model produces 1,500 in an afternoon and carries none. Reviewing that diff the old way, line by line, is slow enough that the team starts skimming. Skimming is vibe coding with extra steps.

The fix is not "review harder". It is to move trust out of the human reading and into mechanisms that do not get tired:

  1. Small diffs by policy. Cap the size of a PR that can merge without a second reviewer. Make the model split its work.

  2. Tests the model did not write. If the same agent writes the code and the tests, the tests agree with the code by construction. Keep a contract test suite owned by a human.

  3. Static analysis and dependency scanning on every change. Boring, automatic, and fast enough that nobody is tempted to skip it. Something like Code Climate or CodeScene can flag complexity hotspots before a human has to find them.

  4. A named owner per change. If the commit says "generated", the person who merged it is still the person the pager calls.

How do you ship vibe-coded changes without betting the SLO?

You limit the blast radius before the change, not after the page. This is the part platform teams actually control.

Put the change behind a flag. Roll it out to 1 percent, then 5, then 25, with an SLO gate between each step. If the error rate or p99 crosses the threshold, the rollout reverts without a human deciding anything at 3 a.m.

Here is the shape of that gate in TypeScript. It is deliberately dull:

type Step = { percent: number; holdMinutes: number };

const steps: Step[] = [
  { percent: 1, holdMinutes: 15 },
  { percent: 5, holdMinutes: 30 },
  { percent: 25, holdMinutes: 60 },
  { percent: 100, holdMinutes: 0 },
];

async function rollout(flag: string, slo: { p99Ms: number; errRate: number }) {
  for (const step of steps) {
    await setPercent(flag, step.percent);
    await sleepMinutes(step.holdMinutes);
    const m = await readMetrics(flag);
    if (m.p99Ms > slo.p99Ms || m.errRate > slo.errRate) {
      await setPercent(flag, 0); // revert, then page a human with the evidence
      throw new Error(`SLO breach at ${step.percent}%: ${JSON.stringify(m)}`);
    }
  }
}

Nothing here knows or cares whether a human or a model wrote the change. That is the point. A rollout gate is the one control that works equally well on code you understand and code you do not.

Two cautions. A canary at 1 percent only catches failures that show up at 1 percent traffic, so a bug that appears under a specific tenant shape needs targeting rules, not just a percentage. And the SLO has to be real: a gate on average latency will wave through a p99 regression all day.

Two engineers reviewing a printed code diff

Should your team ban it, allow it, or fence it?

Skip the ban. It is unenforceable, and it pushes the usage into personal accounts where you have no visibility.

Worth allowing, with a fence, in three tiers:

Write the zones down. Put the zone in the PR template. The point is that a developer can answer "can I vibe this?" in ten seconds without asking anyone.

One more measurement worth adding: track change failure rate and time to restore separately for AI-authored and human-authored changes. After a quarter you will have your own data, which beats any benchmark in a blog post, this one included.

What would we tell a platform lead to do on Monday?

Three things, in this order.

First, find out what is already happening. Ask in the engineering channel who uses which tool and for what. You will learn more from that thread than from a policy draft.

Second, pick your red zone and enforce it with CODEOWNERS and required reviews, not with a wiki page nobody reads.

Third, make the rollout path the easy path. If shipping behind a flag with an SLO gate takes less effort than a direct merge, developers take it without being told. If it takes more, they route around it.

Vibe coding is not going away, and it does not need to. The code was never the only thing between your users and an outage. The release process was. So the question for your next retro is a simple one: if a change nobody understood shipped on Friday, how many minutes until your system reverted it by itself?

Frequently asked questions

What is vibe coding in simple terms?
Vibe coding means building software by describing what you want to an AI model and accepting the result based on whether it runs, without reading or fully understanding the generated code. Andrej Karpathy coined the term in February 2025.
Who invented the term vibe coding?
Andrej Karpathy introduced it in a post on X on February 2, 2025. He described fully giving in to the vibes and forgetting that the code exists, and he framed it as suited to throwaway weekend projects.
Is vibe coding the same as using GitHub Copilot or Cursor?
No. Those are tools. Vibe coding is a review policy: you accept output without inspecting it. You can use Copilot, Cursor or Claude Code while reading every diff, which is ordinary assisted coding.
Is vibe coding safe for production?
Not by default. Benchmarks such as Veracode's 2025 study found 45 percent of AI-generated samples failed security tests. It becomes manageable with small diffs, human-owned tests, automated scanning and SLO-gated rollouts with auto-rollback.
How do you reduce the risk of AI-generated code in production?
Cap diff size, keep a human-owned contract test suite, run static analysis and dependency scanning on every change, name an owner per change, and roll out behind a feature flag with an SLO gate that reverts automatically.
When is vibe coding a good idea?
Prototypes, internal tools with few users, one-off scripts and spikes that answer whether an approach is possible. Avoid it for authentication, payments, data deletion and anything touching personal data.