Spec-driven development

Hand-drawn terracotta plan of rectangular frames over pale linen hatching on the left that gives way to dense sand, umber and moss cross-hatching on the right.

Spec-driven development (SDD) is a way of working with AI coding agents in which a written specification, not the code, is the main artifact that people write and review. The agent builds from it. The term has no settled definition, and the tools that carry the label differ in workflow. The few measured effects are mixed and mostly from 2026 preprints, and critics call the approach waterfall under a new name (Zaninotto, 2025).

What the term means

No agreed definition of spec-driven development exists. Böckeler (Thoughtworks) calls the definition unsettled. Her working one is to write a spec before code, with AI, and treat the spec as the source of truth for humans and AI (Böckeler, 2025). She defines a spec as a structured, behaviour-oriented natural-language artifact that guides coding agents, and notes that there is no general definition of a spec (Böckeler, 2025). The nearest consistent definition compares a spec to a product requirements document, and some people use “spec” to mean a detailed prompt (Böckeler, 2025).

In a later podcast, “spec” is described as fuzzy: sometimes a more elaborate prompt, sometimes 50 markdown files (Böckeler & Tacho, 2026).

The sources split on what the source of truth is. At one end the spec is the only source of truth and code a byproduct. At the other, specs only drive code generation and code stays the source of truth (Liu, 2025). Böckeler names three levels: spec-first, spec-anchored and spec-as-source (Böckeler, 2025).

She finds all the tools she examined spec-first, with long-term maintenance of the spec often left vague (Böckeler, 2025). An Atlassian engineer likewise says the definition keeps shifting (Atlassian, 2025).

Some vendor writing frames the spec as a better prompt. On Kiro’s blog, Marc Brooker defines a specification as a description of what a program should do and what needs it should meet. He calls it a version-controlled, human-readable “super prompt” (Brooker, 2025).

A conceptual preprint offers an operational definition with four commitments. Every non-trivial planned change starts from a written spec that is the contract for the change. The spec is version-controlled with the code and wins when it disagrees with another artifact (Díaz et al., 2026). It separates system specs (architecture and rules, kept in agent rule files such as AGENTS.md) from feature specs (one change with acceptance criteria) (Díaz et al., 2026). Its authors say the community has not converged on definitions of the surrounding terms either (Díaz et al., 2026).

The main tools and their workflows

The three best-known tools each split the work into phases that produce files an agent reads. Tessl was reported to be describing a move from code-centric to spec-centric development as early as 14 November 2024 (McKay, 2024). Kiro’s launch post, dated 14 July 2025, presented spec-driven development as what the tool helps developers do. It argued that specs guide agents to a better implementation as they help developers plan (Swaminathan & Singh, 2025).

GitHub announced Spec Kit on 2 September 2025. It defines SDD as starting from a spec that is a contract and source of truth for generating, testing and validating code (Delimarsky, 2025). Its documentation gives the process as Specify, Plan, Tasks, Implement, Converge, each phase producing a Markdown artifact that feeds the next (GitHub, 2026). GitHub describes the change as a move from code to intent as the source of truth (Delimarsky, 2025). Spec Kit’s design document goes further: maintaining software means evolving specifications, and code becomes “the last-mile approach” (GitHub, n.d.d).

Kiro (Amazon Web Services) generates three files for every spec: requirements (or a bug analysis), a design, and tasks (Kiro, 2026). Its launch post shows one prompt turned into user stories, each with acceptance criteria in EARS (Easy Approach to Requirements Syntax) notation (Swaminathan & Singh, 2025). Böckeler describes its requirements as user stories with GIVEN/WHEN/THEN acceptance criteria (Böckeler, 2025). Tessl defines SDD as capturing intent in structured specifications so that agents build with clarity and guardrails, and launched a spec framework and registry in September 2025 (Maple, 2025).

Observers disagree on which level each tool reaches. Böckeler finds Spec Kit spec-first only, not keeping the spec anchored to the code over time. She sees Tessl as the only one of the three that aims to be spec-anchored and explores spec-as-source, with generated code marked do-not-edit and one spec per code file (Böckeler, 2025). Eberhardt, by contrast, treats Spec Kit as the purest form of spec-as-source, and says the tools labelled SDD are not one practice (Eberhardt, 2025).

Older uses of the phrase and its lineage

The phrase predates AI agents. In July 2021 an API vendor used “spec-driven development” for writing an OpenAPI specification before any server code, also called design-first or contract-first (Haselaars, 2021). Böckeler says the term is not new and that it became common only in the six months before May 2026 (Böckeler & Tacho, 2026).

Authors place the current practice in a longer line of specification-first methods. One lists four lineages: program synthesis from formal specifications, model-driven engineering, design by contract and requirements economics (Alenezi, 2026).

