Test, Eval, and Optimize Commands¶
Run Tests¶
Runs every @test: case and exits 1 if any fail.
Run Evals¶
Runs each @eval: metric over matching test_data or fallback training data.
Run Optimization¶
Optimization is independent of --eval. Combine them to optimize first and
then report the resulting eval.
Select an Optimizer¶
Choices are mock and gepa; CLI default is mock. Use mock for deterministic
infrastructure tests, not production prompt improvement.
Configure GEPA Models¶
kedi program.kedi --optimize --optimizer gepa \
--optimizer-model openrouter/minimax/minimax-m2.7 \
--optimizer-reflection-model openrouter/minimax/minimax-m2.7
Each option has a matching KEDI_OPTIMIZER_* environment variable.
Configure Budgets¶
kedi program.kedi --optimize --optimizer gepa \
--optimizer-max-metric-calls 100 \
--optimizer-model-max-tokens 8000 \
--optimizer-reflection-model-max-tokens 32000 \
--optimizer-reflection-minibatch-size 3 \
--optimizer-max-validation-examples 20
Start Fresh¶
Deletes optimized prompt/scores files and the GEPA checkpoint directory.
Disable Codegen Cache¶
This controls > auto:'s .cache.kedi, not optimized prompt artifacts or the
Python API response cache.
Quiet Mode¶
--quiet suppresses codegen and GEPA progress output. It does not suppress
errors or final test/eval results.
Generated Artifacts¶
.cache.kedi: AI-generated tests/implementations;.kedi.optimized.json: optimized prefixes;.kedi.optimized_scores.json: training scores;.kedi.gepa/: resume checkpoints.