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.

Elon Musk broke the FAA – Palantir is picking up the pieces

https://www.theverge.com/transportation/981194/faa-air-traffic-elon-musk-peter-thiel-palantir
1•DesaiAshu•32s ago•0 comments

How I Browse the Web with uBlock (Hard Mode)

https://untrusem.party/blog/how-I-browse-the-web-with-Ublock-Hard-Mode.html
1•BrunoBernardino•2m ago•0 comments

Study: Short-form video viewing and deactivation of cognitive control networks

https://www.sciencedirect.com/science/article/pii/S1053811926000406
1•kadohg•2m ago•0 comments

Fargate Is Not Firecracker (2024)

https://justingarrison.com/blog/2024-02-08-fargate-is-not-firecracker/
1•frogulis•2m ago•0 comments

Without journalists, there is no journalism

https://arxiv.org/abs/2608.17017
1•50kIters•3m ago•0 comments

Ask HN: Why does Hermes Agent not infringe on Hermès?

2•aitravel-dev•5m ago•0 comments

Terra Incognita: The Economics of a Shrinking World [pdf]

https://www.sas.upenn.edu/~jesusfv/Demographics.pdf
1•Acrobatic_Road•6m ago•2 comments

Show HN: Full-duplex real-time voice assistant in the browser

https://github.com/sachinkesiraju/jax-realtime
2•sachinkesiraju•11m ago•0 comments

Pandemic lockdowns never ended for some people

https://www.ft.com/content/e1eb3638-cd1a-4a1a-857d-133fe4be468c
2•_tk_•13m ago•0 comments

An LLM wiki changed how I work

https://www.platformer.news/karpathy-llm-wiki-journalism-productivity/
2•wertyk•14m ago•0 comments

Jason Arday's rise and fall tells a larger story about academia, a critic says

https://www.npr.org/2026/08/18/nx-s1-5935396/britain-cambridge-professor-jason-arday-hiring-quest...
2•pykello•15m ago•0 comments

Excited and exhausted: life as a tech writer in the AI age

https://elizabethtai.com/2026/08/19/life-as-a-techwriter-in-the-ai-age/
1•theletterf•17m ago•0 comments

$200B case against Facebook and Instagram begins

https://www.theguardian.com/technology/2026/aug/18/meta-facebook-instagram-trial
2•skor•19m ago•0 comments

Ansible Automation Developer Tools

https://github.com/ansible/ansible-dev-tools
1•saikatsg•21m ago•0 comments

SelfSearch – one-click manual site indexing, private peer to peer search engine

https://github.com/HommelWater/SelfSearch/tree/p2p
1•smonn_•22m ago•0 comments

200B Tokens Later: A Month of Letting AI Agents Decompile MW2

https://momo5502.com/posts/2026-08-17-mw2-decompilation/
1•tyrells•22m ago•0 comments

Lovelace's Note G Program in C

https://gist.github.com/sinclairtarget/ad18ac65d277e453da5f479d6ccfc20e
1•Bluestein•23m ago•0 comments

Protego for Reddit

https://getprotego.app/
1•MrJagil•24m ago•0 comments

Parents Should Monitor Their Kids' Technology and Internet Usage

https://medium.com/swlh/why-parents-should-monitor-technology-and-internet-usage-9b235f358e6c
1•raynchad•24m ago•1 comments

StateM: Reaching 95.3% on Terminal Bench 2.1

https://huggingface.co/papers/2608.15089
2•jumploops•26m ago•0 comments

National security question trips up Sen. Darline Graham

https://apnews.com/article/darline-graham-taiwan-debate-national-security-5b045abd68cc4aa350177b5...
2•petethomas•28m ago•0 comments

Does AI stop children from learning?

https://www.economist.com/graphic-detail/2026/08/18/does-ai-stop-children-from-learning
4•dash2•28m ago•0 comments

Show HN: Food Hunt – a video walkthrough for every single level

https://food-hunt.org
1•Focss•28m ago•0 comments

Checkpoint-run: resume long shell jobs after your connection drops

https://github.com/agenticaotearoa/checkpoint-run
2•agenticaotearoa•29m ago•0 comments

Show HN: Seahorse – an agent's memory that lives in your own notes

https://github.com/ssanvi-builds/seahorse
1•ssanvi_builds•30m ago•0 comments

λλ: A Programming Language for Silicon Photonics

https://dl.acm.org/doi/10.1145/3789240.3829151
2•matt_d•32m ago•0 comments

C++26: Std:Polymorphic

https://www.sandordargo.com/blog/2026/08/19/cpp26-polymorphic
1•jandeboevrie•33m ago•0 comments

Codex: Changes to reduce risk of destructive actions

https://twitter.com/thsottiaux/status/2089891927659585918
1•tosh•36m ago•0 comments

Smartphone-Free Childhood

https://www.smartphonefreechildhood.org
2•simonebrunozzi•38m ago•0 comments

The Making of Cursor's Icons

https://www.minoradventures.co/blog/the-making-of-cursors-icons
1•kaizenb•41m ago•0 comments