gepa-optimize
БесплатноБез исполняемых скриптовНе проверенOptimize a pydantic-ai agent's instructions, tool descriptions, output type, and signature inputs using the gepa CLI. Trigger when the user asks to "optimize…
от indexedlabs★ 37 звёзд на GitHubОб этом скилле
gepa-optimize
You are the reflection model. The gepa CLI is a small toolkit that handles minibatches, trace/report persistence, candidate evaluation, comparison, and history bookkeeping; you read failure reports and traces, edit component slots or source code, and continue until the run completes.
There is no propose or reflect verb on the CLI because that's the work you do — while gepa run is paused, or between manual gepa eval invocations — by editing files.
Driving an already-started run
gepa --gepa-dir /absolute/workspace run drive --run-id RUN --reflectors reflectors.json
automates lane runs and single-checkout held-out runs with one short-lived
reflector per step. Run it in the harness environment. It leases/reset lanes,
dispatches the fixed training-reflection prompt, guards process exit, and calls
run select or harness serve --once. No separate harness service, selector,
or reflector may run for a driven run: the driver owns scoring timing. The
existing held-out lane refusal remains until standalone lane repositories land.
The JSON configuration contains only allowed commands, for example:
{"pass_env":[],"reflectors":[{"label":"codex","argv":["codex","exec","--profile","gepa-reflector","-C","{checkout}","Read {prompt}; follow its instructions using {packet}."],"usage_limit":{"exit_codes":[9],"output_regexes":["(?i)usage limit"]}}]}
Configure detection for the actual command; exit 9 above is an example, not a
Codex exit-code guarantee. Usage-limit matching applies only when no nomination
or lane result exists. A legacy bare array means empty pass_env. Templates accept
{checkout}, {packet}, {prompt}.
The default is one Codex entry using --profile gepa-reflector and usage-limit
output detection. In current exec --help, --profile loads a separate
$CODEX_HOME/gepa-reflector.config.toml overlay; provision its actual permissions.
It is not the codex sandbox -P permissions selector. Follow the README's dated
verified-profile table and held-out read restrictions. Verification is the caller's
responsibility; never list unverified Claude Code or Pi profiles for held-out runs.
--step-timeout defaults to 900 seconds; --max-attempts to 2; --max-steps
optionally bounds sessions. Lane nomination adds --foreground; single-checkout
nomination adds --wait-secs 0. Keep harness credentials out of the reflector.
Provider keys are scrubbed by default; pass_env accepts explicit training-only
variable names such as OPENAI_API_KEY, never patterns. Do not pass scoring keys.
GEPA_HELDOUT_*, GEPA_HARNESS_*, names in GEPA_HARNESS_PASS_ENV, candidate
components and trace variables cannot be allowlisted. Subscription configuration
is retained; keep other harness secrets out of the launch environment. Git config
appends gc.autoDetach=false and maintenance.autoDetach=false to existing entries.
Before an unattended held-out run, set a provider-side spend limit on each
training-only reflector key passed through pass_env. This backs up the harness
spend cap because the reflector's own model calls, including training evaluations
run in its environment, are outside that cap.
Public step directories hold training-only prompts and logs. Held-out state lives
beside the pin. Training-only state lives under
${XDG_STATE_HOME:-~/.local/state}/pydantic-ai-gepa/drive/<key>/drive.json, keyed by
resolved GEPA_DIR and run ID. State/lock files are 0600 in a current-user-owned
0700 directory outside GEPA_DIR, project and lane worktrees. The reflector sandbox
must not grant that directory. Legacy public run_dir/drive.json is refused,
never loaded or migrated. Forging private state is outside the pin's threat model.
Restart the same drive command after a kill: unfinished reflectors are guarded
first, interrupted lanes reset, and scoring reuses existing durable checkpoints.
Events are acknowledged after recording the action; merge opportunities are never
auto-merged. A changed list requires --accept-reflector-change. Exhausted fallback
lists restart from the first entry. Exit 0 prints the final report; 2 is input/list
refusal; 76 is an attempt/step/scoring pause; 77 is usage-limit exhaustion; 78 is
process-guard refusal. Scoring errors do not retry: recover the service, explicitly
resume the managed run, then drive again.
What the process guard does not detect
The macOS guard uses libproc's immutable process and original-parent unique IDs, polls at 50 ms, and retains observed ancestry across restarts. After group cleanup and a final snapshot it persists a step-end ceiling. Only IDs between the starting watermark and that ceiling, or descendants linked through those IDs, count. A restart of an interrupted step without a ceiling freezes it at the first restart snapshot; unrelated later births cannot keep extending the window.
The guard kills attributed reflector descendants and ignores processes provably rooted in another pre-existing process. An ot
Установить gepa-optimize в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gepa-optimize?
Optimize a pydantic-ai agent's instructions, tool descriptions, output type, and signature inputs using the gepa CLI. Trigger when the user asks to "optimize this agent", "improve tool descriptions", iterate on prompts driven by eval failures, or otherwise improve a pydantic-ai agent against a dataset. Operates in the user's repo with full filesystem access — YOU are the reflection model; the gepa CLI handles minibatches, evaluation, and Pareto bookkeeping.
Как установить скилл gepa-optimize?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gepa-optimize запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic