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.

The far right's win in Germany is sending a chill through Europe's establishment

https://www.cnn.com/2026/09/08/europe/germany-far-right-afd-election-europe-intl
1•firefax•24s ago•0 comments

Ask HN: Anyone using dictation with coding agents?

1•TomEleff•31s ago•0 comments

Does an AI have mercy in games? Fable 5.1 vs. GPT-6

https://paradise.glyphai.co/research/mercy/
1•simplybeing1•2m ago•0 comments

Show HN: Accounting and inventory software you can pip install

https://github.com/celerp/celerp
1•ngsevers•2m ago•0 comments

Show HN: Founder.best – A place for founders to keep their products discoverable

https://www.founder.best
1•NimeshikaP•2m ago•0 comments

Write better with Claude Fable 5.1

https://academy.dair.ai/resources/write-better-with-claude-fable-5-1
1•omarsar•3m ago•0 comments

The little holes in your bread are telling you something

https://edconway.substack.com/p/the-little-holes-in-your-bread-are
2•baud147258•5m ago•0 comments

DirectX Support Promoted to Official Target Within LLVM

https://www.phoronix.com/news/LLVM-DirectX-Backend-Official
1•Alephinitesimal•5m ago•0 comments

Cells Vivarium Simulator

https://mrqzzz.github.io/cells/
2•mrqzzz•5m ago•1 comments

Agent pasted a fake captcha into Terminal, it lived on my Mac for 30 days

https://medium.com/@gvschaitanya/i-pasted-a-captcha-into-terminal-it-lived-on-my-mac-for-30-days-...
1•gatreddi•7m ago•0 comments

Who Built AI? A Data Story

https://tylerberbert.com/whobuiltai
1•tbwriting•7m ago•0 comments

Slim-Vim: Vim as one translation unit

https://github.com/arbace/slim-vim
1•liszper•7m ago•0 comments

Ask HN: Anyone want my realtime-snapshots dataset of Hacker News?

https://track-hacker-news.com/
1•namiwang•8m ago•1 comments

A 1-frame billboard where visitors outbid each other in real time)

https://reigningfor.lol/
1•rodriguezlizarr•8m ago•0 comments

Ciphers with Arbitrary Finite Domains (2002) [pdf]

https://www.cs.ucdavis.edu/~rogaway/papers/subset.pdf
1•wslh•8m ago•0 comments

To write non-fiction, draw the trunk, then the rest of the tree

https://devz.cl/posts/how-to-write/
1•DanielVZ•8m ago•0 comments

I Asked 100 Agents to Hack Me

https://blog.sshh.io/p/i-asked-100-agents-to-hack-me
1•sshh12•9m ago•0 comments

The Growing Proof That Autonomous Cars Save Lives

https://spectrum.ieee.org/are-self-driving-cars-safe
1•Brajeshwar•11m ago•0 comments

An overview of how our family is prepared

https://michaelharley.net/posts/2026/08/29/an-overview-of-how-our-family-is-prepared/
6•surprisetalk•12m ago•1 comments

Show HN: ChronoVec, a versioned vector database for data that changes

https://github.com/mchl-labs/chronovec
1•mchl-labs•13m ago•0 comments

In-browser LaTeX parser written in Rust

https://faster-latex-demo.pages.dev/
2•matthova•16m ago•0 comments

Show HN: SiteTell: finds the areas of your site that read as AI-generic

https://www.getsitetell.com/
1•NotGeorgeHere•16m ago•0 comments

Apple 'Whistle Blower' on Israel

https://www.youtube.com/watch?v=vc-iH5GEPJ8
2•tachyons•17m ago•0 comments

Anti-Flock Activist Bingo Card

https://mleverything.substack.com/p/anti-flock-activist-bingo-card
2•bko•17m ago•0 comments

Xiaomi MiMo for Desktop

https://mimo.mi.com/docs/en-US/news/latest/mimo-desktop
1•gainsurier•17m ago•0 comments

Show HN: I built a zero click file converter for Mac

https://tangerineformac.com
1•th13•18m ago•0 comments

AlphaGenome Atlas predictive map of every DNA letter change in the human genome

https://deepmind.google/blog/alphagenome-atlas-a-predictive-map-of-every-possible-dna-letter-chan...
3•fady0•19m ago•0 comments

I-have-ADHD: A skill to stop your coding agent from burying the answer

https://github.com/ayghri/i-have-adhd
2•domhudson•20m ago•0 comments

The US productivity-pay gap is 2.55x or 1.18x, on the same BLS data

https://eco3min.fr/en/productivity-pay-gap-four-conventions-2/
1•latentframe•20m ago•0 comments

Show HN: StackTab, what your stack costs at 1k, 10k and 100k users

https://stacktab.kynth.studio
2•kyisaiah47•22m ago•0 comments