Fix Loop + Evolutionary Search
Use this skill for intensive debugging of difficult tasks — Evolutionary Search's
multi-candidate search finds strategies the single-pass fix loop misses. It builds on the
iterative-debugging skill: each task's fix loop fix_code.py (when present) is the baseline
to beat, seeded verbatim as candidate_A. LIBERO-Pro runs use --init-mode seeded so
development seeds 51–65 and held-out seeds 1–50 are distinct scenes.
Setup
- Complete benchmark setup for the target embodiment (
docs/libero-pro.md, ordocs/robosuite.md), including the pinned environment (for LIBERO:scripts/bootstrap_libero.sh→.venv-libero) and SAM3 authentication. - Export the benchmark environment variables (for LIBERO:
LIBERO_CONFIG_PATH="$PWD/.libero",MUJOCO_GL=egl,PYOPENGL_PLATFORM=egl,EGL_PLATFORM=device,TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1). - Start perception services (
scripts/supervise_services.sh) and a persistent coordinator session. - Confirm the Fix Loop experiment has produced
fix_code.py(and a baseline held-out rate) for the target tasks when available. - Read
docs/api-reference.md,docs/run-artifacts.md, and main-agent-prompt.md.
Run Order
- Take the task list from the user (tasks below the success threshold; any set of
(benchmark, suite, task_id)cases) and follow main-agent-prompt.md as the coordinator. - Fill subagent-prompt.md once per task and dispatch subagents on the available worker GPUs.
- Subagents read the experiment-specific companion skills under skills/ when
generating candidates, iterate with scripts/evosearch_eval.py,
and run the Stage 2 held-out evaluation themselves with the shared
.claude/skills/iterative-debugging/scripts/run_validation.pybefore returning. - Use clean-task-slate.md before rerunning a task or suite.
Files
| File | Purpose |
|---|---|
| main-agent-prompt.md | Coordinator runbook for task dispatch and result collection |
| subagent-prompt.md | Per-task Evolutionary Search iteration prompt |
| clean-task-slate.md | Reset checklist before reruns |
| skills/evosearch-iteration.md | Candidate/eval/keyframe iteration mechanics |
| scripts/evosearch_eval.py | Candidate × seed matrix evaluator |
| scripts/analyze_evosearch_traces.py | Post-eval per-candidate signal analysis |
docs/api-reference.md | Public CaP program API reference |
| ../iterative-debugging/skills/ | Shared robot skills (localize/grasp/transport/manipulation) |


