What Is Vibe Coding? How It Works and Where It Breaks

What is vibe coding?
Vibe coding is building software by describing what you want to an AI model (the kind of program behind ChatGPT) and accepting the code it writes, judging the result by whether it works instead of reading the code.
Andrej Karpathy, a former Director of AI at Tesla, coined the term and described it as “not too bad for throwaway weekend projects”. In our view it breaks when the program holds other people’s data: AI-written code can work and still hide security flaws.
Vibe coding is one way of building software with AI coding tools, programs that use a large language model to write code for you. On a scale of how much AI code you check, it is the far end: you accept what the AI writes and do not review it.
At the other end sits AI-assisted coding: the AI writes, and you check each change.
A February 2025 post gave the habit a name
Karpathy coined the term in a post on X on 2 February 2025. He wrote of “a new kind of coding” where you “fully give in to the vibes … and forget that the code even exists”.
He wrote that he clicks “Accept All” every time in Cursor, an AI coding tool, and no longer reads the diffs, the lists of changes the AI made.
In March 2025 Simon Willison drew the line: building software with an AI model “without reviewing the code it writes”. If you review the code, test it thoroughly and can explain how it works, “that’s not vibe coding, it’s software development.”
Some use the word for any AI-prompted coding. Collins, in its Word of the Year 2025 post, describes it as using AI “prompted by natural language to write computer code”. This article keeps the narrow meaning: no review of the code.
The loop: describe, run, judge, repeat
You want a web page that keeps your reading list. You type a prompt, the instruction you give the AI: “Make me a page where I can add links and tick them off.” The AI writes the code and the page works on the first try.
You ask for a change: “Show the unread ones first.” The page now shows an error. You paste the error back and the AI fixes it. You never opened a file of code; your only test was whether the page did what you wanted.
That is the loop: describe, the AI writes, you run it, you judge the result, you describe the fix.
The same tools, a different habit
AI-assisted coding starts the same way, then splits: you read the change, test it, and accept it or ask for a fix.
Agentic coding is a separate idea: an agent (a program that uses an AI model to read files, change them and run commands on its own) plans and runs several steps itself, and you may or may not review what it does.
In February 2026 Karpathy said his favorite name for agent work done “with more oversight and scrutiny” is “agentic engineering”, to tell it apart from vibe coding. More in our agentic and autonomous coding theme.
Two kinds of tools: editor agents and browser app builders
You meet vibe coding in two kinds of tools. Agents such as Cursor and Claude Code work inside your editor or terminal and change your project’s files. Builders such as Replit and Lovable make a whole app in the browser from a description.
The tool does not decide whether you vibe code. Whether you read and check the changes does.
Three ways it goes wrong
- Flaws you cannot see: say your reading list is online and the AI left its database open to anyone. The page still works, and anyone can read your list.
- Code you cannot follow: the code “grows beyond my usual comprehension”, Karpathy wrote, and he sometimes works around bugs the AI cannot fix.
- Other people’s data: if the page gets a sign-in step, a mistake exposes other people’s information too.
If you only wanted to know what vibe coding is, you can stop here.
What the measurements say about AI-written code
Security company Veracode gives AI models short coding tasks that each hide a known security trap, such as letting an attacker run their own script inside a web page.
In its October 2026 report, about 38% of the tasks, more than a third, came back with a known vulnerability (a flaw an attacker can use) when the prompt gave no security instructions. Veracode sells security tools and tests code snippets and not whole apps. Still, code that runs is not proof that it is safe.
A package is a ready-made library of code your project downloads. In a 2025 study at the USENIX Security conference, Spracklen and colleagues had AI models write 576,000 code samples. On average, at least 5.2% of the package names that commercial models (paid products from companies) suggested did not exist, and open-source models (free to download) did worse.
This is a hallucination: the AI states something plausible that is not real. The authors warn this is a new kind of package confusion attack. An attacker could publish a real package under the invented name, and a project would install the attacker’s code if the developer installs it without checking.
The research group METR ran a randomized trial in early 2025. Sixteen experienced open-source developers worked on tasks in projects they knew well, mostly with Cursor. Tasks took 19% longer when AI was allowed, although the developers believed it had made them faster.
METR’s February 2026 update says its newer data is too unreliable to show today’s effect. So the 19% describes early 2025. METR believes developers are more sped up now than then, but calls its data very weak evidence of how much.
What to take from the trial: these developers felt faster while being slower, and it covered AI tools in general and not vibe coding.
Anthropic researchers Shen and Tamkin (January 2026) randomly split mostly junior engineers, who were learning a Python library, into a group with an AI assistant and a group without. The AI group scored nearly two letter grades lower on a quiz, with the largest gap on debugging questions.
People who asked the AI conceptual questions or asked for explanations scored higher than people who handed it the work. Those were small groups, the largest of seven people. Anthropic makes an AI coding tool itself.
One real case: on 2 February 2026 the security company Wiz reported that Moltbook, a platform whose founder said he “vibe-coded” it, left all its data open to reading and writing.
A database key (a string that tells the database which project a request comes from) sat in the page code that every visitor’s browser downloads, so anyone could copy it.
The database also had no working row-level rules, the settings that say which rows each visitor may read, so the key opened everything.
Wiz also saw API authentication tokens (keys that let a program act for its owner) exposed, a separate thing from the database key. With them, an attacker could fully impersonate any agent on the platform. Moltbook’s team fixed it within hours, with Wiz’s help. This is one case and says nothing about how often it happens.
What to check before you vibe code something real
- Ask who is hurt if the program is wrong. If only you, go ahead. If it holds other people’s data or a login, have someone read that part of the code.
- Look up every package the AI added and confirm it exists and is the one you expected.
- Keep the project in git, a tool that records each version of your code you save, so you can return to the last one that worked.
- Check what the agent can reach: tools connected through the Model Context Protocol let it use data and services outside your project.
- Keep bigger jobs, such as an AI code migration of an old codebase, out of vibe coding: there someone reads every change.
- Test what you cannot see on screen, such as who can read which data.
- Use the AI to understand code you do not follow, instead of only handing it the work.
For a step-by-step first build with these checks, see our guide to vibe coding your first app step by step.
The limit: a working page is not a safe page
A reading list is easy to judge by eye. Who may read which data is not visible on any screen.
When it breaks: in our view, when what matters cannot be seen by running it, such as security, other people’s data and code you must change later.
None of these sources compares people who read the AI’s code with people who did not, so they do not isolate the effect of skipping review. In our view, vibe coding skips the review that might catch these problems.
Cheat sheet
The article on one page: open it full size, save it or share it.

AI-assisted content, human-reviewed. Images AI-generated. Editorial Standards · Our Editors