Spec-driven multi-agent workflow, from idea to shipped

in Spec-driven development

An agent that writes a good function falls apart on a feature, because the decisions behind it get lost between chats.

  1. Why does one agent fall apart on a feature?
  2. What do you need?
  3. How does an idea end?
  4. What does a lane agent work from?
  5. How do I know a gate works?
  6. How often did I have to step in?
  7. What gets published, and what stops a leak?
  8. Where does the loop lose?
  9. Summary

Why does one agent fall apart on a feature?

A feature spans several files, takes more than one chat, and needs decisions only a person can make. One agent with a good prompt can write a function. On a feature, the code is rarely what goes wrong. The context is: a decision made in the planning chat is gone by the time a fresh chat builds the third file.

My fix is to never use the chat as the hand-off. Every step leaves a file, and the next step reads the file. A chat that starts a week later gets the same decisions the planner had, because they are on disk.

idea/bsverdictplanbriefsreadygrillgowavesshippedgate fails
Figure 1. The work loop: a failed gate sends the work back to plan.
idea /bsshapes, verdict ✕ verdict? park or rejectwritten, never argued again /mow plana brief per lane /mow readygrill the plan /mow goone wave of lanes ✕ gate shipped pursue last wave refused: fix round, or passed: next wave
  1. /bs weighs two to four shapes of the idea and writes a verdict.
  2. Park or reject ends there, as a doc with its reason.
  3. Pursue goes to /mow plan, which writes one brief per lane.
  4. /mow ready grills the plan and writes each answer back into it.
  5. /mow go builds one wave of lanes; a gate checks it.
  6. A refused wave gets a fix round; a passed one opens the next wave. After the last wave, the run ships.
Figure 2. The loop every change takes.

The running example is the build of this site, aiwow.dev. Its plan is called ai-wow-dev-site, and every output below comes from its records.

/bsverdict doc /mow plana brief per lane /mow readygrill answers /mow gowaves, gates build logeach step-in /buildscrubbed records a refused gate sends the work back
Figure 3. The file each step leaves for the next.

What do you need?

Claude Code, a git repository, and the bs and mow skills installed in Claude Code. You don't need any of it to take the ideas: each step below works as a habit with nothing but Markdown files.

Tool Used for
Claude Code the chats, and the subagents that build each lane
bs and mow skills the four steps: brainstorm, plan, ready, go
taskman 1.0.0 (Python 3.12+) the task board and the gate scripts
git worktrees one isolated checkout per parallel lane
FastAPI 0.143+ the /build pages that publish a run's records

How does an idea end?

Every idea ends with one of three words, pursue, park or reject, written to docs/brainstorms/. /bs weighs two to four shapes of the idea, and the session never ends as chat only. Ending every idea with pursue, park or reject covers the session itself.

As of 3 November, the registry in my harness repo holds 98 brainstorms: 71 pursued, 15 parked, 1 rejected, 2 scrapped and 9 still open. A park is worth the most, because it carries a condition for coming back. This site's own brainstorms parked infrastructure-as-code with "launch by hand, import into Terraform after", to be reopened once the lane that sets up the server is done.

A park also stops the same argument twice. On 13 October I parked LLM tracing across my apps: no app had an LLM feature in production, so there was nothing to trace. Later the same day a second chat asked /bs about tracing for this site. /bs found the park and the idea stayed parked: this site's registry got a one-line pointer to the first verdict, not a second brainstorm.

A park is only as good as its condition. "When lane G is done" can be checked. "Later" can't.

What does a lane agent work from?

It works from a brief: a Markdown file an agent can act on without the conversation that produced it. /mow plan writes one per lane. The site's plan has 8 lanes in 5 waves, and this is the top of the design lane's brief:

# site-design: give ai-wow.dev a plain baseline design, 390px first, light and dark

**Role:** code-edit   **Wave:** 4   **AFK:** yes   **Background:** yes

AFK means it can run with nobody at the keyboard. Below the header come the goal, the decisions it needs, the files it owns, a "Do NOT" list, the acceptance checks and a verification block the agent must fill in. The brief is 115 lines. Before any lane runs, /mow ready grills the plan one question at a time, with a recommended answer each time, and writes every answer back into the plan and each brief it touches.

Lanes in one wave own different files, so they run in parallel without stepping on each other. The site's wave 2 ran 4 lanes at once (feeds, database, deploy, monitoring) for 66 minutes. The design lane owns the same templates as the skeleton lane, so the two never share a wave: the skeleton ran in wave 1, and the design waits for wave 4. If two lanes would edit the same file, they belong in different waves. /mow: multi-agent orchestration for AI coding agents goes deeper on waves, and What happens when two agent sessions share a checkout shows what breaks without the rule.

A brief can go stale. After this one was written, I moved the site's font, so the design brief now opens with a note telling the next run to re-grill it before building.

How do I know a gate works?

I break the thing it protects and watch it fail. A rule written in prose gets skipped the first time a run is under pressure. A check that exits non-zero gets run. A guard you never saw fire isn't a guard tells the longer story.

