Step-by-step answer
Core 2–3 hours7 stepsBuild a small reflective optimiser on claude -p
A GEPA-style loop in under 200 lines of Python, on claude -p. Haiku drafts searches reports from a candidate instruction; a metric returns a score and a fee earner's feedback; Opus reads failing traces and rewrites the instruction; a child is kept only if it beats its parent on the same minibatch; and parents are sampled from a Pareto front of candidates that are best on at least one validation pack. Cost is logged by role, and the winner is judged once on a frozen test split against the seed and a hand-tuned prompt.
Back to the exercise