Blog ·
What is vibe coding?
Vibe coding means building software by telling an AI what you want in plain words and using what it writes without reading the code. Here is where the term came from, what it is good for, where it goes wrong, and a short Python program that runs fine and still gets the answer wrong.
The short answer
Vibe coding is building software by telling an AI what you want in plain words, running what it writes, and never reading the code. When something breaks, you tell the AI and it tries again. You judge the result by one thing: does it seem to work?
Collins Dictionary, which made vibe coding its Word of the Year for 2025, says it "refers to the use of artificial intelligence prompted by natural language to write computer code". IBM calls it "a new and loosely defined term".
What makes it vibe coding is not the AI. It is that nobody reads the code. The programmer Simon Willison defines it as "building software with an LLM without reviewing the code it writes" (an LLM, or large language model, is the kind of AI behind chat assistants). If you read what the AI wrote, test it and could explain it to someone else, he says, "that's not vibe coding, it's software development."
| Vibe coding | Coding with an AI assistant | |
|---|---|---|
| Who writes the code | the AI | the AI, you, or both |
| Who reads it | nobody | you |
| How you check it | does it seem to work? | you read it, test it and can explain it |
| Suits | prototypes, tools for yourself, trying ideas | anything other people rely on |
It is like having a builder put up a garden shed from your description. You check that the door opens and the roof keeps the rain off, but you never look at how it was put together. Often that is fine. You find out otherwise in the first storm.
Where the word came from
The term comes from Andrej Karpathy, a computer scientist, in a post in February 2025. He described a way of working where you "forget that the code even exists": he accepted every change the AI made without reading it, and pasted any error message straight back in. He said it was "not too bad for throwaway weekend projects".
The name caught on fast. A few weeks later, Simon Willison was already worried that people were using it for any code written with an AI's help, which is not what Karpathy meant. Collins named it Word of the Year on 6 November 2025, crediting Karpathy, whom it calls an "AI pioneer", with coining it.
So you will meet the phrase used two ways. The strict meaning is Karpathy's: build with an AI and don't look at the code. The loose meaning is any coding with an AI's help. This page uses the strict one, because the difference between them is the whole point.
What vibe coding looks like
Say you want a page where your class can practise their times tables. A vibe coding session goes round like this:
- Ask. Describe what you want: "Make me a web page that asks times-table questions and keeps score."
- Run. Open what the AI made and try it.
- Report. Say what is wrong ("the buttons are too small"), or paste in the error message.
- Repeat until it looks right.
At no point does anyone read the code. That is the idea, and also the risk.
You can do this in an ordinary AI chat by copying the code it writes into a file. Coding agents go further and work on the files themselves. Anthropic's Claude Code "reads your codebase, edits files, runs commands", and its docs invite you to "describe what you want in plain language". In the ChatGPT desktop app, OpenAI says to pick Codex "for software development", and it can read and change the files in a folder you choose. Both are AI agents: they take steps in a loop until the job is done, which What is an AI agent? explains. Our guides to Claude Code and Codex start you on an empty practice folder, where nothing important can break.
What vibe coding is good for
Simon Willison, who drew the line above, doesn't want vibe coding to become "a negative term". For "low stakes projects and prototypes", he sees no reason not to let the AI run with it. Three uses stand out:
- Trying an idea. Build a rough version in an afternoon to see whether it is worth doing properly. IBM calls vibe coding "helpful to test applications and create prototypes".
- Tools for yourself. A program that renames your holiday photos, or a page that tracks your reading list. Willison would be glad if vibe coding lets "millions of new people" build "their own custom tools".
- A first taste of programming. Willison says the learning curve at the start is "incredibly steep", and that vibe coding "shaves that initial barrier down to almost flat". Some people, he adds, "will get bitten by the programming bug".
A good test before you start is Willison's own. If the code has bugs or security holes, could somebody be harmed, through a damaged reputation, lost money "or something worse"? If the honest answer is no, vibe coding is a fine way to build it. If it is yes, read on.
Where vibe coding goes wrong
Three things go wrong, and they share a root: nobody has read the code.
Mistakes that look fine. A program can run without a single error message and still give the wrong answer, and the AI can miss it too. Claude Code's own guide says "Claude stops when the work looks done". Without a check it can run, the guide goes on, "that makes you the test suite, and every mistake sits there until you happen to notice it." When nobody reads the code, "looks right" is the only test, and some mistakes look right. The next section shows one.
Security and private data. Code can work perfectly and still leave a door open. Willison warns about secrets, "anything that looks similar in shape to a password", such as the key a program uses to reach an online service, and says keeping them safe means "you need to understand how the code works". IBM's list of example security holes starts with "API keys and passwords hardcoded into the application": written into the code, where anyone with a copy can read them.
Veracode, a company that tests software for security flaws, measures the code AI models write. Its July 2026 report found that models now write code with correct grammar, the kind a computer accepts, "nearly 100% of the time", and warned that code which "compiles, runs, and looks clean" can still be open to attack. In its October 2026 round, on tasks built around four common kinds of security flaw, about 38% of the tasks still produced code with a known weakness.
Getting stuck. When something breaks and the AI can't fix it, a vibe coder has one move left: ask again. Karpathy's own fallback was to "ask for random changes until it goes away". IBM notes that code generated by AI "is challenging to debug" (to debug is to find and fix a mistake). If you can't read the code, you can describe what you see but not what causes it, and you can't tell whether the AI's next attempt fixed the cause or only hid it.
A program that runs and still gets it wrong
Here is the first of those problems, up close. We wrote this example ourselves to show the idea: a program that makes a choice nobody asked it to make, and runs without complaint.
A teacher has a week of test scores in a spreadsheet. Some cells are blank, because a student was away that day. She asks an AI: "Work out the class average for Monday and for Friday." The AI turns each blank into None, which is Python's word for "nothing here", and hands back this program:
def class_average(scores):
total = 0
for score in scores:
if score is None:
score = 0 # treat a blank as a score of 0
total = total + score
return round(total / len(scores), 1)
monday = [72, 85, 58, 90, 64, 77, 89]
friday = [81, 79, None, 88, 70, None, 92]
print("Monday's average:", class_average(monday))
print("Friday's average:", class_average(friday))
Output
Monday's average: 76.4
Friday's average: 58.6
It runs. No error message. Monday's average is right, and Friday's looks believable. Would you have noticed anything?
There is one check you can do without reading any code: an average can never be lower than the lowest score. On Friday the lowest score anyone got was 70, so 58.6 must be wrong. That check worked here, but only because you thought of it, and only because the mistake was a big one. A smaller one would slip through.
How reading the code finds the mistake
You don't need to write Python to read this program. Here it is line by line, in plain English:
| Code | What it says |
|---|---|
def class_average(scores): | Make a function (a named set of steps) called class_average that takes a list of scores. |
total = 0 | Start a running total at 0. |
for score in scores: | Go through the scores one at a time. |
if score is None: | If this one is blank, |
score = 0 | count it as a score of 0. |
total = total + score | Add it to the running total. |
return round(total / len(scores), 1) | Hand back the total divided by how many entries the list has, to one decimal place. |
Counting a blank as 0 is not the mistake on its own: adding 0 leaves the total where it was, so Friday's total is 410 either way. The trouble is in the last line. len(scores) counts every entry in the list, blanks included, which makes 7. The program shares 410 marks between 7 students when only 5 sat the test.
- What it did: 410 divided by 7 is 58.6.
- What it should do: 410 divided by 5 is 82.0.
Monday came out right only because nobody was away, so every entry was a real score. The program was wrong all along; Monday's scores never showed it.
That is what reading gives you. The mistake was written down the whole time, even in a comment: # treat a blank as a score of 0. It is like reading a recipe before you cook: you notice it says a tablespoon of salt where you expected a teaspoon, before anyone has to taste the soup.
Here is the fixed version. It keeps a second count, of the scores that are really there, and divides by that instead:
def class_average(scores):
total = 0
count = 0
for score in scores:
if score is not None: # leave out anyone who was away
total = total + score
count = count + 1
return round(total / count, 1)
monday = [72, 85, 58, 90, 64, 77, 89]
friday = [81, 79, None, 88, 70, None, 92]
print("Monday's average:", class_average(monday))
print("Friday's average:", class_average(friday))
Output
Monday's average: 76.4
Friday's average: 82.0
Friday now comes out at 82.0, and Monday hasn't changed.
Reading also changes what you can say to the AI. "Friday's average is wrong, fix it" invites another guess. "Leave blank scores out of both the total and the count" tells it exactly what to change, and you can check that it did.
Try this: what will the fixed version do on a day when every student was away, so the list is all None? Work it out before you run it. (A hint: what is total / count when count is 0?) Nobody has told the program what it should say on that day yet, and that is a question to put back to the AI.
Where to go next
To try vibe coding, pick something low stakes, keep passwords and private information out of it, and start somewhere nothing important can break: the Claude Code guide and the Codex guide both begin on a practice folder. Ask the tool to check its own work, too. OpenAI's best-practice guide for Codex says that "with the right instructions, it can also help test it, check it, and review it".
To read what the AI writes, learn a little Python. Agentale is a game that teaches Python from zero. Its first three regions cover most of the ideas in the example above (lists, loops, if and else, and functions that hand back a value), and later regions go on to how AI agents work. See the curriculum, or start playing as a guest, with nothing to install.
Questions people ask
Is vibe coding real coding?
It makes real programs that really run, but even the person who named it had doubts: Karpathy wrote that it is "not really coding". The difference is whether anyone reads the code. Simon Willison's line is that if you review what the AI wrote, test it and can explain how it works, "that's not vibe coding, it's software development", and using an AI to get there doesn't change that.
Do I need to learn to code if AI can write it?
Not to build a small tool for yourself: that is what vibe coding is for. But reading a little code is what lets you tell when the AI got it wrong, as in the class average example, and tell it exactly what to change. For anything with passwords or other secrets, Simon Willison says "you need to understand how the code works". You need to be able to read code more than you need to write it.
Is vibe coding safe?
It depends on what the code touches. Simon Willison's advice is to keep vibe-coded projects low stakes, watch out for anything shaped like a password, and be very sure where private data could go. IBM gives passwords and keys written into the code as an example of the security holes it can leave, and in Veracode's October 2026 tests, about 38% of AI coding tasks built around common security flaws still produced code with a known weakness. If other people will use it, or it handles money or personal data, have the code read first, by you or by someone who can.
What tools do people use for vibe coding?
Any AI chat that writes code will do: you copy what it writes into a file and run it. Karpathy's own post names the tool he was using, Cursor. Coding agents such as Anthropic's Claude Code and OpenAI's Codex go further and change the files in a folder themselves; our Claude Code guide and Codex guide start you on a practice folder.
What's the difference between vibe coding and using AI as a coding assistant?
Who reads the code. In vibe coding, nobody does: you judge the program by whether it seems to work. Using AI as a coding assistant, you read what it wrote, test it and could explain it. Simon Willison's golden rule is that he won't add any code to his project if he couldn't "explain exactly what it does to somebody else". The same tool can be used either way.
What does "vibe code" mean?
It is the verb: to vibe code something is to build it this way, by describing it to an AI and using what comes back without reading the code. Simon Willison writes, for example, that "it's possible to vibe code personal tools".
Sources
- Not all AI-assisted programming is vibe coding, quoting Andrej Karpathy (Simon Willison)
- Collins' Word of the Year 2025 (Collins Dictionary)
- Claude Code overview (Anthropic)
- Best practices for Claude Code (Anthropic)
- Quickstart, ChatGPT and Codex (OpenAI)
- Best practices for Codex (OpenAI)
- 2026 GenAI Code Security Report (Veracode)
- GenAI Code Security, Fall 2026 (Veracode)
- What is vibe coding? (IBM)
Checked against these sources on 27 November 2026.
Learn it by playing
Agentale is a game that teaches Python from zero, up to building your own AI agents. It runs in your browser, with nothing to install.