01 - Vibe Coding: The Paradigm That Changed 2025
Vibe coding means building software with a language model without reviewing the code it writes. The definition comes from Simon Willison, who takes it from the post in which Andrej Karpathy gave the practice its name, and it is narrower than the way people usually use the term: if you ask an assistant for a function, read it, run it and fix it, you are not doing vibe coding, you are doing assisted development. The line between the two does not run through the tool. It runs through a single question: who reads the diff before the code enters the project.
This is the opening article of the series Vibe Coding and Agentic Development, and it starts from that question, because it is the one you need in order to decide how to work. You will see what Karpathy actually wrote, what the data you can check say (little of it, and less enthusiastic than what circulates), an example of generated code with a defect that only shows up when you run it, and a criterion for deciding when to delegate and when not to.
What Karpathy wrote, word for word
The post is from 2 February 2025 on X (the date is the one you get from the post identifier, which embeds the publication time). Its text says that there is "a new kind of coding" in which you "fully give in to the vibes, embrace exponentials, and forget that the code even exists." It then gives three operational details: he always clicks "Accept All" and no longer reads the diffs; when an error message appears he pastes it into the model with no comment, and that usually fixes it; if the model cannot fix a bug, he works around it or asks for random changes until it goes away. The code, he writes, grows beyond his usual comprehension.
Two things matter if you work on code that has to last. The first: Karpathy describes a deliberately irresponsible way of working, and he limits it himself to "throwaway weekend projects". The second: the admission that the code exceeds his comprehension is the defect of the method itself, not a side effect. The term was so successful that on 6 November 2025 Collins chose it as its Word of the Year, defining it as the use of artificial intelligence, prompted by natural language, to write computer code. That definition is broader than the original, which is why the word now stands for different things.
Vibe coding and assisted development: the difference is who reads
A few weeks later Willison wrote that not all programming assisted by a model is vibe coding, and that conflating the two dilutes the term and gives a false impression of what can be done responsibly. His position is useful because it turns a fashionable word into a criterion you can check. A practical way to use it is to think of a delegation scale, where what changes is the amount of code that enters the project without anyone having read it:
- Completion: the model suggests a few lines and you see them as you accept them.
- Function on request: the model writes a block, and you read it, run it and fix it.
- Multi-file change: the model touches several places in the project, and reading the diff becomes the moment of control.
- Autonomous work: the model runs commands, edits files and repeats until it believes it is done; you read the result, not the steps.
- Pure vibe coding: nobody reads the code, and you only judge whether the program seems to work.
The scale is mine, not a source's: it exists to give the steps a name. The point to keep is that risk does not grow with the power of the tool but with the share of code nobody has read. An agent that works alone but produces a small diff, which you read line by line, is less risky than a completion you accept without looking for hours. That is why the series treats review and testing as part of the method and not as an optional last step.
The working loop, with a real defect
The typical loop has five steps and the order matters, because each step produces what the next one needs:
- Describe the goal and the constraints in natural language: what it must do, in which language, within which limits.
- Generate: the model proposes the code, sometimes across several files.
- Read the result. This is the step pure vibe coding skips.
- Run and verify with a case you know, not with the one the model already anticipated.
- Fix with a precise request that names the failing case.
If you remove the third step you get Karpathy's practice; if you remove the fourth you get something worse, because the code looks reviewed but nobody has shown that it works. To see this I took the most ordinary scenario there is, a table of users with a filter and pagination, and wrote by hand the kind of code an assistant usually produces. I did not have a model generate it: it is an example built to show a realistic defect, and I say so. The class below looks correct on a quick read.
class UsersTable:
"""Table with filter and pagination, as an assistant would have produced it."""
def __init__(self, users, per_page=2):
self.users = users
self.per_page = per_page
self.page = 1
self.filter = ""
def set_filter(self, text):
self.filter = text.lower()
def go_to_page(self, number):
self.page = number
def rows(self):
found = [u for u in self.users if self.filter in u.lower()]
start = (self.page - 1) * self.per_page
return found[start:start + self.per_page]
The filter and the page are two separate pieces of state: set_filter only changes the text to search for,
go_to_page only changes the page number, and rows combines them. Each method, taken on its own, is
right, which is why the defect survives a distracted read. There are no syntax errors, and a test that
checks only the filter, or only the page, would pass. The problem comes from the interaction, which is where
models go wrong most easily because no single method contains it.
The scenario is the typical one in a vibe coding session: the user is on page 3, types a
filter and the list stays empty. The program below reproduces exactly that path and has an assertion on the result
a human would expect. I run it with python3 check.py in the same folder as users_table.py;
I write python3 without -I because with -I Python does not look for modules next to the script.
from users_table import UsersTable
users = ["Anna", "Bruno", "Carla", "Daniele", "Elena", "Franco"]
t = UsersTable(users)
t.go_to_page(3)
print("page 3, no filter:", t.rows())
t.set_filter("an")
print("filter 'an', page", t.page, ":", t.rows())
expected = ["Anna", "Daniele"]
assert t.rows() == expected, f"expected {expected}"
# Output (python3 check.py, two identical runs; last line of the traceback, the rest omitted):
# page 3, no filter: ['Elena', 'Franco']
# filter 'an', page 3 : []
# AssertionError: expected ['Anna', 'Daniele']
The output shows the most important thing: page 3 without a filter works (Elena and Franco), the filter
an finds three names (Anna, Daniele, Franco), but with two rows per page the
third page of the filtered results does not exist, and the table stays empty. A model to which you pasted the error without saying
which path produces it might fix the wrong symptom, for example by always returning the first
page when the list is empty, which hides the defect instead of solving it. The right fix comes from reasoning:
changing the filter changes the data set, so the position within the set no longer means anything.
def set_filter(self, text):
self.filter = text.lower()
self.page = 1 # the filter changes the set: start again from the beginning
# Output (same check.py, two identical runs):
# page 3, no filter: ['Elena', 'Franco']
# filter 'an', page 1 : ['Anna', 'Daniele']
The added line, self.page = 1, is a product decision more than a programming one: you might want
the page to stay where it is if the new filter has enough results. The code cannot choose that for you, and it is the
kind of choice that pure vibe coding makes by accident. A more robust alternative, which I did not write here so as not to
lengthen the example, is to have the table compute the last page on every read and clamp the current page to it; you
pay for it with more logic in the rows method.
What the data you can check say
Many percentages circulate around vibe coding. I kept only three sources that I opened and read, and for each I tell you what it measures and what it does not. The first is the Stack Overflow Developer Survey 2025, which asks developers how they use artificial intelligence tools:
- 84% of respondents use or plan to use AI tools in their development process (76% the year before);
- 51% of professional developers use them every day;
- developers who distrust the accuracy of the tools (46%) outnumber those who trust it (33%), and only 3% highly trust it;
- favorable sentiment has fallen from 70% and above in 2023 and 2024 to 60%.
The picture is consistent: people use the tools more and trust them less. It is an opinion survey, not a measure of code quality, and it does not distinguish those who review from those who do not. It does say something useful for deciding how to work: the people who use these tools every day are precisely the ones who do not trust them, and according to the same page trust is lowest among the most experienced developers. A survey like this does not prove that review is needed: it says that distrust is widespread among people who work with these tools, not a cautious minority position.
The second source is an experimental study by METR (Becker, Rush, Barnes, Rein, arXiv 2507.09089): 16 developers of mature open source projects, with on average five years of experience on their own project, completed 246 tasks, each randomly assigned to allow or disallow AI tools (mainly Cursor Pro with Claude 3.5 and 3.7 Sonnet, between February and June 2025). Before starting they forecast that AI would cut completion time by 24%, at the end of the study they estimated they had saved 20%, but the measured times turned out to be 19% longer. The result holds for that small sample, that kind of project and those tools: the authors themselves list the limits, and it entitles you neither to say that AI always slows people down nor the opposite. It entitles you to something more modest and more useful: your impression of being faster is not a measurement, and when you decide whether a workflow works you have to time it.
The third source concerns security. Veracode's 2025 GenAI Code Security Report analyzes code generated by more than 100 models in Java, JavaScript, Python and C#, and states that 45% of the tests introduced vulnerabilities and that larger and newer models did not improve the result. I read the landing page, not the full report: so I do not know how the tasks are built, and I do not report the per-language or per-defect-category percentages that circulate elsewhere. Even so the practical message holds: a more powerful model does not exempt you from security review, which remains your job.
The tools: what the documentation promises, and nothing more
I am not comparing products, prices or rankings: they change every month and I have no primary source for comparisons. I only tell you what the official documentation of three tools you will meet in the series says, read on 12 November 2026. Claude Code is described by Anthropic as an agentic coding tool that reads your codebase, edits files, runs commands and integrates with development tools, available in the terminal, in an IDE, in the desktop app and in the browser; the next article covers it, Claude Code: agentic development from the terminal. GitHub Copilot is described by GitHub's documentation as an assistant that suggests code as you type, answers questions about the project, reviews changes and works on assigned tasks. Cursor has documentation sections dedicated to the agent, rules, MCP and the command line, but I verify nothing else about it here.
What these tools have in common, and what matters more than any difference, is that they produce a diff that has to be read. The choice of tool is secondary to the choice of how you use it: if you let it edit files without reviewing what changes, you have chosen vibe coding regardless of the product. How to organize agentic work you will see in Agentic workflows: decomposing problems.
When to delegate and when not to
The criterion I use is a cross of three questions, not a list of sectors. First: how much does a mistake cost, in money, in data or in people? Second: can you undo the effect, for example with a commit to revert or an environment to recreate? Third: can you recognize a wrong result, that is, do you have a test, a known case or the expertise to see it? If the mistake is cheap, is easy to undo and you can recognize it, you delegate with little review. If even one of these conditions fails, review grows accordingly:
- Prototype, internal script, exploring a library: cheap mistake, easy rollback, the result can be tried in minutes.
- Code for a product that will last: the mistake costs little today and a lot in a year, because nobody will remember why the code is the way it is.
- Authentication, payments, personal data: expensive and often silent mistake, and a happy-path test does not reveal it.
- Operations on production data or infrastructure: the effect may not be reversible; an agent can do everything the credentials you give it allow.
The last line is the most concrete: caution lives in permissions, not in the prompt. An agent to which you give no production credentials cannot damage production, however wrong it is; one to which you do give them depends only on whether it follows an instruction written in natural language. Separating environments is a defense that works even when the model is wrong, which is why you will come back to it in Security in vibe coding.
Frequently asked questions
Is vibe coding the same as using a coding assistant?
No. According to Willison's definition, vibe coding is building software with a model without reviewing the code it writes. If you read it, run it and fix it, you are using an assistant: the tool is identical, the control you exercise changes.
Is vibe coding suitable for a product in production?
Not in its pure form. Karpathy himself applied it to throwaway projects. A product that has to be maintained needs at least reading the diffs and a test for every behavior that matters, because the example above shows that a defect can live in the interaction between correct methods.
Does artificial intelligence make developers faster?
It depends on the context and it has to be measured. In the METR study on experienced developers, in their own projects and with the tools of early 2025, times increased by 19% while the participants believed they had saved 20%. It is not a general rule: it is a reason to time your own workflow.
What you can do now
You can tell vibe coding and assisted development apart with a single question, who reads the diff, and you can say which of the two you are practicing. You have seen that an interaction defect can get past a quick read and show up only when you run the right path, and that the right fix comes from reasoning about the domain. You can cite three verifiable sources along with what they measure and what they do not measure, and you have a three-question criterion (cost of the mistake, reversibility, ability to recognize it) to decide how much review is needed. The next step is Claude Code, then agentic workflows and multi-agent coding. For verifying generated code go to Testing AI-generated code.
The last articles of the series are Prompt Engineering for IDEs and Code Generation, on prompts and instruction files, and The future of agentic software development, on the habits that stay valid when the tools change.
Sources
- Andrej Karpathy, post on X, 2 February 2025 - the original text of the definition, the three practices ("Accept All", pasted errors, bugs worked around) and the limit to weekend projects; the date is derived from the post identifier, accessed 2026-11-12
- Simon Willison, Not all AI-assisted programming is vibe coding (19 March 2025) - the distinction between vibe coding (unreviewed code) and responsible assisted programming, accessed 2026-11-12
- Collins Dictionary, Word of the Year 2025 (6 November 2025) - the choice of "vibe coding" and its definition, accessed 2026-11-12
- Stack Overflow Developer Survey 2025, AI section - 84% using or planning to use, 51% daily use among professionals, 46% distrust against 33% trust, favorable sentiment at 60%, accessed 2026-11-12
- Becker, Rush, Barnes, Rein, Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity (arXiv 2507.09089) - 16 developers, 246 tasks, times 19% longer against an estimated saving of 20%, accessed 2026-11-12
- Veracode, 2025 GenAI Code Security Report (landing page) - more than 100 models, four languages, 45% of tests with vulnerabilities; full report not read, accessed 2026-11-12
- Claude Code, documentation: Overview and GitHub Docs: About GitHub Copilot - the description the two products give of themselves, accessed 2026-11-12
The two code blocks were run with Python 3.14, twice with identical output (cmp on the output files). The example is written by hand for the article and not generated by a model.

Commenti
Caricamento commenti...
Sign in to comment