
What Is Vibe Coding? How It Works, When to Use It, and What to Check
Imagine describing a simple reading-list app to an AI and watching a first version take shape: a title field, a Mark as read button, a filter that seems to work. So, what is vibe coding, and what might that convincing screen be hiding?
The uncomfortable part comes after the demo works. Could you explain what the AI changed to get there, or fix it when the next request breaks something? Part of the confusion is the term itself. Andrej Karpathy introduced it in February 2025 for a loose way of building with AI, accepting generated changes without closely reading them. Today it also covers conversational AI-assisted building more broadly, and the two meanings overlap without being identical.
The label alone does not tell you whether software is ready for anyone else. A throwaway experiment and an app that holds real users’ data need very different levels of oversight. To make that concrete, this guide uses one question, the Understanding Line: what did the human review, understand, and verify? A three-level oversight model built for this guide scales the answer to the stakes.
Vibe coding happens in several kinds of tools, from AI code editors and IDEs to browser-based app builders and command-line agents. This guide covers the prompt-and-refine loop behind it, where it fits, what can go wrong, and what to check before you share anything.
What Is Vibe Coding? Meaning, Origin, and the Original Idea
Vibe coding means building software by describing what you want to an AI tool and judging the result by how it behaves, without closely reading the code it writes. The catch sits in that last part: a prototype can look finished long before anyone has checked what is inside it.

Underneath sits a large language model (LLM) that turns plain-English prompts into code. Many tools add an agent that can also edit project files and run commands, but that alone does not make the work vibe coding. What counts is how closely the person reads the output.
The setting can be an AI code editor (for that category, see what is an AI code editor), a browser-based app builder, or a command-line agent.
What Vibe Coding Looks Like in Practice
Vibe coding shifts much of the attention away from writing and inspecting code toward describing what an application should do. The user gives an AI tool a prompt, reviews the result on screen, and asks for changes until the application behaves closer to the intended outcome.
In a hands-off workflow, suggested code changes may be accepted without examining the diffs, which show exactly what was added, removed, or modified. When an error appears, the user may paste the message back into the AI tool and ask it to fix the problem rather than investigate the underlying code. If the first attempt fails, another prompt or a workaround may keep the process moving.
This can make early experimentation feel remarkably fast, especially when building a small prototype or a disposable personal project. But a feature that appears to work is not necessarily reliable, secure, or maintainable. The less someone understands about the generated code, the harder it becomes to judge what might break or whether the application is safe to share.
That is why the distinction between experimenting with an idea and building software others will depend on matters. Vibe coding can be useful for exploring possibilities, but accepting code without understanding it should not be treated as sufficient validation for a production application.
Strict Original Meaning vs. Broader Current Use
The phrase spread fast, and its meaning drifted with it. On March 19, 2025, Simon Willison pushed back against applying it to every kind of AI-assisted coding. His line: vibe coding is building software with an LLM without reviewing the code it writes. Review, test, and understand what the AI produced, and that is AI-assisted programming.
Plenty of current explainers still use the label for any conversational AI-assisted building, so no single definition is universal. The strict sense is the baseline here.
No-code and low-code platforms are a different tradition: typically visual builders and prebuilt components, where vibe coding usually produces code you can open and edit. They can overlap, since many AI app builders mix both, so the product alone settles nothing.
So when someone says a team “vibe coded” a product, ask what anyone reviewed before it shipped. That answer, not the tool’s name, tells you which meaning is in play.
How Vibe Coding Works: Prompts, AI Coding Agents, and the Feedback Loop
Type “add a Mark as read button” into an AI coding tool, and a moment later the button may be sitting on your screen. Whether it works, and what else changed to put it there, is a separate question.
Most vibe coding sessions, whether people call them natural language programming or prompt-driven development, follow the same four-step loop:
| Stage | What happens |
|---|---|
| 1. Describe | You state the outcome in plain language, ideally with a constraint or two. |
| 2. Generate / edit | The AI proposes new code or changes to existing files. |
| 3. Run / observe | You run the result and note what works and what breaks. |
| 4. Refine | You report the exact problem and ask for one focused change. |
Developers who use AI more carefully run a similar loop. The difference is the oversight around it: reading changes before accepting them, running tests, and keeping each request narrow.
From Autocomplete to AI Coding Agents
Autocomplete suggests the next few words or lines as you type, and you decide what to keep. AI coding agents take on a whole task instead. Depending on the tool and its permissions, an agent can search a project, edit several files, run commands, and read the results before trying again.
Two vendors show what that looks like. Cursor’s documentation says its Agent can search a codebase, edit multiple files, and run terminal commands. GitHub’s announcement of Copilot agent mode in VS Code describes it responding to compile and lint errors and monitoring terminal output as it iterates. Those are the vendors’ own descriptions, not independent tests, and not every assistant goes this far.
That chain is what people mean by an agentic coding workflow. One instruction can set off searches, edits, and commands, so the change you review may be larger than the change you asked for.
Why Context and Scope Matter
A model can only weigh the text inside its context window: your prompt, the conversation so far, and any files or command output the agent has pulled in. Agents can fetch more as they work, but everything they fetch competes for the same space.
In a long session, an early requirement can get harder for the model to keep in view. Some people call this “context rot,” an informal label rather than a measured effect.
Scope is the part you control. “Build me a book app” leaves the agent guessing about features, layout, and storage. “Add a title field and a Mark as read button to the reading-list page, and leave the saved data alone” gives it a narrow target you can check. Focused tasks, the right files, and constraints stated where the agent can see them are most of what context window management means in practice.
Regression trap. The reading-list filter throws an error, so you paste the message into the chat and approve whatever fix comes back. The error may vanish while something that worked earlier quietly breaks. Developers call that a regression. Before accepting a change, look at which files it touched, read the diff, and test the filter again.
Nothing in the loop checks whether you understood the change. The tool keeps generating either way, and that gap is where the line between vibe coding and AI-assisted engineering sits.
Vibe Coding vs. AI-Assisted Engineering: The Understanding Line
The tool does not decide the label. Two people can open the same AI editor and type almost the same prompt. One accepts every change on sight; the other reads, tests, and questions each one. By the strict definition, only the first is vibe coding.

