CodeEvolve: an open source evolutionary coding agent for algorithm discovery and optimization
About
We introduce CodeEvolve, an open-source framework that combines large language models (LLMs) with evolutionary search to synthesize high-performing algorithmic solutions. CodeEvolve couples an islands-based genetic algorithm with modular LLM orchestration, using execution feedback and task-specific metrics to guide selection and variation. Exploration and exploitation are balanced through context-aware recombination, adaptive meta-prompting, and targeted refinement of promising solutions. We evaluate CodeEvolve on benchmarks previously used to assess Google DeepMind's AlphaEvolve, showing superior performance on several tasks and competitive results overall. Notably, open-weight models often match or exceed closed-source baselines at a fraction of the compute cost. We provide extensive ablations analyzing the contribution of each component and release our framework and experimental results at https://github.com/inter-co/science-codeevolve.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Kernel Optimization | KernelBench 1.0 (test) | Latency (us)0.0063 | 27 | |
| Symbolic Regression | LLM-SR | Best Log10 NMSE-7.26 | 7 | |
| Second Autocorrelation Inequality | ACI 2 (test) | Value88.11 | 7 | |
| Hexagon Packing | HEX n=11 (test) | Side Length (L)3.9379 | 6 | |
| Hexagon Packing | HEX n=12 (test) | Side Length (L)4 | 5 |