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.

Tacky men with ridiculous glasses want you to wear them too

https://manualdousuario.net/en/smart-glasses-ugly-tacky/
1•rpgbr•1m ago•0 comments

United States Standard for the Colors of Signal Lights [pdf]

https://nvlpubs.nist.gov/nistpubs/Legacy/hb/nbshandbook95.pdf
1•js2•1m ago•0 comments

Lucid Reduces Production and Lays Off 18 Percent of Its Workforce

https://www.caranddriver.com/news/a71668069/lucid-layoffs-production-cuts/
1•RickJWagner•1m ago•0 comments

Reading the Dictators' Newspapers (2025)

https://www.currentaffairs.org/news/reading-the-dictators-newspapers
1•theanonymousone•2m ago•0 comments

Ask HN: Why do we use depth first search on comment threads in HN?

1•robertclaus•2m ago•0 comments

Job application asked for my SAT scores

https://mrmarket.lol/job-application-asked-for-my-sat-scores/
1•seltzerboys•5m ago•0 comments

Ask HN: What is today's "Bitcoin in 2010"?

1•TimCTRL•6m ago•0 comments

Burnham ally to unveil ambitious plan to reverse decades of privatisation

https://www.theguardian.com/politics/2026/jun/21/burnham-ally-to-unveil-ambitious-plan-to-reverse...
2•paulpauper•6m ago•0 comments

Concerns over therapy ferrets used to kill rats at UK's largest childrens prison

https://www.theguardian.com/society/2026/jun/21/therapy-ferrets-kill-rats-uk-largest-children-pri...
1•paulpauper•7m ago•0 comments

What I've Been Reading

https://marginalrevolution.com/marginalrevolution/2026/06/what-ive-been-reading-290.html
1•paulpauper•8m ago•0 comments

Sakana AI Ships Fugu, an Orchestration Model Claiming Fable 5 Performance

https://pokee.ai/blog/pokee-ai-daily-2026-06-22
1•polskibus•8m ago•0 comments

Web Components at Work

https://thomaswilburn.github.io/wc-book/
1•homebrewer•8m ago•0 comments

Iran war supercharges electric vehicle uptake in Africa

https://www.ft.com/content/14cb294b-cdf0-4623-9393-3287fb85a4e4
1•JumpCrisscross•8m ago•0 comments

Show HN: Git Issues – versioned task management for AI agents

https://steviee.github.io/git-issues/
1•steviee•9m ago•0 comments

Show HN: Tree, truth, druid, dryad, tar and dendrite share the same PIE root

https://p.migdal.pl/tree-of-tree/
1•stared•10m ago•0 comments

Japan's 'Sakana Fugu' multiagent AI scores well against Fable 5, GPT 5.5

https://asia.nikkei.com/business/technology/artificial-intelligence/japan-s-sakana-fugu-multiagen...
2•polskibus•10m ago•0 comments

Nearly Half of LG Smart TV Apps Contain Residential Proxy SDKs

https://spur.us/blog/smart-tv-apps-residential-proxy-sdks
4•microcode•11m ago•0 comments

1 in 3 Americans use chatbots for health advice

https://www.washingtonpost.com/health/2026/06/22/1-3-americans-use-chatbots-health-advice-here-ar...
1•bookofjoe•12m ago•1 comments

Speculation Is All You Need

https://modal.com/blog/spec-is-all-u-need
3•birdculture•13m ago•0 comments

Scientific documents should be written in Python (2022)

https://github.com/charles-azam/pyforge
1•couAUIA•13m ago•0 comments

Ballistic high-powered spider webs overcome dangerous prey defenses

https://www.cell.com/current-biology/fulltext/S0960-9822(26)00570-1
1•pvaldes•13m ago•1 comments

Show HN: Anchor.nvim – Harpoon for Directories

https://github.com/zachyarbrough/anchor.nvim
1•zachyarbro•15m ago•1 comments

Dutch Scientist Charged with Conspiring to Smuggle Mpox Virus into U.S.

https://www.nytimes.com/2026/06/08/science/dutch-scientist-mpox-virus-smuggling.html
1•Georgelemental•15m ago•0 comments

Show HN: Half-Life 1, without loading screens

https://github.com/bishopdynamics/Continuum
1•bishopdynamics•16m ago•0 comments

Who's Suing Whom in AI?

https://informationisbeautiful.net/visualizations/the-rise-of-generative-ai-large-language-models...
1•zdw•18m ago•0 comments

Russia's nuclear-powered 'Skyfall' missile is dirty and dangerous

https://www.npr.org/2026/06/18/nx-s1-5843252/russia-nuclear-powered-missile-burevestnik
1•fanf2•18m ago•0 comments

Omnigent: A Meta-Harness to Combine, Control and Share Your Agents

https://www.databricks.com/blog/introducing-omnigent-meta-harness-combine-control-and-share-your-...
1•handfuloflight•18m ago•0 comments

TrustedRouter

https://trustedrouter.com/
1•handfuloflight•21m ago•0 comments

Show HN: Localish – Your Localhost in the Cloud

https://popflame.quickish.space/blog/localish-your-localhost-on-the-cloud/
1•PaybackTony•23m ago•0 comments

PreactPress – VitePress-style documentation for Preact

https://kamod-ch.github.io/preactpress/
1•zahir777•23m ago•0 comments