scripts/worktree-feature/ — Full Pipeline
Ghost doc — Real production workflow at
scripts/worktree-feature/. The most complex Smithers example: multiple CLI agents (Claude Code, OpenAI Codex) through a full development lifecycle.Pipeline
- Discover — Read PRD, break into ordered independent tickets
- Implement — Write code end-to-end per ticket
- Validate — Run
bun test - Review — Claude + Codex review in parallel
- ReviewFix — Address review issues
- Report — Generate final report
<Loop> until both reviewers approve or max iterations reached.
Schema Setup — smithers.ts
Entry Point — workflow.tsx
Agents — agents.ts
Validation Loop — ValidationLoop.tsx
Parallel Review — Review.tsx
Ticket Pipeline — TicketPipeline.tsx
Running
Key Patterns
createSmithersregisters 6 output schemas; generates typedtables,outputs, andTaskcomponents.ClaudeCodeAgent/CodexAgentrun real CLI tools with full filesystem access.<Loop>iterates implement/validate/review/fix until both reviewers approve orMAX_REVIEW_ROUNDSexhausted.<Parallel>runs dual review simultaneously; both must approve.ctx.latest(schemaKey, nodeId)reads the highest-iteration output for a task.- MDX prompts —
.mdxfiles serve as prompt templates with JSX interpolation. skipIfskips already-completed tickets on resume.continueOnFailprevents a single review failure from blocking the pipeline.- Dynamic ticket mapping —
unfinishedTickets.map()renders oneTicketPipelineper ticket.