🧬 Evolve whole codebases with coding agents

Docs · Quickstart · Live dashboard · Results · Built with HELIX · Examples
HELIX optimizes a whole repository against your evaluator. Each mutation is a multi-turn session of a coding agent, such as Claude Code or Codex, that reads, edits, runs and tests code in its own git worktree before HELIX scores the result. Candidates are kept on an instance-level Pareto frontier, so a program that is best on any one case survives. The search loop comes from GEPA's optimize_anything.
Unlike a single coding-agent session, HELIX keeps going: it runs many attempts against a scorer you control, keeps only changes that measurably help, and hands back plain code. You provide a repository, an objective, and an evaluator that prints a score per case.
Watch the search live
helix ui opens a live dashboard of a run in your browser: the best score generation by generation, each agent at work with its transcript streaming, the lineage of every proposal and the path from the seed to the best candidate, and every candidate's diff, weakest cases and evaluator feedback. The loop is drawn inside its isolation boundaries, so a sandbox setting you did not intend stands out. The dashboard only reads the run; for a run on another machine, forward one port over SSH. Live dashboard guide
Results
|
|
| 0.064 → 1.0 |
ManiSkill push, pick and stack: one Claude Sonnet 5.5 mutation (40 s of agent time, $0.14) solves all 141 trials, including 90 held out. Write-up |
| 99.0% |
RHO on Robosuite: HELIX-evolved robot-policy repositories reach 99.0% single-turn success (693/700), against CaP-Agent0's 68.29% with multi-turn correction. |
| 12.2× faster |
RHO's evolved repositories run as fixed code with no LLM calls in the control loop: 9.31 s per trial, against CaP-Agent0's 113.6 s. |
Built with HELIX
Using HELIX in a paper or project? Open a pull request to add it here.
Quickstart
pip install helix-evo
cd your-project/
helix init # writes helix.toml; set your objective and evaluator command
HELIX scores a candidate by running your evaluator, which prints one HELIX_RESULT= line:
# evaluate.py
import json
score, feedback = run_my_benchmark() # your code
print("HELIX_RESULT=" + json.dumps([[score, {"feedback": feedback}]]))
helix evolve # run the search
helix frontier # candidates on the Pareto frontier
helix ui # live dashboard in the browser
helix best --export ./best
HELIX never touches your branch, HEAD or remote: every candidate lives in a detached worktree under .helix/worktrees/. For a first run, turn on the Docker sandbox. The docs cover writing an evaluator, configuration and the CLI.
Examples
| Example |
What HELIX evolves |
Result |
Checked by |
maniskill_pick_place |
A multi-file solver/ package that drives a Franka Panda through push, pick and stack in ManiSkill 3 |
0.064 → 1.0 validation in one mutation (write-up) |
90 held-out trials the agent never sees |
circle_packing |
optimize_anything's circle-packing seed code and refiner prompt: pack 26 circles in the unit square |
Write-up |
GEPA's own fitness function |
web_researcher |
A question-answering agent for software questions whose answers change over time |
Run it to produce results |
Versions fetched live from PyPI and endoflife.date at scoring time |
eterna100 |
An RNA sequence designer: for a target secondary structure, a sequence that folds into it (Eterna100-V2) |
6 → 32–33 of 50 held-out puzzles in a 49-minute run with gpt-6-luna, at 8 s per puzzle; on par with SentRNA and LEARNA (write-up) |
50 held-out puzzles the agent never sees |
How it works
More in How HELIX works.
Related work
- GEPA optimize_anything (Agrawal et al., CAIS 2026) optimizes any text parameter with reflective Pareto search. HELIX ports its search loop and makes the candidate a whole repository, mutated by a coding agent.
- Meta-Harness (Lee et al., 2026), concurrent work, uses a coding-agent proposer to optimize a single-file harness program, not a repository.
- OpenEvolve and ShinkaEvolve evolve a program, typically the code inside marked blocks, with LLM-written diffs.
- SkyDiscover evolves programs with AdaEvolve and EvoX, and its Synthesize mode has coding agents build complete systems from a spec.
Citation
If you use HELIX, please cite it and optimize_anything, whose search loop it uses.
@software{helix2026,
title = {HELIX: Hierarchical Evolution via LLM-Informed eXploration},
author = {Elmaaroufi, Karim},
year = {2026},
url = {https://github.com/KE7/helix}
}
@inproceedings{agrawal2026optimizeanything,
title = {optimize\_anything: Unified Text Optimization can Outperform Specialized Systems},
author = {Agrawal, Lakshya A and Lee, Donghyun and Tan, Shangyin and Ma, Wenjie and Elmaaroufi, Karim and Sandadi, Rohit and Seshia, Sanjit A. and Sen, Koushik and Klein, Dan and Stoica, Ion and Gonzalez, Joseph E. and Khattab, Omar and Dimakis, Alexandros G. and Zaharia, Matei},
booktitle = {Proceedings of the ACM Conference on AI and Agentic Systems (CAIS '26)},
address = {San Jose, CA, USA},
publisher = {ACM},
month = may,
year = {2026},
pages = {1--16},
doi = {10.1145/3786335.3813167},
eprint = {2605.19633},
archiveprefix = {arXiv},
primaryclass = {cs.CL},
note = {arXiv version titled ``optimize\_anything: A Universal API for Optimizing any Text Parameter''}
}
Acknowledgments
HELIX's search algorithm is GEPA optimize_anything's, by Agrawal, Lee, Tan, Ma, Elmaaroufi, Sandadi, Seshia, Sen, Klein, Stoica, Gonzalez, Khattab, Dimakis and Zaharia (paper, arXiv). The mutation backends are Antigravity CLI, Claude Code, Codex CLI, Cursor CLI, OpenCode and pi. HELIX was built with OMAR.
License
BSD 3-Clause. See LICENSE.