← Blog

Spec-Driven Development Replaced Vibe Coding. What Does It Leave Behind?

Marco Masut

Spec-driven development is a way of building software in which a written, versioned specification is the source of truth, and an AI agent generates the code from it instead of from a loose prompt. The spec states what must be built; the code is derived and checked against it. It is the answer many teams reached after vibe coding showed how fast unreviewed output piles up.

Here is the short version of what it does and does not do. Spec-driven development fixes the input of the work: the request is explicit, reviewable and kept in git, so two people, or two agents, start from the same text. It does not by itself fix the output. A good specification does not prove that the change matched it, that only the allowed files were touched, or that a check run by someone other than the producer passed. A team that adopts the method gets a better beginning and still needs an end: a recorded verification and a named signature before release. The method narrows the gap between intent and code; the evidence that closes it has to come from the pipeline, because a document cannot check itself and a model should not grade its own work.

How did we get from vibe coding to spec-driven development?

Vibe coding optimizes for speed of drafting: describe, accept, keep prompting. Its weakness is that the intent lives in a chat that nobody can reopen. Spec-driven development moves the intent out of the chat and into a file.

The usual sequence is the same across tools: write a specification, break it into tasks, let the agent implement each task, and review against the spec. The loop is close to what agentic coding already describes, with one difference: the first step is a document a human reads and approves before any code exists.

Why is the specification treated as the single source of truth?

Because it is the one artifact that survives the session. A prompt disappears with the chat window; a spec in the repository can be diffed, reviewed and cited months later. When requirements change, you change the spec first and regenerate or amend the code, instead of patching the code and letting the description rot.

Some vendors of the category claim much higher first-pass success on non-trivial tasks with this method. Treat that as a claim from interested parties, not as a measured result: we have not found an independent study that confirms it.

The practical benefits are real and modest:

  • The request is reviewable before it costs any compute.
  • A new engineer or a different agent can take over from the text.
  • Scope can be written down: which files and systems are in, which are out.

Where does the method stop: input discipline or output proof?

It stops at the boundary of the generation step. Everything before the agent runs is better. What happens after is the same as before, unless you add something.

QuestionDoes a spec answer it?What answers it
What was requested?YesThe versioned specification
Did the change stay inside the allowed scope?Not by itselfA scope check on the diff, run by the pipeline
Did it pass verification?NoA command run outside the model, with the result stored
Who approved the release?NoA named person's signature, kept with the change

The same pattern shows up in tools built around specs: they sharpen the request and leave the proof open. We looked at one of them in what a spec kit does not prove.

What can a spec-driven pipeline still not answer?

Three things, and they are the ones a client, an auditor or a CTO asks after an incident:

  1. Did the code match the spec? A model that reads the spec and says "done" is certifying its own work. The METR randomized trial of 2025 found experienced developers using AI took about 19% longer than without it while believing they had been faster. Self-assessment of AI work is unreliable even for the people watching it.
  2. What else changed? A spec describes what to add. It rarely lists what must not be touched, and nobody notices a stray edit unless the diff is checked against an allowed scope.
  3. Who decided it could ship? The Stack Overflow Developer Survey 2025 found 46% of developers do not trust the accuracy of AI tool output, against 33% who do. That is a reason to put a human decision at the end, and to be able to show it later.

For what the session should leave behind more generally, see what AI coding agents leave out once the session ends.

What should you add so the specification and the release agree?

Four additions turn a spec-driven workflow into one you can defend:

  • A contract per task, derived from the spec, that lists allowed and forbidden paths.
  • Verification run by the pipeline, not by the model, with the output stored next to the change.
  • A scope check on the actual diff against the contract.
  • A signed release gate, so the approval is a person's act and not a status the agent set.

This is the line Detent (detent-ai.com), the end-to-end delivery line from request to production, is built on: the specification is where the line starts, and the evidence is what it produces at the end. The criteria above are also what Detent Bench measures agents against, and the comparison on the home page shows where common tools stop.