algorithmicsuperintelligence/openevolve

Open-source implementation of AlphaEvolve

What it solves

Manual algorithm and code optimization is slow (days to weeks), limited by human creativity, and hard to reproduce. OpenEvolve automates this process using evolutionary search driven by large language models, producing state-of-the-art results in hours while exploring a much wider design space than humans can.

How it works

OpenEvolve uses LLMs to mutate and evolve programs. It combines several techniques: quality-diversity evolution via MAP-Elites keeps diverse solutions across feature dimensions; island populations with periodic migration prevent premature convergence; LLM ensembles use weighted combinations of models from any OpenAI-compatible API or CLIs like Claude Code; artifact feedback passes errors and evaluator output into the next generation's prompt. Every component is seeded for full reproducibility. Users mark code to evolve with EVOLVE-BLOCK-START and EVOLVE-BLOCK-END comments, then run it via command line or as a Python library.

Who it’s for

Researchers and practitioners in algorithm discovery, performance optimization, scientific computing, competitive programming, and multi-objective problems. It's also used as a benchmark baseline in many research papers.

Highlights

  • Achieved 2-3x GPU kernel speedups on real hardware (Metal kernels), state-of-the-art circle packing (n=26), and adaptive sorting algorithms.
  • Cited in hundreds of research papers, with 7,600+ GitHub stars and 17,000+ monthly PyPI downloads.
  • Supports multiple programming languages (Python, Rust, R, Metal shaders) and LLM providers (Gemini, OpenAI-compatible, Claude, Copilot, Codex).
  • Includes a variety of examples: function minimization, circle packing, MLX GPU kernels, symbolic regression, prompt optimization, and more.
  • Fully reproducible and deterministic, with an optional Docker image for easy deployment.

Related

  • Project
  • Project
  • Project
  • Project