Design, 24 Nov 2026

Agentic Product Demo Engine

A requirement goes in. Five crews of agents turn it into a PRD, a prototype, a test suite, a working app and a client acceptance. Every crew is checked by an auditor, approved by the operator, and hands a versioned package to the next crew. It runs as a LangGraph graph in Python, CLI first.

1. The pipeline

PRD and prototype also go to the Developer crew Business Analysis 13 agents UI / UX 8 agents Test (test first) 6 agents Developer 5 agents, red to green UAT 4 agents Auditor Auditor Auditor Auditor Auditor Operator gate Operator gate Operator gate Operator gate Operator gate HANDOFFPRD, decisions, personas HANDOFFprototype, tokens, specs HANDOFFtest suite, all RED HANDOFFworking app, all GREEN RESULTaccepted, or defects defect or change request returns to the crew that owns it, as a new handoff version
Crews run in order and each one reads only the handoff before it. The Developer crew is the one place three handoffs meet: PRD, prototype and tests. UAT failures do not restart the pipeline; they go back to the owning crew, which issues a new version.
handoff package (versioned) operator approves (interrupt) goes back for a fix extra input

2. Inside one crew: the loop every crew runs

changes asked at the gate FAIL, round 1 or 2: fix with findings Work the crew's agents output Auditor own context PASS Operator gate interrupt() approved Handoff v1, v2, manifest next crew FAIL, round 3 Escalation interrupt() retry accept as is stop
The crew fixes its own audit failures twice; on the third failure the operator decides. The gate and the escalation are the only places the graph waits for a person, and neither runs an LLM call, so resuming never repeats work. State is checkpointed after every node.

3. The crews and their agents

Business Analysis

  • Intake reader
  • Interviewer (MCQs)
  • Market researcher
  • Competitor analysts parallel
  • Feature engineer
  • Persona and jobs
  • Risk and assumption ranker
  • KPI agent
  • Pricing benchmark
  • Compliance scan
  • Gap analyst
  • Requirements writer
  • Estimator (optional)
Gate inside: product definitionHands off: PRD, decisions, personas, features, acceptance criteria

UI / UX

  • Flow mapper
  • Layout researcher
  • Direction designers ×3 parallel
  • HCI critic
  • Design-system agent
  • Prototype builders, one per journey
  • Accessibility agent
  • Content agent
Gate inside: flow map, direction pickHands off: prototype, flow map, tokens, specs, test ids

Test (test first)

  • Test planner (Gherkin)
  • Unit test writer (Vitest)
  • E2E writer (Playwright)
  • API contract writer
  • RED verifier
  • Strength agent
Gate inside: test planHands off: suite failing on the empty boilerplate, trace matrix

Developer

  • Architect (schema, API)
  • Backend developer
  • Frontend developer
  • Refactor agent
  • Code reviewer
Loop: one RED test, least code to GREEN, refactorHands off: app on the boilerplates, all tests green

UAT

  • UAT checklist agent
  • Scenario walker (browser)
  • Defect router
  • Sign-off reporter
Gate: client sign-offResult: accepted, or defects to owners

4. What every auditor checks

ProvenanceEach fact matches a verbatim quote from the input, or an operator decision.
CompletenessEvery field of the handoff is filled and the crew's tools pass.
Qualityux-audit for UI, test strength for tests, lint and review for code.
ConsistencyNothing contradicts a handoff from upstream.

5. How it runs

pde CLI web UI later run, resume interrupt LangGraph parent graph one thread per product BA UI TEST DEV UAT each crew is a subgraph saves state after every node SQLite checkpointer LLM registry provider per agent Tools refuse when no source RAG index exact ids, then BM25 agents call Claude API key claude -p (CLI) product-demotools/*.js, kit skills, questionbank, intake
The CLI only starts, resumes and answers; the graph owns the order of work. Content stays in the product-demo repo and is reached through tools and the RAG index; this repo holds the engine.