intertwine avatar

Dspy Gepa Optimizer

GEPA is DSPy's reflective optimizer that reads your metric's textual feedback to evolve prompts and few-shots across a Pareto frontier. If your metric returns rich critiques (not just a float), GEPA beats MIPROv2 on complex tasks with fewer rollouts. The catch: you need a metric that returns dspy.Prediction(score=float, feedback=str), a strong reflection LM at temperature 1.0, and separate train/val splits where you actually maximize training data instead of the usual validation-heavy split. Use auto="medium" for everyday work, auto="heavy" before shipping. The feedback quality is the load-bearing part: vague critiques waste rollouts, specific ones about why it failed and what good looks like are what the reflection LM acts on.

skills.sh installs
103
GitHub stars
278
last updated
May 25, 2026

Install

$ npx -y skills add intertwine/dspy-agent-skills --skill dspy-gepa-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Files

DSPy GEPA Optimizer (3.2.x)

GEPA (Genetic-Pareto) is a reflective optimizer: it mutates a program's instructions and few-shots using an LM that reads your metric's textual feedback and proposes improvements. It maintains a Pareto frontier across validation tasks and is the default recommendation for complex DSPy workloads in 2026.

The expansion "Genetic-Evolutionary Prompt Adaptation" that appears in some AI-generated summaries is an LLM-hallucinated backronym. The paper defines GEPA as Genetic-Pareto; the "Pareto" is load-bearing (GEPA keeps a frontier of candidates rather than collapsing to one).

Prerequisites — do these first or GEPA wastes rollouts

Sponsors

Details

Repository
github.com/intertwine/dspy-agent-skills
Category
AI & Agent Building
License
MIT
First seen
Jun 11, 2026

More from intertwine/dspy-agent-skills

All 5
1awslabs avataramplify-workflowawslabs/agent-plugins'Build and deploy full-stack web and mobile apps with AWS Amplify Gen2101skills.sh installs
2pattern-ai-labs avatarjoin-meetingpattern-ai-labs/agentcallAgentCall (agentcall.dev) — Join a video meeting (Google Meet, Teams, Zoom) as an AI bot with voice and visual presence. Supports audio-only mode with voice int28skills.sh installs
3PicsArt avataragency-pitch-mockupsPicsArt/gen-ai-skillsClient-branded pitch mockups: hero, tiles, slides.5skills.sh installs
4aj-geddes avatarCausal Inferenceaj-geddes/useful-ai-promptsDetermine cause-and-effect relationships using propensity scoring, instrumental variables, and causal graphs for policy evaluation and treatment effects0skills.sh installs
5aj-geddes avatarClustering Analysisaj-geddes/useful-ai-promptsIdentify groups and patterns in data using k-means, hierarchical clustering, and DBSCAN for cluster discovery, customer segmentation, and unsupervised learning0skills.sh installs
6aj-geddes avatarCohort Analysisaj-geddes/useful-ai-promptsTrack and analyze user cohorts over time, calculate retention rates, and identify behavioral patterns for customer lifecycle and retention analysis0skills.sh installs