frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•1y ago
I've built an open-source implementation of Google DeepMind's AlphaEvolve system called OpenEvolve. It's an evolutionary coding agent that uses LLMs to discover and optimize algorithms through iterative evolution.

Try it out: https://github.com/codelion/openevolve

What is this?

OpenEvolve evolves entire codebases (not just single functions) by leveraging an ensemble of LLMs combined with automated evaluation. It follows the evolutionary approach described in the AlphaEvolve paper but is fully open source and configurable.

I built this because I wanted to experiment with evolutionary code generation and see if I could replicate DeepMind's results. The original system successfully improved Google's data centers and found new mathematical algorithms, but no implementation was released.

How it works:

The system has four main components that work together in an evolutionary loop:

1. Program Database: Stores programs and their metrics in a MAP-Elites inspired structure

2. Prompt Sampler: Creates context-rich prompts with past solutions

3. LLM Ensemble: Generates code modifications using multiple models

4. Evaluator Pool: Tests programs and provides feedback metrics

What you can do with it:

- Run existing examples to see evolution in action

- Define your own problems with custom evaluation functions

- Configure LLM backends (works with any OpenAI-compatible API)

- Use multiple LLMs in ensemble for better results

- Optimize algorithms with multiple objectives

Two examples I've replicated from the AlphaEvolve paper:

- Circle Packing: Evolved from simple geometric patterns to sophisticated mathematical optimization, reaching 99.97% of DeepMind's reported results (2.634 vs 2.635 sum of radii for n=26).

- Function Minimization: Transformed a random search into a complete simulated annealing algorithm with cooling schedules and adaptive step sizes.

Technical insights:

- Low latency LLMs are critical for rapid generation cycles

- Best results using Gemini-Flash-2.0-lite + Gemini-Flash-2.0 as the ensemble

- For the circle packing problem, Gemini-Flash-2.0 + Claude-Sonnet-3.7 performed best

- Cerebras AI's API provided the fastest inference speeds

- Two-phase approach (exploration then exploitation) worked best for complex problems

Getting started (takes < 2 minutes)

# Clone and install

git clone https://github.com/codelion/openevolve.git

cd openevolve

pip install -e .

# Run the function minimization example

python openevolve-run.py

examples/function_minimization/initial_program.py \

  examples/function_minimization/evaluator.py \

  --config examples/function_minimization/config.yaml \

  --iterations 50
All you need is Python 3.9+ and an API key for an LLM service. Configuration is done through simple YAML files.

I'll be around to answer questions and discuss!

Comments

codelion•1y ago
I actually managed to replicate the new SOTA for circle packing in unit squares as found in the alphaevole paper - 2.635 for 26 circles in a unit square. Took about 800 iterations to find the best program which itself uses an optimisation phase and running it lead to the optimal packaging in one of its runs.
helsinki•1y ago
How many tokens did it take to generate the 800 versions of the code?
codelion•1y ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Church of the TigerBeetle: A Look at Tech Evangelism

https://www.wespiser.com/posts/2026-08-03-church-of-the-tigerbeetle.html
1•wespiser_2018•45s ago•0 comments

Vibe Writing

https://www.jotaen.net/23sHT/vibe-writing/
1•jotaen•4m ago•0 comments

Readers can't identify watermarked AI text

https://www.seangoedecke.com/readers-cant-identify-watermarked-ai-text/
1•dmarto•5m ago•0 comments

The Agent Access Model

https://blog.cloudflare.com/the-agent-access-model/
1•gmays•13m ago•0 comments

YC co is organizing an event in SF on AI in regulated industries

https://groundtruth.getsphere.com/
2•gonsanchezs•13m ago•0 comments

Dossier, astrology for your texts (no uploading by default)

https://justdossier.com
1•jcannonmajr•14m ago•1 comments

Existential Risk from Artificial Intelligence

https://en.wikipedia.org/wiki/Existential_risk_from_artificial_intelligence
1•marshblocker•15m ago•0 comments

Walking the Length of Manhattan

https://craigmod.com/ridgeline/232/
1•karakoram•15m ago•0 comments

How would you know whether an ancient culture had zero?

https://www.johndcook.com/blog/2026/08/21/ancient-number-system/
1•ibobev•15m ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
1•ibobev•16m ago•0 comments

Zcomplete – Shell Typo Correction

https://github.com/omarfakih1/zcomplete
1•omarfakih•17m ago•1 comments

Getting Started with Neovim

https://xnacly.me/posts/2022/neovim-ped-1/
1•ibobev•18m ago•0 comments

Most of the Fastest-Growing Megacities Will Soon Be in Africa

https://ourworldindata.org/data-insights/most-of-the-worlds-fastest-growing-megacities-will-soon-...
1•karakoram•18m ago•0 comments

Rust Glancer

https://matklad.github.io/2026/08/21/rust-glancer.html
1•surprisetalk•20m ago•0 comments

Claude has a "Concise" output style

https://code.claude.com/docs/en/output-styles
1•ball_of_lint•20m ago•1 comments

The Safety Belt Edition

https://whyisthisinteresting.substack.com/p/the-safety-belt-edition
1•Hooke•22m ago•0 comments

Air Conditioning Is Almost Universal in the US and Japan – But Not Elsewhere

https://ourworldindata.org/data-insights/air-conditioning-is-almost-universal-in-the-us-and-japan...
1•karakoram•22m ago•0 comments

War is not god, neither is AI

https://ryelang.org/blog/posts/war-is-not-god-neither-is-ai/
1•middayc•24m ago•0 comments

Why Some People Are Born with Devastating Gene Mutations–and Never Get Sick

https://www.nationalgeographic.com/health/article/genetic-mutation-inherited-disease-dna
1•bookofjoe•25m ago•1 comments

Google Buys Spirit Airlines' Emails, Files and Flight Records for $10M

https://viewfromthewing.com/google-buys-spirit-airlines-emails-files-and-flight-records-for-10-mi...
1•paulpauper•29m ago•0 comments

One Night in Uzbekistan

https://statmodeling.stat.columbia.edu/2026/08/20/we-couldnt-reproduce-their-findings-and-realize...
4•paulpauper•30m ago•0 comments

And the universe said you are the universe

https://unpublishablepapers.substack.com/p/and-the-universe-said-you-are-the
1•paulpauper•30m ago•0 comments

Mice learn to think out of the box

https://news.emory.edu/stories/2026/08/how-mice-learn-think-out-box-neuroscience-surprise
1•gmays•31m ago•0 comments

Migrate Repo to TypeScript 7

https://github.com/microsoft/TypeScript/pull/63763
1•sensanaty•32m ago•0 comments

A limit order book and matching engine in Go

https://intrepidkarthi.github.io/orderbook/
1•intrepidkarthi•32m ago•0 comments

What Happened: OpenAI and HuggingFace

https://thezvi.wordpress.com/2026/08/08/what-happened-openai-and-huggingface/
1•gmays•32m ago•0 comments

When Postgres Isn't the Process That Kills Your Database

https://clickhouse.com/blog/protect-postgres-from-supporting-processes
1•saisrirampur•33m ago•0 comments

I'm Sick of Reading AI-Written Posts

https://cyb3rops.medium.com/im-sick-of-reading-ai-written-posts-107767481fbf
2•gurjeet•34m ago•0 comments

Tumble Forth – from assembly to OS with C compiler

https://tumbleforth.hardcoded.net/
2•vicek22•36m ago•0 comments

Death to the Self-Playing Game

https://www.jank.cool/death-to-the-self-playing-game/
2•speckx•37m ago•1 comments