GEPA-Based Lesson Optimization

lesson concepts active concepts/gepa-genetic-pareto.md View on GitHub

GEPA-Based Lesson Optimization

Rule

Use GEPA-inspired mutation to fix underperforming lessons: diagnose first, mutate content/keywords, validate with LLM-as-judge before applying.

Context

When LOO analysis shows a lesson with statistically significant negative delta (Δ < -0.05, p < 0.05) and the lesson content or keywords appear to be the cause.

Detection

Pattern

# 1. Diagnose underperformers (agent-workspace script)
python3 scripts/gepa-lesson-optimizer.py --bottom 5 --diagnose

# 2. Run Sonnet mutations — generates candidates, does NOT apply yet
python3 scripts/gepa-lesson-optimizer.py --bottom 5 --mutate

# 3. Validate with LLM-as-judge BEFORE applying
python3 scripts/gepa-lesson-optimizer.py --bottom 5 --judge

# 4. Apply only after judge passes
python3 scripts/gepa-lesson-optimizer.py --bottom 5 --apply

Common fixes

Outcome

Related

Match Keywords

gepa-lesson-optimizer gepa mutation run lesson mutation with gepa genetic-pareto lesson optimization apply gepa to lessons gepa optimizer bottom lessons