GAN-Style Harness
Separate generation from evaluation: a ruthless Evaluator drives a Generator past "AI slop" to production quality. Detalhes em references/.
When to Use
- Building complete applications from a one-line prompt
- Frontend design tasks requiring high visual quality
- Full-stack projects that need working features, not just code
- Any task where "AI slop" aesthetics are unacceptable
- Projects where you can invest $50-200 for production-quality output
Core Flow
- Planner expands the brief into an ambitious multi-sprint spec
- Generator implements one sprint against a sprint contract
- Evaluator tests the live app (Playwright) and scores design/originality/craft/functionality
- Loop feedback into the next iteration until score ≥ 7.0 or 15 iterations
- Simplify the harness as models improve — strip scaffolding that no longer pays
Example
# Full three-agent harness with custom quality bar
/project:gan-build "Build a recipe sharing platform" --max-iterations 10 --pass-threshold 7.5
References
references/agents.md— planner/generator/evaluator roles, behaviors, models, architecturereferences/rubric.md— four criteria 1-10, weights, pass thresholdreferences/usage.md— command, shell script, and manual Claude Code usagereferences/evolution-config.md— model stages, env vars, eval modes, anti-patterns, results, sources
Checklist
- Ambitious spec with evaluation criteria before any code
- Evaluator tests the live app, never just screenshots or code
- Feedback passed as
feedback-NNN.mdfiles, read each iteration -
GAN_MAX_ITERATIONSset; plateau after 3 iterations → human review - Evaluator critiques only; generator fixes — never the reverse