Simon Willison’s distinction from earlier, that code you have reviewed, tested, and understood is AI-assisted programming rather than vibe coding, has a close relative in the writing of engineer and author Addy Osmani. He separates unchecked generation from AI-assisted engineering and ties the second to design documents, reviews, and tests.
Both arguments come down to one question, which this guide calls the Understanding Line: does the human understand and verify what the AI produced? Vibe coding vs AI-assisted coding is a question about the human, not the software.
Traditional coding is not automatically on the safe side of that line. Writing by hand keeps the author close to the implementation, but it guarantees neither understanding nor correctness. With AI, that closeness has to be earned through review.
Key insight: the Understanding Line is an editorial test, not an official definition. Code you reviewed and understood sits on one side of it; code you accepted unread sits on the other. The same tool can put you on either side, sometimes in the same afternoon.
The Three Levels of Human Oversight
The UK’s National Cyber Security Centre (NCSC) describes vibe coding as a spectrum and advises matching oversight to the code. The three levels below are this guide’s own synthesis, not NCSC’s taxonomy or a published standard.
Level 1: Casual or pure vibe coding
- Human role: gives high-level prompts, does little or no code review, and judges the output mainly by what it does on screen.
- Best fit: a throwaway weekend experiment or an isolated demo with synthetic data.
- Minimum oversight: no sensitive data, no real users, no production credentials. Be ready to discard the result.
Level 2: Guardrailed prototyping
- Human role: scopes each task, runs the result, checks visible changes, keeps version history, and reviews the important diffs.
- Best fit: a small MVP, a UI prototype, a personal tool, or a limited internal utility.
- Minimum oversight: acceptance criteria, Git checkpoints (saved snapshots you can return to), basic tests or user-flow checks, a sandbox (an isolated test environment), and no secrets in prompts.
Level 3: Spec-driven or disciplined AI-assisted engineering
- Human role: defines requirements and design, tracks tasks, reviews the code, runs tests, and keeps human approval over important changes.
- Best fit: long-lived, shared, or higher-consequence software.
- Minimum oversight: documented requirements, design review, qualified code review, testing, dependency and security checks, and approval gates.
Level 1 is closest to vibe coding as Karpathy first described it, and level 3 is AI-assisted engineering. Level 2 sits between them, and it moves toward engineering as the share of the output you actually read goes up.
Four questions help set the level: how sensitive the data is, how exposed the software is to outsiders, how costly a failure would be, and how easily you could undo it. The more sensitive or exposed the system, the less autonomy the AI gets and the more human-in-the-loop validation it needs.
The hypothetical reading-list app sits at level 1 while it holds sample entries and no real users. Give it real accounts and it has to move up, because both the data and the exposure change. Neither level is a badge or an insult. The useful questions are how much the human understood and how much the project risks.
Where Spec-Driven Development Fits
Spec-driven development can support level 3 by writing down requirements, design decisions, and tasks before the code exists. Kiro IDE organizes feature work this way, with three files per feature: requirements.md, design.md, and tasks.md. Kiro’s documentation describes a workflow in which you can review each file before the next one is generated.
Having those files does not put a project at level 3, though. Specs add structure, not proof: documented requirements do not guarantee correct code. A gate only works if the person standing at it actually reads what they are approving.
Vibe Coding Tools: AI Code Editors, Agents, and App Builders
Ask two AI tools for a small web app and you can get two very different experiences. One builds it in a hosted workspace. The other opens an existing repository, edits several files, and may run commands along the way.
Both get called vibe coding tools, but they are not interchangeable. The better fit depends on where your code lives and how much of the work you want to see.
Four Practical Categories of AI Coding Tools
Rather than ranking products, it helps to group these tools into four practical categories based on how you work with them. The examples are illustrations, not recommendations:
- Browser-based app builders and cloud agents: Representative examples: Replit’s AI agent and Blackbox AI. Useful starting point – building a small web app or clickable prototype through conversation in your browser. A hosted workspace and built-in deployment save setup time, but check data handling, access permissions, code export options, and review controls before you commit.
- AI-native code editors and IDEs: Representative examples: Cursor and GitHub Copilot agent mode. Useful starting point – working directly inside a local or hosted code repository, with multi-file context and iterative editing. You can see diffs and project files directly, though the agent’s commands and edits still need close supervision.
- Command-line coding agents: Representative examples: Claude Code. Useful starting point – multi-step tasks inside an existing repository and terminal-centered workflows. Terminal agents can reach your local files and shell commands, so limit their permissions and keep a way to undo changes.
- Spec-driven workflows: Representative examples: Kiro IDE. Useful starting point – features that benefit from written requirements, design artifacts, and discrete task lists before code is generated. Expect more planning up front, in exchange for clearer traceability and explicit review checkpoints.
Why the Categories Overlap and How to Judge Fit
The groups overlap because they describe how you use a tool, not everything it can do. Claude Code is best known as a terminal tool, yet its documentation lists terminal, IDE, desktop, and browser surfaces. Blackbox AI blurs the lines too: its own site describes a VS Code extension, an AI-native IDE, a command-line interface, and browser-based agents. Compare the specific interface you plan to use, not a product’s headline label.
Popularity and a vendor’s “production-ready” label say little about fit. Before choosing, ask what the tool can touch, where your code and prompts go, and how you would undo a bad change.
Cost and Control: Free and Open Source AI Code Editors
If budget matters most, free AI code editors are a low-pressure way to try the workflow. Free tiers can limit usage, models, or agent features, so read the current terms on each tool’s official page.
Open source AI code editors answer a different question: how much of the setup you can inspect and change. They do not settle where your prompts go. An open source editor can still send code to an outside model service, so check the model provider and data settings before pasting in anything private.
Your first tool does not have to be your last. Whatever you pick, the Understanding Line still applies: can you see what the tool changed, and could you explain it? A tool that makes that harder deserves more caution, however smooth it feels.
How to Start Vibe Coding: A Five-Step Workflow
Picture the first working version of the reading-list app: you add a title, tap Mark as read, and filter what is left. Then the temptation arrives. Accounts, sharing, recommendations, each one feeling like just one more prompt.