Another traces the principle that a spec should precede implementation to five decades of software engineering, from waterfall to requirements standards. Cost, decay and traceability are old problems there (Agarwal et al., 2026b). A third calls behaviour-driven development (BDD) the most direct ancestor and test-driven development (TDD) “SDD at the unit level”. It adds that API-first work with OpenAPI has long treated specs as contracts (Piskala, 2026).

Sources disagree on how much is new. Piskala quotes a practitioner who says SDD is “just BDD with branding” (Piskala, 2026). Díaz and colleagues answer that the novelty is not specs but their pairing with an agent, so the transformation engine is a stochastic agent instead of a deterministic generator (Díaz et al., 2026). Agarwal and colleagues say it returned because the reader is now an agent that consumes natural language (Agarwal et al., 2026b).

Measured effects on agent output

Controlled evidence is thin and mixed, and most of it comes from 2026 preprints and workshop papers. Several studies find that a spec step helps agents run or test code better. In a migration benchmark, a full specification raised the share of output that loaded cleanly from 72.0% to 97.3%. Correctness against a live database did not change: 19 of 42 probes were right with and without it (Grynets et al., 2026).

Two other studies report gains in tests and from-scratch programs. At Google, an agent wrote a semi-formal spec of pre-conditions and post-conditions before generating tests. It found 9.8 percentage points more of 90 historical production bugs (p = 0.0352). The gain was 4.2 points at one run and grew with more runs (Tufano et al., 2026). On ProgramBench, a two-stage agent that elicits a behavioural spec before coding raised test pass rates by 6.9% to 21.3% across four models (Chen et al., 2026u).

A repository-level benchmark found that writing a requirement document from a vague intent first beat coding straight from the intent on all three benchmarks (Chen et al., 2026h).

How much a fuller prompt helps depends on the task. In a study of 10 models, vague wording hurt correctness on a simple function-level benchmark. It had near-zero net effect on a richer one, whose descriptions, constraints and examples repeat each other. Some rewordings even improved correctness (Akli et al., 2026).

The format of a spec can make errors easier to catch. In a single-author preprint, requiring each line of generated code to cite the requirement it implements let an automated check flag about 86–88% of invented code, against 0% without citations. The cost was output that varied more between runs (Panda, 2026a).

Studies of the commercial tools find small or no effects, and none is a controlled test. A study of 88,052 open-source pull requests found no difference in defect introduction between pull requests with and without specification artifacts. It measured mostly references to tickets, not tool output, and covers open-source work only (Hill, 2026).

A multi-agent pipeline with context-grounding hooks, built on Spec Kit, raised an LLM-judged quality score by 0.15 on a 1-to-5 scale over plain Spec Kit. Runs without spec artifacts had 40 minutes and runs with them 90, so the two families were compared only within each budget (Taghavi & Bhavani, 2026).

Speed gains reported for the tools cannot be separated from learning. In an exploratory study, four developers rebuilt one web application three times: with partial AI help it took 36.0 hours, with Copilot alone 9.4, and with Kiro 5.9. The phases always ran in that order, so the Kiro gain is confounded with the developers’ growing experience (Strübel et al., 2026).

A vendor-run benchmark of 50 Python tickets found a spec paid back its overhead on feature and data-pipeline tickets but not on bug fixes, refactors or test writing. Its noise band is about 10 percentage points, and the publisher sells related services (Uvik Software, 2026).

Small studies cited in support are demonstrations, not controlled tests. One banking project, built twice by the same developer, reported 73% fewer security defects with constitutional specs. Its author lists a single project and possible Hawthorne effects (people changing behaviour because they are observed) as limits (Marri, 2026). In a planted-bug experiment, plain AI review and BDD scenarios both caught all five bugs (Zietsman, 2026).

Some evidence points the other way. Repository context files such as AGENTS.md did not generally improve agents’ task success. They raised cost by over 20% on average. This tests written guidance, not a spec-first workflow (Gloaguen et al., 2026).

One developer rebuilt a feature with Spec Kit. It took 33 minutes of agent time and 3.5 hours of review, against 8 minutes of agent time for his usual prompting, with no quality gain. He concluded he was about ten times faster without SDD (Eberhardt, 2025).

Tests as the specification

A test suite can serve as the specification itself, and results depend on what the tests show the model and how the agent uses them. Supplying tests with the problem helped GPT-4 Turbo solve 12.0% and 8.5% more problems on two benchmarks. Prompts that encouraged or discouraged writing tests, the core of test-driven development (TDD), made no significant difference to four models on SWE-bench Verified (Mathews & Nagappan, 2024; Chen et al., 2026q).

