How it works
The architecture in five minutes — enough to predict what the tool will do before you run it.
Artifacts are the message bus
Most AI coding fails the same way: one long conversation that slowly degrades. sdd avoids that structurally — each stage reads a small, real file and writes another.
The files live in specs/<feature>/, committed and human-editable, and
they're the only context hand-off between stages. That keeps every stage's
context small and fresh — and makes the pipeline restartable at any gate.
Two layers
Generic behaviour is kept strictly apart from project knowledge, so every agent's context
stays lean. The plugin ships the pipeline; sdd setup generates your project's
layer. First it asks the default model for this project (a specific version
— Opus 4.8 / Sonnet 5 / Haiku 4.5), then it works from evidence — detecting the
stack, running the safe commands for a real baseline, and drafting PRODUCT.md
from the code, which it asks you to correct.
A greenfield repo has nothing to infer from, so it interviews you
instead — what the product is, its users' needs, the first feature, what success looks like,
hard constraints, non-goals, the domain, and how ambitious it is (MVP vs production) — and
synthesises a substantive PRODUCT.md from your answers. It then suggests
the domain experts most useful for that product; keep them, or describe any expert
in your own words and sdd fleshes it out. Each becomes an editable
experts/<name>.md you can tune by hand.
Inference is presented as a correction, never as fact.
Guided, not just gated
Gating the decisions only helps if the tool makes each decision easy. So every AI stage opens with a one-line preamble — which model it's running and which project root — then interrogates you one question at a time, each with 2–3 suggested answers you can pick with a digit or override with your own.
Answered questions stay on screen as a transcript; press
esc to step back and revise one. Every wait streams live —
the spec or plan writing itself token by token, editing tags.ts during a build —
so you can see it working, not just a spinner. Nothing is written blind: the gate
previews the artifact (syntax-coloured, scrollable, clickable path), and you
can refine it in plain English — press e and say
"make task 3 use Postgres" — before it's written.
Always know where you are. A pipeline ribbon
(spec → plan → build → review → ship) shows each feature's position in the
navigator and every stage header. And a greenfield repo settles the stack at
setup, with plan task 1 scaffolding the project — so build always has
real files to change.
A live navigator, not a wall of commands
Run sdd in a set-up repo and you land in a master-detail
navigator: features on the left, and the selected feature's full state on the
right — every stage with a glyph, a live build progress bar, and the next
step spelled out. Press ↵ to run it in the same frame. A fully
reviewed feature says ready to ship, and ↵ shows the
commit/PR/merge commands (always your gesture) instead of silently re-running review.
Below the panes, a persistent activity strip remembers what sdd did
("✓ task 3 verified (2 attempts)"); v opens the
kanban board of your GitHub Project right in the terminal — scroll the
columns, run a card's stage, or advance its gate. A build keeps running when you step back
(w re-attaches), and +/- sets the agent count.
Piped or in CI it prints a static summary instead; sdd help lists every command,
and sdd --version tells you what you're running.
The build: a cockpit, foreground or background
A build is the one stage that can run long, so it's the one with a real dashboard. A live panel shows the current task, what the agent is touching, the tokens it has spent, and your Claude plan usage — the 5-hour and weekly windows — so "am I about to hit a limit?" is always answerable. A retry names its cause (the failing test) instead of looping in silence.
╭─ 2 agents · 1/2 integrated ────────────────────────
│ ● task 2 greeting module editing greeting.ts 6.5k/885 · $0.27
│ ◐ task 3 farewell module integrating…
│ max · 5hr ▓▓▓▓░░░░░░ 36% · weekly ▓▓▓░░░░░░░ 28%
╰────────────────────────────────────────────────────
It runs in the background: leave it and go back to the navigator — a chip keeps tracking it, and you re-attach whenever you like. And when tasks are independent, it goes multi-agent — each task builds in its own git worktree, in parallel, then the results are merged back and verified one at a time. There's no dependency guesswork: genuinely-independent work parallelises for real, and anything that collides falls back to a sequential, re-verified pass rather than corrupting the tree.
Correctness comes from integration, not prediction. The engine never asks a model "are these independent?" — it merges each task in order and runs your tests after each, so a wrong guess costs a re-run, never a broken result.
Experts: perspectives, not stages
Experts are lenses convened in parallel at the two gates where diverse
perspective pays off: at the spec gate they raise their sharpest
questions (which you answer); at the review gate each reviews the diff
independently, findings are merged, and a skeptic pass refutes the weak ones
before anything reaches you. The roster is whatever you name at setup — a
"transit operations planner" for a bus app, a "clinical safety" lens for health — and the
model drafts each one's focus into an editable experts/<name>.md you can
tune by hand.
Domain experts are personas, not credentials. A medical
expert surfaces considerations for a qualified human, grounded in your
PRODUCT.md invariants — it never asserts domain facts from model memory.
The board: labels are the truth
For the autonomous workflow, gate state lives as labels on GitHub issues.
The runner polls for actionable labels and does the stage's work; you advance gates by
relabelling — which is all sdd approve and sdd bounce do.
The ticket's comment thread is the conversation: the runner drafts, posts
its open questions, parks under sdd:awaiting-you, and refines from your reply
on the next poll — idempotently. The optional GitHub Project is an aggregating
view, never a second source of truth.
Safety by containment, not trust
Builds branch off your trunk first (the runner uses an isolated worktree
per ticket, and a multi-agent build isolates each parallel task in its own worktree). The
build agent edits files but cannot run commands — the CLI
runs your tests and feeds failures back into the bounded fix loop. A
PreToolUse hook auto-approves read-only commands and routes anything
outward-facing to a human prompt.
Nothing merges itself, a red build parks instead of advancing, and ship is your gesture — always.
Multi-repo products
One product spanning several repos gets a thin product layer: a registry
of parts with a shared PRODUCT.md. Specs declare
## Touchpoints, plans decompose into per-part task groups, and the build
fans out — a branch and PR in each part's repo.
Walkthrough →
Deeper design notes
Each piece has a full design note in the repo: agents · experts · tracking · orchestration · ticket-dialogue · execution-safety · multi-repo