Extreme AI Programming · Chapter 7
Vibe Coding Is a Mode, Not a Person
People often ask me which stack they should build on, and I always say it depends: on how well it fits the project, and at least as much on the team and what they reach for without thinking. Hundreds of stacks and thousands of defensible reasons exist to choose between them, and a good engineering decision weighs those reasons thoughtfully.
Ask an agent to build something without saying which, and it will make every one of those decisions for you, with none of that context. There may be nothing wrong with what it picks. It may be right, too. You get what you ask for, which was the whole argument of the chapter on articulation, and if you ask for nothing in particular, you get whatever the model happened to settle on. That is what vibe coding really is: not a tool, not a kind of person, but the moment decisions slip out of your hands and into something that doesn't know your team, your project, or what you are trying to build.
In early 2025, Andrej Karpathy described a new kind of coding where you give in to the vibes and forget the code even exists. You prompt, accept, run it, and if it works, move on. He was describing weekend projects, throwaway things you will never maintain, and for that he was right. Earlier, I called this way of working the slot machine, the version of AI you pull rather than the instrument you play.
I want to be more precise now, because the term has become an insult, and it shouldn't be. Vibe coding is not a measure of skill. It is a mode of working, and the test is simple: are you connected to the decisions being made and the outcome being produced?
Own the decisions that matter, the stack, the architecture, and the trade-offs between them; judge what comes back against what you asked for; and you are doing professional AI development, whatever your background. A designer or a founder who has never written production code can work this way, and I am wholly in favour of them doing so. Putting software within reach of people who could never build it before is one of this technology's best achievements.
Let those decisions drift out of your hands and into the model's, and you are vibe coding, whoever you are. A principal engineer with twenty years behind her can do it at four o'clock on a Friday, accept a plan she hasn't read for a module she doesn't own, and her seniority does nothing to protect the codebase. Coding agents make this easy. When we typed every line, the typing forced at least a moment of attention on every decision. The agent removes that friction, and the attention goes with it. Staying connected used to be a side effect of the work. Now it has to be a choice.
Declared and undeclared
None of this invalidates vibe coding. It remains a valid mode when kept in its proper place: throwing together a disposable prototype, running a quick spike to test an idea's viability, building a personal utility for your own use, or spending a morning exploring a new framework. I frequently work this way myself and find value in it. The essential requirement is transparency. Everyone involved, including yourself, must recognise it for what it is.
The problem is undeclared vibe coding. The prototype that quietly becomes the product. The spike that gets merged because it happened to work. The weekend experiment a customer is now paying for. The code is no different from the day it was written; what changed is that decisions nobody actually made are now being treated as decisions somebody made and built on. So say it out loud. Put it on a branch called spike, tell the team at the standup, and treat anything produced that way as disposable until someone has gone back through it and owned the decisions it contains. A known prototype is an asset. An unknown one is a liability waiting for a date.
Shipping is not building
This is where the difference shows. Vibe coding wants to ship something; professional engineering wants to build something. On the first day, the two are indistinguishable, because both produce running software, and the vibe-coded version often arrives first. They come apart on the second day, and every day after. Shipping asks only whether the thing runs now. Building asks whether anyone can change it later, and that second question is what the whole discipline is organised around.
This is why the speed argument for working loosely is a mirage for anything that has to last. A vibe-coded feature in a long-lived system is never actually faster. Its cost is deferred, quietly moved to a later date, usually to a different person, and presented to you in the moment as a saving. What feels like a week saved tends to cost a fortnight a few weeks on. On a larger system built this way for a year, the bill doesn't come in fortnights.
The most dangerous version is not a newcomer building a website. It is anyone, newcomer or expert, vibing undeclared into a shared, long-lived codebase: the product manager tired of waiting on the engineering queue, the founder who finally has the keys, the senior engineer in a hurry. The feature appears within days, ships, and lands in a system whose constraints the person couldn't name or didn't stop to consider. Nobody did anything malicious. Everybody did something invisible.
Put simply: AI does not remove thinking; it amplifies whatever level of thinking you bring. A debt you decide to take on is a loan you can plan around. A debt you never noticed taking on accrues quietly, against code no one read, until the interest arrives all at once, usually at the worst possible moment.
Spec-driven development - back in vogue
Spec-driven development is hardly novel, and I don't claim to have invented it. Specifications are as old as software engineering itself. Agile largely sidelined them, and rightly so at the time, given how labour-intensive they were to draft, how quickly they grew stale before gaining sign-off, and how rarely anyone read them. I think it is time to resurrect the discipline. The circumstances that originally caused specifications to lose favour no longer apply, and the approach merits serious reconsideration in today's environment.
Look at what replaced it. The user story (as a returning customer, I want this, so that that) was built for human understanding. It was deliberately thin, a placeholder for a conversation. The detail lived in the heads of the developer, the designer, and the tester who had talked it through, and each walked away with a slightly different version.
The story worked because people filled the gaps, and people were always there to fill them. A spec, in the sense I mean, is a different kind of thing. It is a relatively lightweight artefact that holds all those perspectives in one place. It states the business outcome: what changes for the customer or the company when this ships, and how we will know. It covers the technology: the architecture it touches, the data it moves, and the interfaces it must respect. It looks at the work from a security point of view: who can call this, what it exposes, what must never be logged. It includes design considerations: the states a user can be in, edge cases, and what the user sees when something goes wrong.
Previously, these distinct viewpoints were scattered across separate files or existed only in unwritten assumptions. A unified specification brings these viewpoints together and aligns them across every dimension before development even starts.
Guess who types the specs in an AI-first engineering team? Your coding agents, and they are very good at it. But typing is not authorship. The spec belongs to the humans: every decision in it is made, or at least approved, by a person, and nothing moves to build without human oversight. The tooling's job is to make that oversight practical. A spec should not read the same way to everyone. A designer should see it through a design lens, with the decisions that need a designer's judgement brought to the top; an architect should see the same spec through an architectural one. Because the tooling knows who on the team knows what, specialised agents can orchestrate the review, putting each part of the spec in front of the person best placed to judge it, so humans stay in control without having to read every line. That asks a great deal of the tooling, more than teams have ever asked of it, and I will explain why I think that expectation is justified at the start of the next chapter.
Beyond intent, the intended audience sets a spec apart from a user story. User stories serve human comprehension; specifications serve an AI coding engine first, and human stakeholders second. This inverted priority reshapes what excellence looks like. AI agents do not skim text or require persuasion. They demand total explicit clarity, leaving no room for assumptions or context lost in unrecorded conversations. While human engineers resolve ambiguity through informal discussions, AI agents resolve it by guessing. A complete, rigorous specification eliminates that speculation. It is the ultimate way to convey purpose to an AI engine; a single point of convergence where strategic, technical, architectural, and design considerations unite into an actionable blueprint for the machine.