Examples

July 24, 2026 ยท View on GitHub

Start with the offline quickstart. It defines cases, an agent, a judge, a starting prompt, and a custom candidate generator in one file.

Evaluation And Improvement

GoalExampleRequirements
Improve with a custom SurfaceProposerselfimprove-quickstartOffline
Wrap an existing agentforeign-agent-quickstartOffline or an OpenAI-compatible endpoint
Compare official GEPA and SkillOptcompare-optimization-methodsPython optimizer packages and an LLM endpoint
Evaluate several attempts per casemulti-shot-optimizationOffline
Apply a release rule without searchheld-out-gateOffline
Load folder-based caseseval-fixtures-quickstartOffline

Run an offline example from the repository root:

pnpm tsx examples/selfimprove-quickstart/index.ts

Run one official optimizer:

OPTIMIZERS=gepa \
LLM_API_KEY="$OPENAI_API_KEY" \
GEPA_PRICE_IN_PER_M=0.4 \
GEPA_PRICE_OUT_PER_M=1.6 \
pnpm tsx examples/compare-optimization-methods/index.ts

Replace the example rates with the exact endpoint rates. Use OPTIMIZERS=skillopt for SkillOpt or OPTIMIZERS=gepa,skillopt for a shared comparison. Read the optimizer install instructions first.

Existing Data

GoalExample
Analyze human approvals and rejectionscustomer-feedback-loop
Analyze OpenTelemetry spanscustomer-otel-traces
Record and compare scores over timescorecard
Reuse file-based cases and cached resultseval-fixtures-quickstart

Benchmarks And Training

GoalExample
Run public benchmark adaptersbenchmarks
Export supervised and preference rowspublish-rl-dataset
Fine-tune through Prime Intellectfine-tune-with-prime-rl

Execution

GoalExample
Coordinate workers across processesdistributed-driver
Evaluate a multi-turn simulated useruser-simulation-driver
Run setup, execution, and scoring in one work directorysame-sandbox-harness
Receive optional hosted eventshosted-ingest-server

_shared/ contains fixtures reused by multiple examples. It is not a standalone example.