What helps is the expected outputs, not the suite’s power to catch errors. In a study of five models, correct expected outputs in the visible tests raised accuracy on a function-level benchmark for all five. Test suites that caught 30.3 percentage points more errors changed accuracy by only −0.6 to +1.1 points, with every interval including zero (Liang et al., 2026a). Whether the model sees the tests matters too: on a hard benchmark, test visibility changed performance across five models, nearly doubling correctness for some (Ben Sghaier et al., 2025).

At repository level, the raw tests help less than what running them reveals. Feeding bug reproduction tests (tests that make a reported bug appear) straight into patch writing gave limited or negative gains. Turning their runs into runtime diagnoses raised resolved tasks on SWE-bench Pro by 8.0 to 8.9 percentage points (Guo et al., 2026i). The reverse task, writing the test before the fix, has its own benchmark. TDD-Bench Verified gives a model 449 real GitHub issues and asks for a test that fails before each fix and passes after (Ahmed et al., 2024).

SDD in practice Weak evidence: few or small studies support this

Practitioners use SDD selectively and report more reliable agents at higher planning and review cost. An interview and repository study found spec files in over 73,000 public GitHub repositories, almost all first committed in 2025 or later (Agarwal et al., 2026b). Participants used SDD mainly for new features (Agarwal et al., 2026b). They credited faster delivery to AI rather than SDD and could not separate the reliability benefit from model improvements (Agarwal et al., 2026b).

The same preprint says no empirical study had broadly examined modern SDD practice before it, and that earlier studies were small (Agarwal et al., 2026b). The first international workshop on the specification-driven development life cycle, SpecOps, met on 6 October 2026 alongside the ISSTA conference (SpecOps 2026 organisers, 2026). The same preprint also says evidence for the claims of SDD proponents comes largely from tool vendors (Agarwal et al., 2026b). A retrospective four-month pilot of Spec Kit in three teams reported shorter lead times, and its authors call the findings indicative only (Farrag, 2026). In a university course, agent use under SDD raised implementation throughput but tended to encourage students to proceed without fully understanding the code (Tanaka et al., 2026).

Criticisms Contested: studies disagree on this

Critics raise review burden, ceremony, drift and a return to waterfall, mostly as opinion from hands-on trials. Böckeler found Spec Kit’s many repetitive Markdown files tedious to review and said she would rather review code (Böckeler, 2025). Kiro turned one small bug into 4 user stories with 16 acceptance criteria (Böckeler, 2025). Thoughtworks’ Technology Radar says some tools generate lengthy spec files that are hard to review (Thoughtworks, 2025).

Agents do not always follow the spec, and specs go stale. Böckeler saw agents ignore instructions and duplicate existing classes despite large context windows (Böckeler, 2025). Interview and Reddit data describe implementation drift (agents departing from the spec) and spec decay (specs going stale as code changes) (Agarwal et al., 2026b). Zaninotto argues that SDD shines on new projects, but that specs miss the point more often as an application grows (Zaninotto, 2025). Cost shifts to planning: one team found spec-driven runs used two to three times the tokens and about twice the time of direct prompting (Agarwal et al., 2026b).

The waterfall charge is disputed. Zaninotto argues SDD revives the heavy documentation of the waterfall era and risks burying agility under Markdown (Zaninotto, 2025). Eberhardt, after one trial, did not consider the purest form viable and argues code, which is formal and testable, is what to trust (Eberhardt, 2025). Liu replies that the approach differs because feedback loops are shorter (Liu, 2025). Böckeler doubts up-front design and favours small iterative steps, and compares spec-as-source to model-driven development, which never took off for business applications (Böckeler, 2025).

Further reading

  • Böckeler (2025): a hands-on comparison of Kiro, Spec Kit and Tessl, with the spec-first, spec-anchored and spec-as-source levels.
  • Agarwal et al. (2026b): interviews and repository mining on how SDD is practised, including drift, decay and cost.
  • Díaz et al. (2026): a conceptual definition of SDD by four commitments, with five human-agent patterns.
  • Hill (2026): a pull-request study of whether specification artifacts reduce defects.
  • Piskala (2026): SDD placed against BDD, TDD and API-first development, with a decision framework.

Known gaps

What this article cannot tell you yet.

  1. No controlled study compares Spec Kit, Kiro or Tessl with other ways of working. The measured studies mostly use specifications that agents wrote from code or binaries, not specifications written by people.
  2. The practice evidence rests on one large preprint plus a few small or indirect studies.
  3. The effect of test-first against no-test-first prompting on a current frontier coding agent was not researched.
  4. The criticism of the term comes from blogs, a podcast and single trials, not from peer-reviewed work.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 42 references