On 15 October I banned eyebrow labels, the small uppercase line above a heading. The UI ban check enforces it. Version 3 of this site's landing mockup, from the same day, still has one. Here is the check run against it today (path shortened):

$ python3 bin/tests/test_ui_bans.py --file v3-old.html
  PASS  chip detector refuses outline chips and passes the pull quote's ink rule; eyebrow dash bounds hold
  FAIL  v3-old.html: `.btn-secondary` draws its border and its label in one colour (outline-chip ban, rules/ui-design.md)
  FAIL  v3-old.html: `.band .kicker` draws an eyebrow label (eyebrow ban, rules/ui-design.md)
  FAIL  v3-old.html: `.kicker` draws an eyebrow label (eyebrow ban, rules/ui-design.md)
  FAIL  v3-old.html: `.kicker::before` draws an eyebrow label (eyebrow ban, rules/ui-design.md)
  PASS  no font pairing offered in 10 template(s)

4 failure(s)

It exits 1, and each line names the selector, so the fix is obvious. The current mockup passes with 0 failure(s). A check that has only ever passed in front of you might be reading the wrong file, or nothing at all.

The loop's own hand-offs run through four scripts like this:

Gate Runs at Refuses
Board import end of /mow plan a brief with no owned files, no requirement or no "Do NOT" list
Preflight start of /mow go an ungrilled plan, two lanes in one wave owning the same file
Close-out end of /mow go no ship-check verdict, or one whose plan hash is stale
Wrap-up end of every chat changed files no task claims

Close-out reads a line like this one, from a follow-up run that shipped on 19 October:

Ship-check: done 2026-10-19 · plan sha256:208f2c7e · L1 0 critical · L2 0 critical · L3 0 critical · by general-purpose (ship-check, fable)

Edit the plan after the check, and the hash no longer matches, so close-out refuses.

How often did I have to step in?

The build log answers it: every time I step into a build, one line goes into docs/build-log.md. The /mow go orchestrator writes it as it happens. The format is fixed, so a script can read it:

- YYYY-MM-DD HH:MM · <stem> · <kind> · <reason>
- 2026-10-13 18:38 · ai-wow-dev-site · decision · the docs import rewrites inline diagram styles to classes to keep the strict CSP (d#5)

A line that doesn't match the format makes the ingest exit 1 and name its line number. Each line has one of four kinds:

Kind When
correction the work went the wrong way and I said so
unblock an agent was stuck on something only I could give it
decision a choice that was mine to make, like a font or a vendor
rescue a lane was resumed, re-dispatched or sent through a fix round

The site's run has 9 lines. Seven are the grill's decisions, written before wave 1. One is a correction at the wave 2 gate: fix the image's missing database migrations before the next lane. The last is a decision two days later, moving the site to a new font. No unblock and no rescue. Counting the kinds per build is the honest measure of how much the agents did on their own.

What gets published, and what stops a leak?

Three files per build, opt-in one build at a time: the plan, the action report and that build's log lines. scripts/import_records.py <stem> copies them to /build/<stem>. Briefs, trackers and verification files are never read. Before copying, it scans for anything private (my blocklist, chat numbers, session ids, temp and home paths), and one hit refuses the whole import.

No build is published yet. I ran the import today on a copy of the site's own plan, and it refused (path shortened):

$ uv run python scripts/import_records.py ai-wow-dev-site --repo <scratch copy>
refused: 4 hit(s); <scratch copy>/content/records left untouched
docs/plans/ai-wow-dev-site/plan.md:3: chat-number
docs/plans/ai-wow-dev-site/plan.md:98: chat-number
docs/plans/ai-wow-dev-site/plan.md:102: home-relative-path
docs/plans/ai-wow-dev-site/plan.md:169: chat-number

A plan written for agents is full of chat numbers and paths. Each hit names its file and line, so the fix is four edits to plan.md, then a second run. Nothing partial gets published in between.

Where does the loop lose?

It is heavy. A medium change costs a brainstorm, a plan, a grill, preflight, a review per wave, ship-check and wrap-up. The four skills hold 2,827 lines of procedure as of 3 November. For a one-file fix it is slower, and the workflow says to skip it there: small work gets an independent review and a wrap-up, and /mow is for work that spans todos or files.

The build log is young. Only the site's run has lines, so I can't yet compare runs by how often I stepped in.

A brief can go stale while it waits, as the design brief did. Nothing flags that on its own: the note at its top was written by hand.

Summary

  • Never use the chat as the hand-off. Each step writes a file, and the next step reads it.
  • End every idea with a written verdict. A park needs a condition you can check.
  • Give each lane a brief it can run cold, and keep lanes in one wave on different files.
  • Trust a gate only after you have seen it refuse a known-bad input.
  1. Start a build log today: one line per time you step in, with one of the four kinds. It costs nothing and shows how much your agents do alone.
  2. Before you fan out to parallel agents, check that no two lanes in one wave own the same file.
  3. Take one check you rely on, run it against a file with the defect, and read the failure.