Spec-Driven Development: Approve the Plan, Then Fan Out
Spec-driven development is a way of working with coding agents in which a written specification, and then a plan, is reviewed and agreed before any code is written. The usual sequence is specify, plan, review, implement. It moves a person's judgement to the point where it is cheapest to change course: a bad line in a plan costs a comment, while the same mistake in code costs a rewrite. With one agent this is good practice. With twenty agents working from the same plan, it becomes the most efficient review you can do, because one approval covers all of them. This article explains the method, what the evidence says about its costs, and how to make an approved plan a hard gate before a run of many agents.
What spec-driven development means
GEICO's engineering blog gives a compact definition: "SDD treats specifications as the primary engineering artifact and code as generated output." The phases are "some variant of specify, plan, decompose, implement", and in GitHub's Spec Kit, "a four-phase workflow — specify, plan, tasks, implement". As the same post notes, "Each phase produces artifacts that the next phase consumes" (read 27 Nov 2026).
HumanLayer, whose workflow became one of the best-known versions before the company joined Factory (the company at factory.com, not Forkit's feature of the same name) on 4 Nov 2026, described three steps in "Advanced Context Engineering for Coding Agents" (August 2025):
- Research: "Understand the codebase, the files relevant to the issue, and how information flows."
- Plan: "Outline the exact steps we'll take to fix the issue, and the files we'll need to edit and how."
- Implement: "Step through the plan, phase by phase."
And the reason to review early: "a bad line of a plan could lead to hundreds of bad lines of code."
Spec vs plan
The two words are often used for the same document, but they do different jobs.
| Spec | Plan | |
|---|---|---|
| Answers | What should be true when we are done, and why | Which steps, in which files, in which order |
| Written by | Usually a person, sometimes with an agent | Usually an agent, from the spec and the code |
| Changes when | Requirements change | The code turns out different from what was assumed |
| Review asks | Is this the right thing to build? | Will these steps build it without breaking anything? |
| Risk | Too vague to act on | Invents details the spec never asked for |
The last row matters most with agents. A plan written by an agent can quietly add an API, a migration or a dependency that nobody asked for. Reviewing the plan, not only the spec, is where those additions are caught.
What the evidence says
The most thorough study so far is "Spec-Driven Development as Prescribed and as Practiced" (Agarwal, Singhal, Macvean, Vasilescu and Breaux; arXiv 2608.25202, first posted 25 Aug 2026, revised 16 Nov 2026). It combines interviews with 21 practitioners, a thematic analysis of Reddit discussions, and an analysis of 266 active repositories, and releases a corpus of 470,795 spec files. Its findings, as read on 27 Nov 2026:
- Participants reported more reliable agent behaviour, but also greater planning and review costs.
- SDD was used selectively, mainly for new features.
- Specs often carried implementation detail, which "may help agents while making specs prone to decay."
- Specs were checked against code mainly when changes were completed, not continuously.
- Individual benefit came from clarifying intent before delegating; team benefit depended on SDD becoming a shared process.
GEICO's post lists the same costs from practice: over-specifying work that is later cancelled, spec drift ("SDD does not magically solve this"), a review phase that may increase total review work and is "not yet proven at scale", and the fact that "Most SDD frameworks are optimized for medium-to-large features."
The honest summary: planning first makes agents more predictable and costs time up front. Whether that trade pays depends on how much code the plan governs.
Where vendors stand
Most coding agents now have some form of plan step:
- Claude Code's plan mode researches and proposes changes without editing source files, then "presents a plan for approval before touching anything" (Anthropic glossary).
- Claude Code's agent teams let a teammate plan first, but by default "Claude Code approves the plan as soon as the request arrives, without the lead reviewing it" (agent teams docs, read 27 Nov 2026). That default is sensible for a single developer at the keyboard and wrong for an unattended run.
AGENTS.mdandCLAUDE.mdcarry the standing rules a plan should respect.- HumanLayer's research, design and plan review, with comments on versioned documents, is now part of Factory.
What these share is that the plan is approved for one session. The approval does not travel.
Making the plan a gate for many agents
When one planner splits a job across twenty workers, the plan is the only document every worker shares. That changes what review has to guarantee:
- The approval names a version. If the planner revises the plan after a person read it, the old approval must not cover the new text.
- Comments attach to lines. "Line 14 adds a dependency we do not want" is actionable. A general "looks mostly fine" is not.
- Asking for changes sends every open comment back at once, so the planner revises in one pass rather than twenty.
- The run cannot start without it. Not a convention, a refusal.
This is how Forkit's plans work (built 26 Nov 2026). An agent submits a plan (forkit plan submit FILE, the API, or codemode.submit_plan over MCP). People read it with numbered lines, comment on a line of a particular version, and approve that version or ask for changes. Only the planner's own person or a workspace owner may decide. An approval carries the version that was read; if a newer version exists, the approval is refused with a 409. Asking for changes sends that version's open comments to the agent as one message on its thread. A new version goes back to review, and lines removed since the previous version are shown struck through where they were.
The gate is at the start of the run. A fan-out started with plan_id (forkit fanout create --plan ID) is refused unless the plan's current version is approved. The planner can wait for the decision with forkit plan submit --wait, which exits 0 when approved and 1 when changes were asked, with the comments printed.
Requiring it for a workspace
An owner can tick one setting so that every fan-out needs an approved plan (require_plan): a fan-out without plan_id is then refused with 409. Plans waiting for review appear in the web inbox as "Plan to review", next to questions and permission requests.
Coming from HumanLayer
forkit import humanlayer [DIR] reads each .humanlayer/tasks/<slug>/ folder and submits its plan file as a Forkit plan, with the research and design documents attached as an appendix. It was built on 26 Nov 2026 and has not yet been used on real customer data. See migrating from HumanLayer.
How it fits with planners and workers
Spec-driven development and a planner-worker split solve different halves of the same problem. The plan says what should happen; the split decides who does each part. A useful plan for a fan-out names, for each worker, the files it owns, so the claims agents take later match what was approved. The planner-worker task decomposition guide covers the split; the plan is where a person signs off on it.
The plan does not replace other checkpoints. Permission requests for production, secrets and money still go to a person while agents work, and finished changes still go through review. The plan reduces how much those later steps have to catch. See human-in-the-loop approval for coding agents for the full set.
When it is overkill
Skip the formal gate when:
- The change is small. A one-file fix with a clear test needs a good prompt, not a reviewed plan. The research found SDD was used mainly for new features for a reason.
- One person is watching one agent. Plan mode in the session is enough; a separate approval step adds a round trip for nothing.
- The work is exploratory. If the point is to find out what is possible, a plan written before you know will be wrong. Run a small, cheap fan-out (or a shadow run) first, then plan.
- The spec cannot be kept up to date. A plan that decays after approval is worse than none if people keep trusting it. Treat an approved plan as the record of a decision for one run, not as permanent documentation.
Use the gate when many agents will work from one plan, when the work touches areas with approval rules, or when nobody will watch the agents while they run.
Sources
Read on 27 Nov 2026:
- Agarwal et al., "Spec-Driven Development as Prescribed and as Practiced", arXiv 2608.25202: https://arxiv.org/abs/2608.25202
- GEICO Tech, "An Introduction to Spec-Driven Development" (Sean Brandt): https://www.geico.com/techblog/an-introduction-to-spec-driven-development/
- HumanLayer, "Advanced Context Engineering for Coding Agents" (29 Aug 2025): https://www.humanlayer.dev/blog/advanced-context-engineering
- Anthropic, Claude Code glossary (plan mode): https://code.claude.com/docs/en/glossary
- Anthropic, Claude Code agent teams: https://code.claude.com/docs/en/agent-teams