ax-gepa
Installation
SKILL.md
GEPA Optimization Codegen Rules (@ax-llm/ax)
Use this skill to generate GEPA optimization code. Prefer the top-level optimize(...) helper for normal code, and use direct AxGEPA / AxBootstrapFewShot only when the user needs low-level optimizer control.
Use These Defaults
- Use
optimize(program, train, metric, { studentAI, teacherAI, ... })for normal generator and flow tuning. - Prefer
ai(),ax(), andflow()for new code. - Use a strong
teacherAIand a cheaperstudentAI. - Pass
validationExampleswhen you have a holdout set. - Set
maxMetricCallsto bound optimizer cost;optimize(...)defaults it to100. - Use scalar metrics for one objective and object metrics for Pareto optimization.
- Apply results with
program.applyOptimization(result.optimizedProgram!). - For tree-wide runs, expect
optimizedProgram.componentMap. - Persist artifacts with
axSerializeOptimizedProgram(...)and restore them withaxDeserializeOptimizedProgram(...)so the same flow works in browsers and Node. optimize(...)runsAxBootstrapFewShot -> AxGEPAfor small starter sets by default, preserving the demos inresult.optimizedProgram.demos.