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.

Unhook, extension to block YouTube suggestion feeds, comments, and more

https://unhook.app/
1•sanbor•34s ago•0 comments

Diet Culture Ruins Lives

https://lithub.com/how-diet-culture-ruins-lives/
1•PaulHoule•47s ago•0 comments

"Chat is dead": OpenAI preps overhaul of ChatGPT

https://arstechnica.com/ai/2026/06/chat-is-dead-openai-preps-overhaul-of-chatgpt/
1•kylemaxwell•1m ago•0 comments

Somalia: The way forward – fourteen years later

https://wardheernews.com/somalia-the-way-forward-fourteen-years-later/
1•paulpauper•1m ago•0 comments

Biological Origin for the Ancient Alkanes Preserved in a Martian Mudstone

https://journals.sagepub.com/doi/10.1177/15311074261417879
1•simonebrunozzi•1m ago•0 comments

Alan Riding, Times Correspondent in Latin America and Paris, Dies at 82

https://www.nytimes.com/2026/06/06/business/media/alan-riding-dead.html
1•paulpauper•1m ago•0 comments

Hayekian Literary Criticism

https://marginalrevolution.com/marginalrevolution/2026/06/hayekian-literary-criticism.html
1•paulpauper•2m ago•0 comments

Spread

https://github.com/odipar/spread
1•tosh•4m ago•0 comments

On gitology (2011)

https://jordi.inversethought.com/blog/on-gitology/
1•jruohonen•4m ago•0 comments

How to build a cancer vaccine, and whether they will work this time

https://www.owlposting.com/p/how-to-build-a-cancer-vaccine-and
1•crescit_eundo•5m ago•0 comments

AI costs are rising, but proving value is still a challenge

https://mattcasmith.net/2026/06/07/ai-costs-value
1•yakkomajuri•5m ago•0 comments

Italy's Bending Spoons, Owner of AOL and Vimeo, Files for Nasdaq IPO

https://www.reuters.com/legal/transactional/italys-bending-spoons-files-us-ipo-2026-06-08/
1•mmarian•6m ago•0 comments

There should have been an op-ed here but you filed AI slop

https://www.cityam.com/there-should-have-been-an-op-ed-here-but-you-filed-ai-slop/
3•AnodicElegy•6m ago•0 comments

Aitken Acceleration Before Aitken

https://www.johndcook.com/blog/2026/06/07/aitkin-acceleration-kepler/
1•ibobev•7m ago•0 comments

AI "content creators" are getting harder to spot

https://www.theverge.com/ai-artificial-intelligence/943187/ai-content-creators
1•randomint64•7m ago•0 comments

The Crystal That Could Destroy All Medicine [video]

https://www.youtube.com/watch?v=ksn5yrsC3Wg
1•freedomben•9m ago•0 comments

Factorio Space Logistics Improvements

https://factorio.com/blog/post/fff-441
1•ibobev•9m ago•0 comments

Anthropic just split the bill. Lanes did not have to change.

https://lanes.sh/blog/claude-billing-split
1•MayCXC•9m ago•1 comments

LLM Research Papers: The 2026 List (January to May)

https://magazine.sebastianraschka.com/p/llm-research-papers-2026-part1
2•ibobev•10m ago•0 comments

How AI is reshaping discovery in maths and physics

https://www.nature.com/articles/d41586-026-01820-1
1•Brajeshwar•11m ago•0 comments

Show HN: Dbmachine – the back end and front end are Claude, just the plumbing&DB

https://github.com/kenm47/dbmachine
1•hank2000•14m ago•1 comments

Verifying /Proc

https://bal-e.org/blog/2026/verifying-proc/
1•speckx•15m ago•0 comments

Uber Published an Agent Identity Blueprint; Let's Talk About the Control Plane

https://permit.substack.com/p/uber-just-published-the-agent-identity
2•mooreds•16m ago•0 comments

Wix.com Slashes 20% of Staff, Lowers Outlook as Restructuring Continues

https://www.wsj.com/business/retail/wix-com-slashes-20-of-staff-lowers-outlook-as-restructuring-c...
1•1vuio0pswjnm7•17m ago•1 comments

Karpathy's Autoresearch Beyond ML

https://mentalfaculty.com/blog/the-loop-that-improves-almost-anything/
3•drewmccormack•18m ago•0 comments

Kernel.org's IPv6 address ends in ":1991:8:25", the date Linux was announced

https://old.reddit.com/r/linux/comments/1tzr95j/kernelorgs_ipv6_address_ends_in_1991825_the_date/
3•politelemon•19m ago•0 comments

Show HN: A Minecraft builder skill for coding agents

https://github.com/mattzh72/minecraft-builder-skill
1•mattzh1314•19m ago•0 comments

Show HN: RiskKernel – a kill switch and budgets for runaway AI agents

https://github.com/prashar32/riskkernel
1•prashar32•21m ago•0 comments

OpenEvidence: An AI Copilot for Doctors

https://www.openevidence.com/
1•m-hodges•22m ago•0 comments

Show HN: My little Mac applet that keeps your agents going with your lid closed

https://transitivedev.gumroad.com/l/doppio-app
1•d0ublespeak•24m ago•0 comments