AI agents › AI coding
What is vibe coding? Making programs by talking to AI
Vibe coding means asking an AI for a program in plain words and judging it only by the result. Where the term came from, a real run, and when it fits.
If you follow AI news even a little, you’ve probably seen someone say they vibe coded an app over a weekend. The phrase turns up in developer forums and on social media, and in November 2025 Collins Dictionary named it its Word of the Year. The name itself doesn’t explain much, though, so perhaps you’ve wondered whether it’s a new tool, a programming language, or just a mood.
Vibe coding is a way of building a program by telling an AI what you want in plain words, running what it makes, and judging it by the result without reading the code closely. You describe, the AI writes, you look at what happens, and when something breaks, you describe that too. You hear it so often these days because AI coding tools got good enough that a few sentences can produce a working program. Andrej Karpathy, who coined the term, wrote in his 2025 year in review that 2025 was the year AI became able to build impressive programs from plain English alone. He also wrote that programming had become “something anyone can do” and was no longer strictly reserved for highly trained professionals.
Where the term came from
The term comes from a post on X that the AI researcher Karpathy wrote on February 2, 2025. He called it “a new kind of coding” where you “fully give in to the vibes, embrace exponentials, and forget that the code even exists.” Then he described how he worked. He spoke his requests to a coding tool instead of typing them, pressed “Accept All” every time, and no longer read the diffs, the lists of what changed in the code. When an error came up, he pasted it back with no comment, and that usually fixed it. He admitted that the code grew beyond his usual comprehension, and he added that it’s “not too bad for throwaway weekend projects.”
So from the start, the term named a way of working. With any AI coding tool, if you let go of the code and steer by what you see on the screen, you’re vibe coding.
The post spread quickly. Collins’s blog described vibe coding as “telling a machine what you want rather than painstakingly coding it yourself” when it announced the choice in November 2025. Looking back in December, Karpathy wrote that he had been “totally oblivious to how far it would go” when he coined the term in a “shower of thoughts” post.
Making a small program with one sentence
Let’s try it. I asked Claude Code, Anthropic’s AI coding tool that runs in the terminal, for a small program in one sentence. The program counts how often each word appears in a text file and shows the five most common ones. Here’s the text file I used, sample.txt.
The turtle doesn't hurry, and the turtle doesn't stop.
It's slow, but it's steady, and it's still moving.
The rabbit says it isn't fair. The turtle doesn't mind.
In an empty folder holding only that file, I ran the commands below. The first asks for the script, and the second runs it.
claude -p "Write top_words.py, a Python script that counts how often each word appears in the text file given as its argument and prints the 5 most common words." \
--model haiku --allowedTools "Write" < /dev/null
python3 top_words.py sample.txt
claude -p is a headless run that does the task once without opening a chat and then exits. --model haiku picks a small, fast model, and --allowedTools "Write" lets it create files without asking. Since version 2.1.302, a -p run denies any other request that needs approval, so Claude could write the file but couldn’t run the script. And < /dev/null keeps it from waiting for keyboard input. Then, in the spirit of vibe coding, I ran the script without opening it.
the 4
t 4
it 4
turtle 3
doesn 3
The request took about 15 seconds, and I had a working program. It ran without errors, and “the” at the top with 4 looks believable. If I were vibe coding, this is where I’d move on to the next request.
Adding one check of my own
Now let’s add the step that vibe coding skips. The text is only three lines, so I counted by hand. “The” appears 4 times, “doesn’t,” “it’s,” and “turtle” 3 times each, and “and” twice. Next to that count, the output looks odd. “t” and “doesn” aren’t words, and “it” shows up 4 times. The program split contractions like doesn’t and it’s at the apostrophe.
The reason was actually in Claude’s reply. Here are two lines from it, with the rest left out.
I wrote `top_words.py`, but I could not run it. Every Bash command I tried was refused with "requires approval", so the test didn't run.
- **Word definition:** a word is any run of letters, digits, or underscores (`\w+`), so `don't` splits into `don` and `t`.
So the AI had made a choice and even said so. Vibe coding, though, means not reading the code, and often not reading notes like this either. Opening top_words.py shows the same thing in one line, re.findall(r"\w+", text.lower()). \w+ is a regular expression, a small pattern language for matching text, and it means one or more letters, digits, or underscores in a row. An apostrophe isn’t one of those, so the word breaks there.
This time I worked the way you would if you were reviewing the code. I saved the first version with git so I could see what would change, made a specific request, and checked the result again.
git init -q && git add top_words.py && git commit -qm "first version"
claude -p "In top_words.py, keep apostrophes inside words so that don't counts as one word." \
--model haiku --allowedTools "Edit" < /dev/null
git diff
python3 top_words.py sample.txt
Claude’s reply printed first, and I’ve left it out. Here’s what git diff showed.
diff --git a/top_words.py b/top_words.py
index 2cff415..ad86efd 100644
--- a/top_words.py
+++ b/top_words.py
@@ -14,7 +14,7 @@ def main():
with open(sys.argv[1], encoding="utf-8") as f:
text = f.read()
- words = re.findall(r"\w+", text.lower())
+ words = re.findall(r"\w+(?:['’]\w+)*", text.lower())
for word, count in Counter(words).most_common(5):
print(f"{word} {count}")
Only one line changed. The new pattern keeps an apostrophe inside a word when letters follow it, and it also accepts the curly apostrophe (’) that word processors often use. After that, the program printed this.
the 4
turtle 3
doesn't 3
it's 3
and 2
Now it matches my hand count. All I added was counting three lines by eye, saving a version, and reading one changed line, and now I can say what the program does with an apostrophe.
How it differs from AI-assisted development
Developer Simon Willison drew this line in March 2025, about six weeks after the term appeared. By vibe coding, he wrote, he means “building software with an LLM without reviewing the code it writes.” An LLM, or large language model, is the kind of AI behind these coding tools. Then he turns to code that an LLM wrote and a person reviewed, tested thoroughly, and could explain to someone else. That, he says, is “not vibe coding, it’s software development,” and the LLM’s part in it is immaterial. So the name depends on what you do after the AI writes the code. How much of it the AI typed matters far less. His own rule is that he won’t commit code he couldn’t explain to somebody else.
| Vibe coding | Development with review | |
|---|---|---|
| The code | Rarely read | Read and understood before it’s kept |
| Changes | Accepted as they come | Each diff is checked |
| Checking | Run it and see if it seems to work | Tests, or answers known in advance |
| Errors | Pasted back to the AI | Cause found, then fixed |
| Good for | Throwaway and personal tools | Code other people rely on |
Karpathy drew a similar line in the summary of his talk at Sequoia Ascent 2026, posted in April 2026. Vibe coding raises the floor, he wrote, and agentic engineering raises the ceiling. By the second he means working with AI agents, which use tools on their own, while keeping “the quality bar of professional software” intact. How those agents are run is a topic of its own, so I’ll stop at the name here.
Where it fits and where it’s risky
Both Karpathy and Willison see a clear place for vibe coding. Karpathy says it “is fine for prototypes and personal tools,” and a prototype is a quick version built to test an idea. Willison, for his part, asks why you shouldn’t “just let it rip” on low-stakes projects and prototypes. He also sees it as a way to learn, since in his view “the best way to learn anything is to build a project” of your own. A script that tidies your own files, a one-page tool you show a friend, or a first program while you’re learning are all good fits. If one breaks, you lose little, and you can ask for a new one.
The risks grow once other people use the program or it touches real data. The first is security, because a program can work and still be unsafe. In a 2021 study, researchers had GitHub Copilot complete 89 security-related scenarios and found about 40% of the 1,689 resulting programs vulnerable. Models have changed a lot since then. Still, you can’t see a security hole by looking at a program’s output.
The second is maintenance. Code you never read is hard to fix later. Karpathy vibe coded a menu app in April 2025 and took it all the way to a paid service. After a fun start as a local demo, he called the deployed, real app “a bit of a painful slog” in comparison. For anything of actual importance, he concluded, vibe coding full web apps was “not a good idea” at the time.
The third is secrets, such as API keys and passwords. If you hand a key to the AI to get something working, it can end up written into the code itself, and then pushed to a public repository where anyone can read it. Willison warns that you “need to understand how the code works” to keep secrets from leaking. GitHub’s guide to removing sensitive data says the first step for a pushed secret is to revoke or rotate it, and it warns that you can’t remove sensitive data from copies other people have already cloned.
If you’re trying it for the first time
If you’d like to try vibe coding, start with something small enough to check by eye, like the word counter above. Pick a program only you will use, keep real data out of it at first, and, as Willison suggests, be very careful with anything that’s charged by usage.
Before each request, save the current version with git. Claude Code has its own checkpoints for rewinding, but its docs describe them as quick recovery within a session and recommend version control such as git for lasting history. With a commit in place, git diff shows exactly what the AI changed, just as it did in the example.
It also helps to keep a small input whose answer you know and run it after every change. Claude Code’s best practices note that without a check for Claude to run, you end up as “the test suite” yourself. Keep keys and passwords out of your requests and your code as well, in environment variables or in a file that .gitignore keeps out of git.
I ran this example on October 27, 2026, with Claude Code 2.1.304, where --model haiku used claude-haiku-5-5, and Python 3.13.12. If you send the same sentence, the code you get may be different, so start with a few lines of text you can count yourself.
AI tools helped with the research for this post.