Vibe Coding: A Practitioner's Guide to Shipping With AI
Vibe coding is describing what you want in plain language and letting an AI write the code. A grounded guide to the workflow, where it breaks on security and maintainability, and how senior teams ship with it without shipping garbage.

On this page

Vibe coding went from an offhand tweet to a verb the whole industry uses within a year. It's a real shift in how code gets written. It speeds up some work, and it turns out insecure code nobody can maintain the moment you stop paying attention. This guide covers what vibe coding is and what the term means in practice, the workflow that works, where it breaks, and how senior teams use AI heavily without letting the quality bar drop. We build software this way every day, and what follows is what we've learned doing it.
The short version
- Vibe coding means describing what you want in plain language and letting an AI write the code, then judging it by whether it runs rather than reading every line. Andrej Karpathy coined the term in February 2025.
- It is the far end of AI-assisted development: the mode where you deliberately stop reading the output, which is the one choice that separates it from ordinary AI pair programming.
- Pure vibe coding is not safe for production. Veracode's 2025 study of over 100 models found 45% of AI-generated samples introduced an OWASP Top 10 vulnerability, and that rate did not improve as models got more capable.
- The speed is real but task-dependent. One GitHub study measured developers 55% faster on a greenfield JavaScript server, while a 2025 METR trial found AI made experienced developers 19% slower in large codebases they already knew well.
- Senior teams vibe the draft and gate the merge: use AI to generate fast, then run every change through human review, tests, and security scanning before it ships.
- Vibe-code freely on prototypes, internal tools, and throwaway scripts; avoid it on anything touching authentication, payments, personal data, or code a team must maintain for years.
What is vibe coding? Meaning and definition
Vibe coding is writing software by describing what you want in plain language and letting an AI generate the code, then judging the result by whether it runs and behaves rather than by reading every line. You stay in the prompt, not the editor. You see stuff, say stuff, run stuff, and accept what works.
The term comes from Andrej Karpathy, who posted it in February 2025: "There's a new kind of coding I call 'vibe coding', where you fully give in to the vibes, embrace exponentials, and forget that the code even exists." He described his own loop as "I just see stuff, say stuff, run stuff, and copy-paste stuff, and it mostly works." The throwaway post went viral within days, because it named something a lot of people had already started doing.
The defining trait isn't "using AI to code." It's the deliberate decision to stop reading the output. That is what separates vibe coding from the broader practice of AI-assisted development, where a person still owns and reviews every change. Karpathy was explicit that he meant it for weekend projects, "throwaway" software where the stakes are zero. Most of the trouble in the field comes from people taking a mode built for prototypes and pointing it at production.
It helps to put it on a spectrum:
- Autocomplete. The AI finishes the line or block you are already writing. You read all of it. This is barely a change to the job.
- AI-assisted development. You prompt for whole functions or features, then review and edit the result like a senior reviewing a junior's pull request. You own the code.
- Vibe coding. You prompt for behavior, run it, and accept it if it works, without reading much. The AI owns the code; you own the goal.
These are not better or worse in the abstract. They are different amounts of trust, appropriate to different stakes. The mistake is using the wrong one for the job, and the most expensive version of that mistake is vibe coding something that needed review.
Vibe coding means choosing to stop reading the code. That choice costs nothing on a prototype and a lot on anything that ships.
Two things make this possible now that were not true a few years ago. Models got good enough to produce working code from a vague description, and the tools wrapped around them got good enough to run that code, read the errors, and try again on their own. The first is the model. The second is the agent loop, which is the same reason-act cycle we cover in our explainer on how AI agents work: the model proposes an action, code runs it, the result feeds back, and the loop repeats until the goal is met or you stop it.
The vibe-coding workflow, step by step
A good vibe-coding session has a shape. People who get value from it are not just typing wishes into a box. The loop looks like this:
- Describe the outcome, not the implementation. You tell the tool what the program should do and what "done" looks like. "Build a CLI that takes a CSV of transactions and prints monthly totals, with a flag for a specific account." The clearer the success condition, the better the result, because the AI has something concrete to aim at.
- Let the AI generate. A modern coding agent scaffolds files, writes the code, and often runs it. You watch it work rather than write it yourself.
- Run it and read the behavior. You execute the program and check the output against what you asked for. This is the heart of the loop: you are testing the behavior, not auditing the source.
- Steer with the next prompt. It is wrong in some way, so you say how. "The totals are off because it is double-counting refunds." The AI reads the feedback, often reads the error itself, and revises.
- Repeat until the vibes are right. You loop on behavior until the thing does what you wanted, then you stop.
Three things make the difference between a session that flies and one that spirals into a mess.
Context is everything. The AI can only reason about what it can see. A tool that has read your whole repo, your types, and your conventions writes code that fits. A tool working from a single prompt with no project context writes plausible code that does not match anything around it. This is the single biggest predictor of output quality, and it is why the tooling section below cares so much about how much each tool can see.
Small steps beat big ones. Ask for one coherent change, verify it, then ask for the next. The instinct to describe the entire app in one prompt feels efficient and reliably produces a tangle that is hard to debug because too much changed at once. Tight loops keep each change small enough to judge.
Say what is wrong, specifically. "It doesn't work" gives the AI nothing. "It crashes on empty input" gives it a fix. The quality of your steering is the quality of your result. Vague feedback gets vague code in return, and you spin.
The uncomfortable part is that none of those steps include reading the code. That is the design of the thing, and it is exactly why the next section exists.
Where vibe coding breaks
Demos skip this part. Vibe coding fails in specific, predictable ways, and knowing them is the difference between a tool and a foot-gun.
Vibe coding security risks
Code that runs isn't code that's safe, and the AI optimizes for the first. When you stop reading the output, you stop catching the SQL injection, the hardcoded key, the missing auth check, the unvalidated input. The AI will happily produce all of these because they make the program work in the happy path.
Veracode's 2025 GenAI Code Security Report tested over 100 models across 80 tasks and found that 45% of AI-generated code samples introduced an OWASP Top 10 vulnerability. Java came out worst, failing the security tests in about 72% of cases. The finding that matters most: as models got better at writing functional code, they didn't get better at writing secure code. Security stayed flat while capability rose. The model's fluency is what makes vibe coding feel effortless, and it does nothing to keep you from getting breached.
The practice inherits ordinary security risk and then removes the human who would have caught it. Frameworks like the OWASP Application Security Verification Standard (now version 5.0) and NIST's Secure Software Development Framework, including SP 800-218A, its profile for generative AI, exist because functional tests never verify access control, secret handling, or input sanitization on their own. Dropping human code review removes the main check against shipping silent vulnerabilities.
Debugging code you did not write
Vibe-coded bugs are slow to fix because nobody knows how the code works. The first prompts feel fast. Then something breaks that you don't understand, because you didn't write any of it. Now you are debugging a stranger's codebase, except the stranger is a model that will confidently rewrite three working things to fix one broken one. The loop that built the feature in ten minutes can spend an hour going in circles, each "fix" introducing a new break, because neither you nor the AI holds the whole picture in mind.
Here vibe coding flips. The time you saved up front comes back as time lost in a debugging spiral on code nobody owns. A person who had written the code would know where to look. A person who vibe-coded it is reverse-engineering their own program.
Why vibe coding does not scale
Vibe coding works beautifully up to a few hundred lines and a handful of files. Past that, the model can no longer hold the system in context, and the cracks show. Architecture drifts because each prompt optimizes locally with no memory of the global design. Patterns get reinvented inconsistently across files. The same logic appears three times in three shapes. GitClear's 2025 analysis of 211 million changed lines across big-tech and enterprise repositories from 2020 to 2024 measured a fourfold growth in code cloning, and 2024 was the first year copy-pasted lines outnumbered moved (refactored) lines. Coherent structure disappears when neither a human nor a model owns the whole design.
A small app is a collection of working features. A real system is a set of consistent decisions, and consistency is exactly what a behavior-only loop does not produce.
Maintainability and the knowledge gap
Vibe-coded software is hard to maintain because the reasons it works were never in anyone's head. Software is read far more than it is written, and it is maintained for years by people who were not in the room when it was built. Vibe-coded code optimizes for the one moment it first ran. Six months later, someone has to change it, and there's no mental model to change it against, no one who can explain why it works, often no tests describing what it's supposed to do.
It's the deepest problem, because you can't see it at ship time. The demo works. The cost arrives later, as a team inherits a codebase nobody understands. Survey data points the same way. The 2025 Stack Overflow Developer Survey found that while 84% of developers now use or plan to use AI tools, only 33% trust the accuracy of the output, down from 43% in 2024. Adoption is up and trust is down at the same time, which is exactly what you would expect from a tool that produces working code you cannot fully vouch for.
Vibe coding vs production engineering: where the line is
People frame this as vibe coding vs traditional coding, but the line isn't "AI or no AI." Senior teams use AI constantly. The line is whether a human understands and stands behind what ships.
Production engineering has a non-negotiable floor that vibe coding, by definition, skips:
- A human has read and understood the change, or it does not merge.
- Tests describe the intended behavior and run on every change.
- Security review and scanning catch the class of flaw the Veracode numbers warn about.
- An architecture someone owns keeps the system coherent as it grows.
- A trail of why (commit messages, reviews, decisions) so the next person can maintain it.
Vibe coding is a way to generate candidate code fast. Production engineering is the discipline that decides whether that code is fit to ship. Confusing the two is the central error in the field right now. Google's 2025 DORA report on AI-assisted software development reached the same conclusion from a survey of nearly 5,000 technology professionals: AI acts as an amplifier, magnifying strong engineering foundations where review and automated testing exist and magnifying instability where they do not. You can vibe-code the first draft of a feature and then put it through a full product development gate, and that works well. Skipping that gate leaves you with a fragile prototype masquerading as production software.
The productivity research makes this concrete in a way that surprises people. A controlled GitHub study found developers built a greenfield HTTP server in JavaScript 55% faster with an AI pair programmer than without. But a 2025 randomized controlled trial from METR, run on experienced open-source developers working in large codebases they already knew deeply, found the opposite: the AI made them 19% slower, even though they had forecast a 24% speedup beforehand and still believed, after the fact, that it had sped them up. METR's 2026 follow-up on newer tools reported a possible speedup but flagged selection bias in its own estimate, so treat the 2025 number as a snapshot, not a constant. The tasks explain the gap. AI is fastest on greenfield and boilerplate, where there is little context to lose. It is slowest, sometimes negative, where deep system knowledge already lives in a person's head and the AI cannot see it. Where vibe coding falls on that curve is exactly where the line between prototype and production sits.
How senior teams vibe-code with rigor
Senior teams vibe-code by letting AI write the first draft while people keep control of review, tests, and architecture. In practice it's a tightened version of normal engineering with AI doing more of the typing.
Vibe the draft, gate the merge. Use AI freely to produce the first version, then run it through the same review, tests, and scanning every other change goes through. The speed comes from the draft. The safety comes from the gate. Nothing ships on vibes.
Read the diff, every time, before it merges. This is the one rule that turns vibe coding from a liability into a tool. You can let the AI write it all. You cannot let it merge without a human understanding what changed. Reviewing AI code is its own skill, and it is the skill that separates senior AI use from junior, which is the subject of our piece on how senior engineers actually pair with AI.
Tests are how you trust at speed. A behavior-only loop is dangerous because behavior is all you checked. A real test suite makes that safe: it pins the behavior down so the AI can move fast inside guardrails it cannot quietly break. Teams that vibe-code well write the tests, or have the AI write them and then review those carefully, because the tests are the contract.
Give the AI your stack, not just a prompt. Output quality tracks context. Senior teams invest in feeding the tool their conventions, types, and architecture so the generated code fits the system instead of fighting it. The mechanism for this is maturing fast: agent skills and project files let you teach a coding agent your codebase's rules once and have it apply them every time, which we cover in our guide to Claude Code skills. Connecting the agent to your real data and tools through the Model Context Protocol extends the same idea to the systems around the code.
Keep a human owning the architecture. Let the AI fill in functions; do not let it decide the shape of the system. Anthropic's Claude Code best practices describe a plan-first workflow, so an engineer can approve the plan before the agent touches files. A person holds the design, makes the structural calls, and uses the AI to execute them. That keeps a codebase coherent as it grows, which is the practice we mean by agentic coding: an engineer directing AI agents through real work while owning every structural decision.
In all five, AI writes and a person decides what ships. The speedup holds up because the team kept the parts that pure vibe coding throws away.
Vibe coding tools: the three categories that matter
A note on framing first: this category changes monthly. Treat the names as examples of stable categories rather than a fixed leaderboard, because product rankings go stale long before the underlying architecture changes. Focus on how much of your codebase a tool can see and how much control it leaves in your hands.
Most vibe coding tools fall into three classes:
- AI-native editors and IDE extensions. Tools like Cursor and GitHub Copilot live where you already work and see your open files and often your whole project. They sit between autocomplete and full agent, which makes them the workhorse for AI-assisted development: fast, in context, and easy to keep a human in the loop.
- Terminal-based coding agents. Tools such as Anthropic's Claude Code run in your terminal, read the whole repo, run commands, and handle multi-step tasks like a developer would. They are the closest thing to "describe it and it does it," and the most context-aware, which is why they do the most on real codebases. This is the agent end of the spectrum.
- Prompt-to-app builders. These generate a whole project from a description. They are the purest expression of vibe coding and the best fit for its sweet spot: prototypes, demos, and throwaway tools where speed matters and the stakes are zero.
Cutting across all three is the Model Context Protocol (MCP), an open standard Anthropic released in November 2024 to connect AI tools to the systems where your data and tools actually live. It matters here because context is the whole game: an agent that can reach your database, your docs, and your internal services through a standard interface writes code that fits your reality instead of guessing at it. MCP is becoming the connective tissue of this space, and it is worth understanding on its own terms.
The selection criteria that survive the news cycle:
- How much context can it see? Whole repo beats open files beats a single prompt. More context, better code.
- How much control does it give you? Can you review before it acts, scope what it can touch, see what it changed? Control is what keeps the speed safe.
- Does it fit your existing workflow? A tool you have to leave your stack to use gets used less and trusted less.
For a fuller, vendor-neutral breakdown of the categories and how to choose, see our guide to AI coding tools. Short version: pick the tool that sees the most of your context and gives you the most control, and ignore the demo that promises you never have to look at the code.
When to vibe-code and when not to
The decision is mostly about stakes and reversibility. Vibe coding trades understanding for speed. That trade is a bargain when a mistake is cheap and a disaster when it is not.
Vibe-code freely when:
- You are prototyping to test an idea, and the code is going in the bin either way.
- You are building an internal tool with low stakes and a small blast radius.
- You are exploring an unfamiliar API or language and want a working example to learn from.
- You are doing one-off scripting (a data transform, a quick automation) where you will read the output, not the source.
These are Karpathy's original case: throwaway software where giving in to the vibes costs nothing. A few vibe coding examples that fit:
- The CSV-totals CLI from the workflow above.
- A clickable demo to put in front of users before anyone writes a spec.
- A one-off script that reshapes a data export, which you check by reading the output.
Do not vibe-code when:
- The code touches authentication, payments, personal data, or anything irreversible. The Veracode numbers are not a suggestion here.
- The work will be maintained by a team for years. Someone inherits the knowledge gap, and it is expensive.
- The change lives deep inside a complex system whose constraints the AI cannot see. This is the METR case, where AI goes negative.
- You cannot describe "done" clearly enough to judge the result. If you can't tell whether the output is right, you can't steer it, and you're just hoping.
The reliable instinct: the higher the stakes and the longer the code lives, the more it needs a human who understands it, which means the more it needs real engineering and the less it can run on vibes alone. Vibe coding is a fast way to a first draft. Whether that draft is allowed to ship is an engineering decision, and on anything that matters, the answer is "not until a person stands behind it."
Vibe coding is a real and useful mode, the speed is genuine on greenfield tasks, and the failures are just as real when nobody reads the diff. Teams that come out ahead match the mode to the stakes, move fast with AI where mistakes are cheap, and keep human code review, automated testing, and security checks wherever mistakes are expensive. Our AI software development teams work on that exact split every day, pairing agent speed with senior ownership. It is what the modern AI software engineer actually does and the engineering bet we are compounding.