The workflow below is built to resist that pull. It walks the hypothetical reading-list app through five steps to show how a prompt-to-code workflow can run. It is an illustration, not a record of something we built and tested. One rule comes first: do not run your first experiment inside a business-critical repository or with real customer data, so a bad result costs you nothing.
- Pick one small outcome and define “done.” For the reading-list app, “done” means three actions work: add a title, mark it as read, and filter the list. Write down what is out of scope, such as accounts, sharing, and recommendations, so a stray prompt does not pull the project there.
- Set up a safe workspace. Use a disposable project or a sandbox (an isolated test environment), whether a browser-based builder like Replit or an editor like Cursor. Turn on version history before you ask for anything big, using Git or the platform’s own checkpoints where it has them. For a fuller example on the editor route, see building a web app with an AI IDE.
- Ask for one working slice. Give the AI a concise goal, its constraints, and acceptance criteria (the conditions that tell you the result is right). For the reading list, that might be: “A single page with a title field, a Mark as read button, and an unread filter. Sample data only. No accounts.” Ask for the smallest version first, not the whole application.
- Run it and request one focused change. Try each action yourself, describe exactly what went wrong, and ask for one fix at a time. That is what keeps iterative prompt debugging from turning into guesswork. After each reply, look at which files changed. The agent’s explanation of its own fix is a lead, not proof. The proof is whether the behavior is now right.
- Save the working state, then review before sharing. Commit it (save a snapshot in Git, or use the platform’s checkpoint) so you have a version-control checkpoint to return to. Then read the changed files, run the three actions against your definition of “done,” and only after that show the prototype to anyone.
The moment the app works is the moment its risk can change. Nothing in the five steps stops you from sending the link to a friend, adding a sign-in form, or pasting in your real reading history. Each of those moves the project up the oversight levels described earlier, and review habits that were enough for sample data may not be enough for the next version. Before the first real user or the first real data, decide which level the app now belongs to.
Where Vibe Coding Fits: Use Cases and Project Boundaries
Project size is a poor guide to whether vibe coding is a good idea. A short script that rewrites a shared spreadsheet can do more harm than a sprawling game that only you will ever play. The better questions are who is affected when it breaks and what data it touches, so the cases below run from low stakes to high.
- Personal utilities and disposable scripts: A file renamer or a Friday reminder that only you use is the safest place to begin. Run it on files you can afford to lose, because a script that moves or deletes things can do real damage when it misbehaves.
- UI prototypes and pre-launch experiments: Mock up a dashboard or test a sign-up flow with sample data and no real accounts. NCSC counts prototypes and demos among the lower-risk cases, but an MVP that collects real people’s information is a different project.
- Python scripts and exploratory data work: Cleaning a CSV, converting formats, or plotting a chart are small jobs you can check. An analyst might ask for a script that merges two sample exports and flags repeated rows, then test it on rows whose answers are already known, including blanks and near-matches. Stick to synthetic or approved data, and when you reach the choice of workspace, see AI code editors for Python.
- Low-exposure internal helpers: A small dashboard that two teammates check can qualify when access is narrow, the data is unremarkable, and a named person can fix or retire it. Being internal-only does not make a tool safe by default, so keep its permissions narrow.
- High-consequence systems: Login, payments, regulated decisions, and anything holding sensitive personal data need a reviewer who reads the code, not just the prompts. NCSC guidance lists authentication, sensitive personal data, and credentials among the higher-risk areas. AI can still help here, but pure, low-review vibe coding is the wrong fit when a defect could cause financial, operational, or legal harm.
Imagine the tool failing tomorrow and ask who would have to deal with it. If the answer is you, and the fix is deleting it, the casual approach was fine. If the answer is a colleague who never saw the code, add two lines to the project’s README file (the page that introduces a project) before anyone depends on it: who owns it, and how to switch it off.
Common Vibe Coding Mistakes and Security Risks
A vibe-coded app can pass every check your eyes can make. The page loads and the buttons respond. What the screen cannot show is whether the code leaks a key, pulls in an unvetted package, or gives an agent more access than the job needed. The Canadian Centre for Cyber Security describes risks like these in its guidance on vibe coding. Not every project will meet all of them.
- Broad requests and repair loops: “Build the whole app” leaves the agent guessing at most decisions. The Canadian guidance notes that fixing one issue can add unnecessary complexity. Keep requests narrow, and restart with a short summary when fixes stop helping.
- Approving changes you did not read: A fix can look right on screen while touching files you never opened. Read the diff, note which files changed, and test the behavior the change was meant to fix.
- More access than the task needs: Agents may read repository files, error output, and web pages, and text inside them can carry instructions aimed at the agent itself, an attack called prompt injection. Grant only the files and commands the job requires, use a sandbox for unfamiliar projects, and approve package installs yourself.
- Secrets and private data: API keys, passwords, proprietary code, and customer records do not belong in a service you have not approved. Retention and training practices vary by provider and plan, so read the terms first. Keep credentials out of client-side code and the repository, store them in your platform’s secret storage, and replace any key that may have leaked.
- Packages the model invented or got wrong: A model may suggest a package that does not exist, or an old version with known flaws. Attackers can register an invented name and publish harmful code under it, an attack called slopsquatting. Check the exact name, publisher, and version in the official registry before installing. A clean license on a package does not settle questions about the AI-generated code itself.
- A prototype that hardens into fragile software: Patch after patch leaves duplicated logic and files that lean on each other in ways nobody planned. Keep files small enough to read, and remember that a demo that runs says little about maintainability.
Can the model that wrote the code vouch for it? Not on its own. The Canadian guidance describes a single model’s self-review as a weak control, and models can lean toward agreeing with whoever is prompting them. A second AI tool adds another opinion, not proof. Independent tests, security checks, and a qualified human reviewer carry the weight as the stakes rise.
None of this started with AI. Leaked keys, careless dependencies, and tangled code all predate it. What is different is that you can end up with a lot of code you never wrote, so you lack the instinct that writing it gives you. Before approving any change, ask which risk above it could touch. If the answer is secrets, access, or packages, slow down and look closely, because mistakes there reach beyond your own project.
How to Validate AI-Generated Code Before Sharing or Deployment

