CodeEvolve: an open source evolutionary coding agent for algorithmic discovery and optimization
About
We introduce CodeEvolve, an open-source framework that couples large language models with island-based evolutionary search for end-to-end algorithmic discovery. CodeEvolve integrates inspiration-based crossover, meta-prompting, and depth-based refinement on top of a CVT-MAP-Elites archive and a weighted LLM ensemble to generate optimized solutions for complex problems. On the AlphaEvolve benchmark suite, CodeEvolve matches or surpasses the reported AlphaEvolve results on 5 of 9 problems and, under matched conditions, outperforms the open-source frameworks OpenEvolve and ShinkaEvolve on 6 of 9. With the open-weight Qwen3-Coder-30B backbone, it surpasses the reported AlphaEvolve score on both CirclePackingSquare instances at roughly an order of magnitude lower cost than a frontier closed-source ensemble, and remains competitive with EoH on heuristic-design tasks without retuning. Ablations show that the interaction between CodeEvolve's components, rather than any single operator, drives these results. We release the framework, experimental data, and practical hyperparameter guidelines at https://github.com/inter-co/science-codeevolve.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Traveling Salesman Problem | TSP50 | Optimality Gap0.1 | 77 | |
| Traveling Salesman Problem | TSP N=20 | Optimality Gap0.00e+0 | 45 | |
| Traveling Salesman Problem | TSP100 | Optimality Gap (%)4 | 37 | |
| Online Bin Packing Problem | BPP online N=1k, W=100 | Optimality Gap4.18 | 35 | |
| Online Bin Packing Problem | BPP online N=5k, W=100 | Optimality Gap3.16 | 30 | |
| Kernel Optimization | KernelBench 1.0 (test) | Latency (us)0.0063 | 27 | |
| Geometric Optimization | MMD | Fitness Score99.34 | 21 | |
| Geometric Optimization | CP | Fitness Score0.8768 | 21 | |
| Online Bin Packing Problem | Weibull BPP 5k 500 | Optimality Gap (%)0.2 | 20 | |
| Circle packing | Circle Packing (n=26) | Sum of Radii2.6359 | 19 |