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.

Dyson's CameraJet is a $500 three-in-one toothbrush that scans your maw

https://www.engadget.com/2248230/dyson-camerajet-is-a-500-three-in-one-toothbrush-that-scans-your...
1•thm•35s ago•0 comments

Latest EU-US data exchange draft shows EU still submitting to US demands

https://statewatch.org/news/2026/august/leaked-latest-eu-us-data-exchange-draft-shows-eu-still-su...
1•robtherobber•1m ago•0 comments

Carp Café

https://www.carp.cafe/
1•Areibman•2m ago•0 comments

The Mininum Sellable Unit

https://oconselho.ai/thesis
1•arthurfarache•3m ago•0 comments

Full-Text Search Still Works. It Just Doesn't Get You to an Answer

https://medium.com/@s_nikolaev/full-text-search-still-works-it-just-doesnt-get-you-to-an-answer-2...
1•snikolaev•3m ago•0 comments

Number of young people with no close friends has soared since 2014 in England

https://www.theguardian.com/society/2026/sep/01/thinktank-reports-epidemic-of-loneliness-among-en...
1•Symbiote•5m ago•0 comments

ExitLaunch – A hand-vetted directory of active Micro-SaaS buyers

https://docs.google.com/spreadsheets/d/16pkNcl33UulKELXCsvXf0oJzUbcVQ1iHTvoLC5kV_0s/edit?usp=sharing
1•shemi_ceo•6m ago•0 comments

Decca Navigator System

https://en.wikipedia.org/wiki/Decca_Navigator_System
1•Bluestein•7m ago•0 comments

Self-Hosting on the Dark Web

https://david.alvarezrosa.com/posts/self-hosting-on-the-dark-web/
2•dalvrosa•7m ago•0 comments

California legislature passes a major local news funding bill

https://www.niemanlab.org/2026/08/california-passes-a-major-local-news-funding-bill-if-you-hire-m...
1•rdmuser•8m ago•0 comments

How Much Does Greece's Achilles Shield Cost? ($3.5B Defense Deal with Israel)

https://www.thepricer.org/how-much-does-greeces-achilles-shield-cost/
2•cinderelacinder•10m ago•0 comments

Welcome to the Porcelain Insulator Collector's World of Mud

https://www.insulators.info/porcelain/
2•ripe•11m ago•1 comments

Apple Leadership

https://www.apple.com/leadership/
3•tomatofu•12m ago•0 comments

Ask HN: Anyone else getting spammed by Bond (YC P25) ?

1•drcongo•13m ago•0 comments

Starscout: Find suspicious (and possibly faked) GitHub stars at-scale

https://github.com/hehao98/starscout
2•mdspan•15m ago•0 comments

Think twice before installing this device promising free movies

https://arstechnica.com/security/2026/08/how-some-media-streaming-devices-open-home-networks-to-a...
1•joozio•16m ago•0 comments

Show HN: I Built a Bot

https://github.com/chanyeinthaw/friday
1•chanyeinthaw•20m ago•0 comments

Lake Ontario ("Lake America")

https://community.openstreetmap.org/t/lake-ontario-lake-america/146975
4•rdmuser•21m ago•1 comments

Show HN: AI-powered link building and SEO outreach, smarter

https://outreachlooper.com
1•not_wowinter14•23m ago•0 comments

Semantic Lightness and the Rise of LLMs

https://assertfail.gewalli.se/2026/08/23/Semantic-lightness-and-the-rise-of-LLMs.html
1•wallymathieu•23m ago•0 comments

We Let AI Agents Rewrite a 92M-Message-a-Day Service in Go

https://www.checklyhq.com/blog/agentic-rewrite-nodejs-to-go/
3•tnolet•26m ago•0 comments

Rui Ueyama: "We are rewriting the mold linker in Rust"

https://twitter.com/rui314/status/2094677980857680052
1•afdbcreid•26m ago•0 comments

BitCards – Computer Ads from the Past

https://computeradsfromthepast.substack.com/p/bitcards
1•rbanffy•28m ago•0 comments

Xbot.team – Read a Grok Bot's spec without opening the app

https://xbot.team
1•GrokBotVisbile•31m ago•0 comments

Can we stop AI from deceiving us?

https://www.theguardian.com/news/2026/sep/01/if-you-build-something-vastly-smarter-than-you-it-be...
2•Archelaos•31m ago•0 comments

Formatting as Courtesy to the Reader

https://tracydurnell.com/2026/08/31/formatting-as-courtesy-to-the-reader/
1•serhack_•32m ago•1 comments

Introduction to the NT kernel development (Part 1)

https://geob99.github.io/pages/nt-dev/nt-dev-part1.html
1•serhack_•33m ago•0 comments

Americans Still Skeptical That UFOs Are Aliens

https://news.gallup.com/poll/713765/americans-skeptical-ufos-aliens.aspx
1•helsinkiandrew•34m ago•1 comments

The Meaning of Liff

https://en.wikipedia.org/wiki/The_Meaning_of_Liff
1•Bluestein•35m ago•0 comments

AI Orchestrator that self-learns, run's teams and never sleeps

https://crewmoot.hellodexter.com/
1•dalekirkwood•35m ago•1 comments