The reading-list app looks done: titles get added, the Mark as read button responds, the filter filters. A screen that looks right is a start, not proof, because it only shows that the path you tried worked. Six checks cover the rest, each one stricter as the stakes rise.
- Expected behavior: on a prototype, run the main flow with sample data, then feed it a missing or invalid input. For higher-risk software, write acceptance criteria first and cover edge cases with repeatable tests.
- Changed files: on a prototype, read the diff and ask the agent to explain each change; the explanation helps, but it is not verification. For higher-risk software, a qualified developer reviews the code, the architecture, and the permissions.
- Dependencies: on a prototype, confirm every suggested package exists and fits your framework. For higher-risk software, add vulnerability scanning, pinned versions, and a provenance and license review, and do not let the agent install packages on its own.
- Secrets and data: on a prototype, use fake data and keep credentials and private records out of unapproved services. For higher-risk software, add secrets management, least-privilege access, and a review of the provider’s data terms. Local or open source setups can add control, but open source alone guarantees nothing about privacy or security.
- Isolation: on a prototype, work in a disposable project or sandbox, not a business-critical repository. For higher-risk software, test in a separate staging environment with limited access and monitoring, turn off auto-accept for important operations, and require approval before deployment.
- Recovery: on a prototype, save a version-control checkpoint before any large change. For higher-risk software, add tested rollback, protected backups, and a named owner for maintenance.
A Minimum Check for a Small Prototype
Back to the reading-list app. Add a title and confirm it appears, mark it read and watch the status change, then apply the unread filter and check that read entries disappear. Finish by submitting an empty title and seeing what breaks.
Then open the changed files and look for edits unrelated to those features. If an important change makes no sense to you, ask someone with the technical background before you share the app.
A Good First Milestone: A prototype is moving in the right direction when its core actions behave as intended, its important changes are understandable, and anything that has not been verified stays out of the next release.
When a Qualified Review Is Necessary
NCSC’s guidance names four oversight activities: review what the AI produces, understand the code, check it for vulnerabilities, and verify that it does what you expect. When you cannot do the first two yourself, reviewing AI-generated code is a job for someone qualified.
Real users, personal data, logins, payments, or long-lived shared code are the signals to escalate. There, human-in-the-loop validation becomes a requirement, backed by tests that trace to documented requirements and by someone who knows what the test coverage leaves out. A generated test report is no substitute.
A qualified reviewer may also add static and dynamic security testing (SAST and DAST); beginners are not expected to configure them.
Before release, someone has to own the decision. Who accepts responsibility for this app, what evidence backs that choice, and what happens if a defect shows up after launch? A prototype does not have to become a product just because it works; keeping it as a demo, or rebuilding it under a spec-driven process, can be the sound call.
Related Posts:
AI-Generated SQL Risks and Limitations
AI Code Assistants
Best AI Coding Assistants for Enterprise Teams
Frequently Asked Questions About What Is Vibe Coding?
The first question is easy to type: what is vibe coding? The next ones are harder, and they tend to arrive once a prototype works: can I do this without coding experience, would my employer allow it, and who answers if something goes wrong?
Do you need to know how to code to try vibe coding?
No, not for a small, low-stakes project with fake data. What you do need is the ability to judge the result: noticing when something breaks, describing the problem clearly, and knowing when you are out of your depth. Those skills grow with practice. Once real users, private data, or logins enter the picture, bring in someone who can review the code.
How is vibe coding different from AI-assisted coding and no-code tools?
It comes down to who reads the code and whether you work with code at all. In vibe coding, the AI writes the code and the person mostly judges how the app behaves. In AI-assisted coding, the person still reviews, tests, and understands what the AI wrote. No-code tools usually work through visual builders and prebuilt components, and some AI app builders mix both approaches.
Can you learn to code by vibe coding?
Only if you do more than vibe. Strict vibe coding means not reading the code, and what you never read is hard to learn from. To learn, slow the loop down: ask the AI to explain each change, read the diffs, guess what a change will do before you run it, and fix small bugs yourself. That is AI-assisted programming, the version more likely to teach you something.
Can you use vibe coding at work?
Sometimes, for low-risk work, and only within your employer’s rules. Prototypes, demos, and internal tools with limited exposure sit at the lower-risk end in NCSC’s guidance, while anything touching credentials, authentication, or sensitive data needs far more oversight. Never paste proprietary code or customer data into an AI service your organization has not approved, and ask who reviews the code before anyone else relies on it.
Can vibe-coded software go into production, and who answers for it?
It can, once the code gets the same review, testing, and approval any production software needs. The person who ships it stays responsible either way: the Canadian Centre for Cyber Security makes the point that the tool generates the code, but accountability for directing the work and validating the results remains with the user. If nobody can explain what the code does, it is not ready to ship.
Final Takeaway: Is Vibe Coding a Buzzword or a Useful Practice?
The reading-list app does not change when a friend asks to use it. The code stays exactly as it was. What changes is the price of a mistake, which is why the same workflow can be fine on Friday and a poor choice on Monday.
So is vibe coding a buzzword or a useful practice? Both. The label is loose and may keep shifting, but describing, running, and checking is a habit worth learning on small projects, where mistakes are cheap and reversible.
Can vibe coding replace software engineers? Neither NCSC nor the Canadian Centre for Cyber Security addresses careers; both address risk, and both ask for more qualified human review as stakes rise. The future of vibe coding, label included, is an open question; who answers for the result is not.
Grade the stakes, not the label. A weekend experiment and a payments system do not need the same workflow, whatever you call the method.
Before your next project, write down where it stops: what data it may touch, who may use it, who can explain it when it breaks, and what gets checked before it leaves your machine. A vibe-coded prototype is a draft, and drafts are worth making. The mistake is rarely in making one; it is in handing it to other people as if it were finished.



