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.

Show HN: I built a WordPress plugin because GA4 couldn't see AI crawlers

https://wordpress.org/plugins/edgeshaping-lite/
1•mareinterno•48s ago•0 comments

Why have papers by one of history's most famous physicists been retracted?

https://www.science.org/content/article/why-have-papers-one-history-s-most-famous-physicists-been...
1•adharmad•50s ago•0 comments

Most social media posts aren't written by people anymore

https://login.circle.so/sign_in?request_host=journalismresearch.circle.so
1•rawgabbit•2m ago•0 comments

A big thank you – accessibility for blind users from fresh install

https://discuss.grapheneos.org/d/36908-a-big-thank-you-accessibility-for-blind-users-from-fresh-i...
2•Cider9986•2m ago•0 comments

What One Year in AI Security and Governance Changed About How I See AI

https://codebynight.dev/posts/one-year-ai-security-governance-see-ai-differently/
2•shivc•2m ago•0 comments

Reflecting to optimise

https://magnusross.github.io/posts/reflecting-to-optimise/
1•magni121•3m ago•0 comments

Why the single package.json monorepo policy is a trap

https://johnjames.blog/posts/why-the-single-package-json-monorepo-policy-is-trap/
1•user2132141•3m ago•0 comments

History Lens – AI-powered historical artifact and monument identifier

https://apps.apple.com/us/app/history-lens-ai-identifier/id6757669028
2•erayy•4m ago•0 comments

Why a Good Idea Takes 13 Years to Arrive (2022)

https://medium.com/medium-handbook/why-a-good-idea-takes-13-years-to-arrive-873d309f0df9
1•speckx•6m ago•0 comments

Agent Nation – The Skunkworks

https://syntheticauth.ai/posts/agent-nation-01-the-skunkworks
1•zerolayers•7m ago•0 comments

Show Casing Kohinoor AI, Kohinoorai.in

1•Arjun_Fernandes•8m ago•0 comments

Some Neanderthals Were Genetically Healthy Right Up Until the End

https://nautil.us/some-neanderthals-were-genetically-healthy-right-up-until-the-end-1282266
2•Brajeshwar•8m ago•0 comments

Freiman's Constant

https://johncarlosbaez.wordpress.com/2026/05/07/freimans-constant/
4•surprisetalk•10m ago•0 comments

Local AI detectors rated a 2013 Paul Graham essay as more AI than actual slop

https://ninjasandrobots.com/paul-graham-flagged-for-ai-use
4•nate•11m ago•0 comments

Fixing Failures in Browser-Use Models: Why More Data Isn't Enough

https://www.fig.inc/blog/fixing-failures-in-browser-use/
16•jiggle123•12m ago•1 comments

Need Feedback

https://convertpro.io
1•newhacher•13m ago•2 comments

A forgotten social media post may hold key clues to Covid-19's origin

https://www.science.org/content/article/forgotten-social-media-post-may-hold-key-clues-covid-19-s...
4•bookofjoe•13m ago•0 comments

My First Atari ST – By Paul Lefebvre

https://www.goto10retro.com/p/my-first-atari-st
3•rbanffy•15m ago•0 comments

UpStart – Verified Startup Directories

https://www.upstart.quest/en/
1•k0ngz1•17m ago•1 comments

Show HN: NexisSearch – Fast AI Search

https://nexisearch.com
1•annrap1d•17m ago•1 comments

Compaction in CC, Codex, and OpenCode

https://lexifina.com/blog/compaction-in-cc-codex-and-opencode
2•alansaber•17m ago•0 comments

Rocket and Space Technology by Robert Braeunig

http://www.braeunig.us/space/propuls.htm
5•avgarrison•18m ago•1 comments

KinetIQ Ascend: Toward 100% Reliable Manipulation and Superhuman Speed

https://thehumanoid.ai/technology/kinetiq-ascend/
3•ashvardanian•19m ago•0 comments

Ultrasound may boost survival after a stroke by clearing brain debris

https://www.newscientist.com/article/2503750-ultrasound-may-boost-survival-after-a-stroke-by-clea...
4•speckx•19m ago•0 comments

Show HN: Orchestrate Claude Code agents on a canvas

https://rondoflow.app/
1•beledev•20m ago•0 comments

M5 Ultra Mac Studio Could Launch in 2026 with Up to 768GB of RAM – MacRumors

https://www.macrumors.com/2026/06/25/m5-ultra-mac-studio-2026/
4•bilsbie•20m ago•0 comments

Attacking and Securing eBPF Maps [video]

https://www.youtube.com/watch?v=HV_-XOSRlGs
3•snaveen•22m ago•0 comments

How to Control What You Can't See [video]

https://www.youtube.com/watch?v=2Q_EtJs1ubc
1•surprisetalk•25m ago•0 comments

Why were Covid vaccine trials so fast?

https://www.clinicaltrialsabundance.blog/p/why-were-covid-vaccine-trials-so-fast
4•salonium_•28m ago•0 comments

New open governance model for MySQL

https://blogs.oracle.com/mysql/the-next-phase-of-mysql-community-engagement-accelerating-particip...
2•deesix•29m ago•2 comments