Claude Code plugin · open source

Multi-agent Spec-Driven framework. Drafted by a team of agents, reviewed by you.

Waterfall runs eight specialized agents through a fixed V-cycle: requirements, specs, design, implementation, review, validation, closure. Each phase produces a written file you review before the next one starts.

quick install /plugin install waterfall@waterfall
8 specialized agents
10 fixed phases
10 documents produced
scroll
01 / Problem

LLMs are confident even when wrong.
Errors compound at every step.

One vague prompt, one missed assumption, one improvised refactor — and the agent ships code that compiles, looks plausible, and is wrong from end to end. Reviewing it afterward is harder than writing it yourself.

error cascade

How errors cascade

prompt✓ understood
plan✓ plausible
design~ assumed
impl.✗ drift
tests✗ rewritten to pass
PR✗ merged anyway

Each phase builds on the previous one's mistakes. By the time you review the PR, the original intent is lost.

context window

Long context degrades output

fresh context compaction
sharp degraded unreliable

Past a threshold, the model loses track but keeps writing. Waterfall keeps phases small and scoped, so every file is produced in fresh context.

The process produces files you sign off on at every checkpoint.

02 / Agents

Eight agents, one human, one trail.
Each role owns one job and hands off in writing.

One giant prompt is a single point of failure. A team of specialized agents produces traceable files, each with a named owner.

OR

Orchestrator

Drives the state machine: locks scope, sequences phases, and calls the next agent. Never writes product content.

  • in ticket, tracking
  • out phase transitions
PM

Product Manager

Interviews HO and writes PRD.md. Owns the Requirements phase, and also drives Closure (retro, PR).

  • in HO interview, trigger
  • out PRD.md, retro.md
PO

Product Owner

Reads the PRD.md written by PM, then writes the functional specs and acceptance criteria. Starts at the Functional specs phase.

  • in PRD.md
  • out functional specs, AC
TL

Tech Lead

Owns the technical design: picks the architecture, documents trade-offs, and decides hosting and stack.

  • in functional specs
  • out technical design
RV

Reviewer

An independent gate at every phase boundary. Reads, challenges, and blocks — but never writes the file it reviews.

  • in any artefact
  • out review verdict
DV

Developer

Writes the code, and only the code, against frozen specs. Never reopens a closed phase.

  • in tech design
  • out code, diffs
QA

Quality Assurance

Replays the acceptance criteria against the build, across browsers and flows. Reports failures with evidence.

  • in AC, build
  • out validation report
DS

Designer

Visual and interaction design, when the deliverable has a UI. Works with PO on flows and TL on feasibility.

  • in functional specs
  • out mocks, design tokens
HO

Human Operator

You — the only non-agent role. You set the scope, sign every gate, and are accountable for what ships. Waterfall is built around your sign-off, not around removing it.

  • in any artefact, any diff
  • out approval, change request, block
Hand-off lane

Read left to right. Every arrow is a written file. HO checkpoints sit below — each one gates the transition above it.

  1. ORticket
  2. PMrequirements
  3. POspecs
  4. TLdesign
  5. DVcode
  6. QAvalidation
  7. ORclosure
  1. HO sign-off after design RV gate · before any code
  2. HO sign-off after code review RV gate · before validation
  3. HO sign-off after validation before closure
03 / Methodology

A V-cycle, end to end.
Every phase has an artefact. Every artefact has a gate.