CTO and Co-founder at Idealogic. Directing engineering, systems architecture, security, and full-stack delivery across web, mobile, and blockchain.
Frequently asked questions
Vibe coding is writing software by describing what you want in plain language and letting an AI coding tool generate the implementation, then steering by results rather than reading every line. Andrej Karpathy coined the term in February 2025 to describe a loop where you see stuff, say stuff, run stuff, and copy-paste stuff until it works. In its purest form you accept code without fully reviewing it, which is fine for throwaway prototypes and a real liability for anything that ships.
No. AI-assisted development is the broad practice of using AI tools while you still own and review the code. Vibe coding is the specific mode where you deliberately stop reading the output and judge the program by whether it runs and behaves. Vibe coding is one point on the AI-assisted spectrum, the one with the least human oversight, and the gap between the two is where the risk lives. Vibe coding vs traditional coding is the same question one step further: in traditional coding a person writes and reads every line.
Is vibe coding bad? Not for throwaway prototypes, but pure vibe coding isn't safe for production. Veracode's 2025 analysis of over 100 models found 45% of AI-generated code samples introduced an OWASP Top 10 vulnerability, with no improvement as models got more capable. Production-grade work needs human review, tests, security scanning, and an architecture a person understands. You can use AI heavily to get there, but you cannot skip the review and call it done.
It depends on the task. A controlled GitHub study found developers finished a greenfield HTTP server in JavaScript 55% faster with an AI pair programmer. A 2025 METR randomized trial on experienced developers working in large, mature codebases they knew well found the opposite: AI made them 19% slower, even though they believed it sped them up. METR's 2026 follow-up on newer tools reported a possible speedup but flagged selection bias in its own estimate. AI helps most on unfamiliar or boilerplate-heavy work and helps least where deep context already lives in someone's head.
In late 2026 the main categories are AI-native editors and IDE extensions (Cursor, GitHub Copilot, and similar), terminal-based coding agents that read your repo and run commands (such as Anthropic's Claude Code), and prompt-to-app builders that generate a whole project from a description. The Model Context Protocol, an open standard Anthropic released in November 2024, increasingly connects these tools to your real data and systems. Pick by how much context the tool can see and how much control it gives you, not by the demo.
Avoid pure vibe coding on anything touching authentication, payments, personal data, or irreversible actions; on code that has to be maintained by a team for years; and on changes deep inside a system whose constraints the AI cannot see. In those cases the time you save writing is dwarfed by the time you lose debugging code nobody understands. Prototypes, internal tools, and exploration are where it pays off.
Treat the prototype as a clickable specification rather than a foundation you deploy directly. Start with an architecture and security audit to inspect data boundaries, authentication flows, and third-party dependencies, then extract clear domain contracts and automated tests around the behaviors worth keeping. Most teams keep the validated user workflow and rewrite or harden the data access, auth, and error-handling layers before putting real users or sensitive records behind it.
Each prompt solves the immediate request without holding the full system design in view, so the model often writes a fresh helper instead of reusing or refactoring existing logic. GitClear's 2025 study of 211 million changed lines measured a fourfold jump in duplicated code blocks alongside falling refactoring rates. Without a human reviewing diffs and enforcing shared abstractions, duplicated paths multiply until small bug fixes require hunting down three slightly different implementations.
More from the journal

Merge vs Paragon in 2026: Unified API, Embedded iPaaS & TCO
Engineering and 36-month TCO comparison of Merge.dev vs Paragon vs Nango in 2026: per-linked-account vs per-tenant billing at 800 connections, Common Models vs ActionKit, an AWS KMS envelope OAuth2 vault on PostgreSQL FORCE RLS, and itemized payback math.

Portkey vs LiteLLM in 2026: AI Gateways, Latency & TCO
Engineering and 36-month TCO comparison of Portkey vs LiteLLM vs Helicone and compiled Go/Rust AI gateways in 2026: streaming overhead, enterprise SSO walls, PostgreSQL 17 FORCE RLS token-budget ledgers, and 120M req/mo math.

Inngest vs Trigger.dev in 2026: Queues, Agents & TCO
Engineering and 36-month TCO teardown of Inngest vs Trigger.dev in 2026 alongside Hatchet and BullMQ: serverless HTTP step push vs checkpointed container tasks, PostgreSQL 17 SKIP LOCKED outboxes, and owned VPC math.