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.

Voyager 1 Is About to Reach 1 Light-Day from Earth

https://www.iflscience.com/voyager-1-is-about-to-reach-1-light-day-from-earth-what-do-we-know-abo...
1•fortran77•56s ago•0 comments

Frustrated Ranchers Want People to Quit 'Rescuing' Their Working Guardian Dogs

https://cowboystatedaily.com/2026/10/15/frustrated-ranchers-want-people-to-quit-rescuing-their-wo...
1•rdmuser•1m ago•0 comments

Show HN: Never forget what size you are in that brand again

https://sizewise.franzonlabs.se
1•sirphuzz•1m ago•0 comments

Looksmaxxing and the Quantification of Culture

https://www.ssense.com/en-ca/editorial/culture/looksmaxxing-quantification-culture
1•crescit_eundo•1m ago•0 comments

A former volunteer is attempting to sue Skyblivion and we need your help [video]

https://www.youtube.com/watch?v=cbECoFxtaI4
1•wronglebowski•2m ago•0 comments

Anthropic's growth slowed and costs jumped in the third quarter

https://fortune.com/2026/11/02/anthropics-growth-slowed-and-costs-jumped-in-the-third-quarter-upd...
1•ersinesen•3m ago•0 comments

My Me-ware (so far)

https://peter.laceybordeaux.com/blog/posts/me-ware/
1•Powdering7082•9m ago•0 comments

Reading Anthropic's S-1

https://www.tilomitra.com/blog/anthropic-s1-in-charts
2•gmays•10m ago•0 comments

The Experience of Maxing Out One's Cognitive Horsepower (2025)

https://www.justinmath.com/the-experience-of-maxing-out-cognitive-horsepower/
3•ex-aws-dude•11m ago•0 comments

From Cloud-First to AI-First: Productivity-Maxxing or Token-Maxxing?

https://www.dewanahmed.com/cloud-first-ai-first/
1•mooreds•12m ago•0 comments

Crew from NASA's simulated Mars mission emerges after 378 days in isolation

https://www.reuters.com/science/crew-nasas-simulated-mars-mission-emerges-after-378-days-isolatio...
2•Betelbuddy•13m ago•0 comments

Dogmas Begin and How You Can End Them

https://fagnerbrack.com/how-dogmas-begin-and-how-you-can-end-them-36c5ec669e4b
1•fagnerbrack•14m ago•0 comments

An outsider's perspective on Scion and Mononoke

https://typesanitizer.com/blog/scion.html
1•birdculture•15m ago•0 comments

Entire's Trail vs. the Pull Request

https://stackness.dev/blog/entire-git-forge-trail-vs-pull-request-what-changes-and-what-stays
1•gosen•16m ago•0 comments

Egoless Mathematics in the AI Era

https://terrytao.wordpress.com/2026/11/02/egoless-mathematics-in-the-ai-era/
9•smilelamp•20m ago•0 comments

Project Schachett – Reviving a controversial old German card game

https://schachett.blogspot.com/2026/06/project-schachett-reviving-old-german.html
1•measurablefunc•20m ago•0 comments

New cyberattack on supermarket fridges sweeps across Europe

https://www.reuters.com/business/retail-consumer/temperature-soars-swedish-grocery-store-freezers...
4•Betelbuddy•22m ago•1 comments

Reactions: Princeton is buying us ChatGPT subscriptions

https://www.dailyprincetonian.com/article/2026/10/princeton-opinion-reactions-free-chatgpt-subscr...
1•pier25•22m ago•1 comments

Ellf · Your virtual NLP engineer for agentic development

https://ellf.ai/
1•rbanffy•23m ago•0 comments

Show HN: Mago, an open source AI video studio, runs locally with Comfy

https://github.com/MagoStudio/MagoStudio
1•AlvaroLaTo•25m ago•0 comments

Show HN: One Roof – mission control for many coding agents. You stay in charge

https://github.com/gaurav8936/oneroof
1•gaurav_sf•25m ago•0 comments

Gion – the fastest Git client for agents

https://baz-scm.github.io/gion/
1•kornimrod•25m ago•0 comments

Show HN: HackerGames – HackerTube, but for Games mentioned on HN

https://architrixs.github.io/HackerGames/
1•Architrixs•25m ago•0 comments

Show HN: A 14M-param world model of 2D Minecraft you can play on your phone

https://maharishiva.github.io/tinywmcraft/
1•maharishiva•25m ago•0 comments

Stop Hardcoding Your Timeouts

https://alfy.blog/2026/04/23/stop-hardcoding-your-timeouts.html
1•mooreds•26m ago•0 comments

AI video editing in DaVinci Resolve and MCP – workflow demonstration and test

https://primalvideo.com/guides/davinci-resolve-ai-assistance/
1•fallinditch•26m ago•0 comments

Ballot Rejections Have Soared in Rural Counties as USPS Reduces Mail Service

https://www.propublica.org/article/mail-ballot-delays-postal-service-midterms
3•ck2•26m ago•1 comments

The American Economy Rockets Ahead, but Doesn't Take Everyone With It

https://www.wsj.com/economy/us-economic-data-growth-9a4f7690
2•frank_clover•28m ago•0 comments

South Korea targets ' highest performance' sovereign AI model

https://www.cnbc.com/2026/11/02/south-korea-ai-spending-budget.html
4•Betelbuddy•28m ago•0 comments

Ask HN: "Net neutrality" for AI compute and memory?

1•CGMthrowaway•28m ago•0 comments