中文EN
← Deep Research
Deep Research · Plain-language

Is It Really Better to Write a Spec First and Then Let AI Write the Code? (Plain-Language Edition)

This is the plain-language edition · read the deep dive (full arguments & sources) →
TL;DR
Saying clearly what you want does make AI write better code — but the stronger the model, the smaller the benefit, and it costs half again to more than double the money. Whether running a dedicated spec tool's full workflow beats writing one clear paragraph has no reliable evidence today: both comparisons we found fail inspection, and all we can say is that it's slower. Specs drift out of step with code, and we can't even measure how much; the biggest tool doesn't keep its own specs. "Edit only the spec and regenerate the code" has already hit a wall in mathematics: computers can check whether a proof is right, not whether the problem was stated right. The popular numbers on both sides don't hold up, and the likeliest ending looks like UML: keep the habit of thinking it through first, drop the heavy tooling.
being clear helpsno evidence for the workflowspecs go staleright proof, wrong problem

This is the plain-language edition, written for people who don't write code, or who have only just started using AI to write code. For the source of every number, the original quotes and the strength of the evidence, see the deep dive. All figures are as of November 2026.

First, what is this piece asking?

Lots of people now use AI to write programs. The earliest approach was "say whatever comes to mind" and let the AI guess as it writes, which came to be called vibe coding. Since 2025 a new approach has caught on: first write up what you want built as a detailed instruction document (a spec), then have the AI write the code by following it. This is called "spec-driven development." GitHub, Amazon (AWS) and quite a few startups have all launched dedicated tools for it.

Supporters say: AI programming finally has some rules. Critics say: isn't this just the "waterfall development" of decades ago—lock down the documents first, then start building—under a new name?

There are really three questions wrapped up in this:

  1. If you write a spec first, does the AI produce something better?
  2. Once the spec is written, will it gradually drift out of step with the code?
  3. In the future, could you change only the spec and have the AI regenerate the code automatically?

1. Spelling out what you want first really does make AI write better

There is solid evidence for this. Several groups of researchers have run the same kind of experiment: for the same task, the more complete the instructions given to the AI, the more it gets right; strip the instructions away bit by bit and the success rate drops bit by bit; add them back and it rises again. Having the AI list a plan before writing code helps too.

But there are two caveats:

2. But there's no evidence that "running the full process with a dedicated tool" is better

This is the crux. What those experiments show is that "stating your intent clearly" helps—not that "following some spec tool's seven-step process" helps. The real comparison should be: given the same information, which is better—writing it as one clear paragraph and handing it straight to the AI, or going through the whole Spec Kit process?

The two comparisons of this kind that we found both fail to hold up under scrutiny:

Several experienced engineers have tried it themselves, and their impressions agree: to fix one small bug, the tool generated 16 acceptance criteria, "like using a sledgehammer to crack a nut"; one tech lead said that without this process he was "around ten times faster", and the code the process produced was no better either.

3. Will the spec gradually drift out of step with the code?

Yes—and right now we can't even measure how much accurately.

This is a lot like the UML diagramming tools of twenty years ago: a survey of 50 developers back then found not one who was using them fully; most drew a sketch to think things through and then threw it away.

4. Change only the spec and have the code generated automatically—can that work?

Mathematics has already tried it for us, and the results aren't encouraging.

Mathematicians write proofs in a language that a computer can check line by line. The computer can guarantee that "the proof is correct," but it can't guarantee that "the statement being proved is the statement you originally meant to prove." Two independent teams went through the same set of math problems one by one and found that a large number of problems had been translated into statements with a different meaning; across all the problems, more than a quarter had been translated into statements that can be proved false. The computer still "correctly" finished the proofs.

Software is the same. Microsoft researchers had AI write specs, code and proofs for more than 50 classic algorithms, and every one passed the computer's checks; on closer inspection, the specs themselves had holes for 8 of the algorithms—for example, letting a wrong answer through. Another study found that an empty program that does nothing and just replies "OK" can pass every test written from the spec.

Specs written in everyday language don't even have the "computer checks the proof" step. So for "just change the spec," there's no workable path in sight today. The company that pushed this hardest (Tessl) no longer says so on its current homepage.

5. The most-quoted numbers on both sides don't hold up

There's also a historical joke: the 1970 paper treated as the origin of "waterfall development" never uses the word "waterfall" anywhere in it. The author actually considered going straight through in one pass "risky and invites failure," and his prescription was to write more documentation—even more than today's spec tools ask for.

6. Who is doing the talking

The things that matter most

  1. Spelling out what you want really does make AI write better—but the benefit is shrinking, and the cost is not small.
  2. There's no reliable evidence that a "dedicated spec-tool process" beats "one clearly written paragraph"; what is certain is that it's slower and more expensive.
  3. Specs drift out of step with code, and today we can't even measure it accurately; the biggest tool doesn't even save its own specs.
  4. "Change only the spec and have the code generated automatically" has already hit a wall in mathematics: a computer can check whether a proof is right, but not whether the problem statement is right.
  5. The popular numbers on both sides don't stand up; when you hear "research shows," first ask: what did it measure, and who did it?
  6. The most likely ending looks like UML: people keep the habit of "think it through first and write it down," and drop the heavy tools and processes.