Verification on the way down (what we're going to do, written). Validation on the way up (what we did, tested against what we wrote). Coding sits at the bottom — last, not first.

Verification — going down Validation — coming back up
  1. 01 · Bootstrap OR
  2. 02 · Requirements PM
  3. 03 · Functional specs PO
  4. 04 · Technical design TL
  5. 05 · Review RV · HO
  6. 06 · Planning TL
  7. 07 · Implementation DV
  8. 08 · Code review RV · HO
  9. 09 · Validation QA
  10. 10 · Closure OR · HO
HO Human owner — signs every gate.
Artefact Every phase produces a written, reviewable file.
Gate No phase advances without explicit approval.
Artefacts — the paper trail

Every acronym you'll see across the cycle. Each one is a file the next agent reads.

Code Artefact What it is Owner
EX Experience expectation A user-facing expectation in specs.md, prioritized MUST / SHOULD / MAY. Every downstream file traces back to one. PO
INV Invariant A rule the system must always preserve, in specs.md. Cross-cutting — it doesn't belong to any single EX. PO
TF Functional test A testable GIVEN / WHEN / THEN scenario in acceptance.md. QA replays it at validation. PO
T Task A sized unit of work in tasks.md, traced to one or more EX. The DV works through these. TL
B Blocker A review finding in review.md serious enough to block sign-off. Must be resolved before the artefact is approved. RV
Q Question A clarification raised during review in review.md, routed to PM, PO, or TL. It doesn't block, but it must be answered. RV
ADR Architecture decision An architectural decision recorded in design.md with context, options considered, and rationale. TL
DEC Decision A non-architectural decision logged in tracking.md or retro.md — scope, trade-off, process choice. any
OBS Observation An observation about the workflow itself, logged in tracking.md or or.log while it runs. Collected into retro.md at closure. any
05 / Install

Three commands. One plugin.
Then drive Claude Code with /waterfall.

Waterfall ships as a Claude Code plugin. No build step on your side.

  1. 01

    Install from the marketplace

    Register the marketplace, then install the plugin. No clone needed.

    claude
     /plugin marketplace add mgallet92i/waterfall
     /plugin install waterfall@waterfall
  2. 02

    Configure Waterfall at the repo root

    Copy .wf-config.example.json to .wf-config.json and set models per role, review-loop budgets, the watchdog interval, and Dark Factory. Defaults apply if the file is missing. The schema is documented in .wf-config.example.md.

    shell
    $ cp .wf-config.example.json .wf-config.json
    # edit models, review_loops, dark_factory…
  3. 03

    Open a ticket and let the orchestrator run

    OR walks you through Bootstrap → Requirements. Each gate asks you for approval.

    claude
     /waterfall:new add-google-workspace-sso
    # OR creates ticket WF-014, hands off to PM…
06 / Trade-offs

Waterfall is not free.
Here's exactly what it costs.

Some changes are too small to deserve a V-cycle. Some are too big to ship without one.

  • 3–5×

    process length

    vs. one-shot prompting. You write the specs before the code — that's the point.

  • 2–4×

    token consumption

    Multiple agents read each file. Context is fresh each phase, not accumulated across one long session.

  • N/A

    tiny edits

    If your change is a typo or a one-line fix, skip Waterfall. Use it where review matters.

  • −15%

    tokens — subagent vs team

    The default agent_mode: subagent (Agent tool, no inter-agent messaging) runs slightly cheaper than team mode and is more predictable: PM stays in charge of every spawn, with no idle teammates to nudge. Use team only if agents need to talk to each other directly.

07 / Why Waterfall

No vibe coding,
by design.

Five reasons teams adopt Waterfall — each a deliberate choice, not just a feature.

01

Structured methodology

A 10-phase state machine. Phases are named and ordered, and every transition produces a written file. Each cycle is exactly as long as the work needs.

02

Multi-agent parallelism

OR sequences the work. PM, PO, TL, and DS work in parallel where they can. RV stays independent. DV doesn't start until specs are frozen, so it never has to redo work.

03

EX → specs → code traceability

Every line of code maps back through the technical design, the functional specs, and an EX. Reviewing a diff means re-reading three files, not guessing the intent.

04

Dark Factory mode

Maximum autonomy: agents run end to end. HO only reviews at named checkpoints — typically Review (after design) and Closure (after validation). For teams that trust the output and want speed.

Bootstrapauto
Requirementsauto
Functional specsauto
Technical designauto
ReviewHO
Implementationauto
Code reviewauto
Validationauto
ClosureHO
05

Human control, by design

HO must review artefacts and code. That sentence is in the plugin's default config, on every gate, and on this page on purpose. Waterfall is not built to take humans out of the loop. It's built so the humans in the loop read the right thing at the right time.

copied