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: Self-improving Claude Code with turn-counter hook

https://github.com/JonnaMat/claude-skill-self-improve
1•JonnaMat•32s ago•0 comments

AI Agents Enable Mass Profiling

https://arxiv.org/abs/2612.02638
1•dpaleka•3m ago•0 comments

Show HN: DNey Guard – Catch sensitive data before it goes to ChatGPT or Claude

https://github.com/gkasinath2020/dney-guard-chrome
1•gauthamkasinath•5m ago•0 comments

Asking is not waiting: a coding agent shipped before user replied

https://attentiontuning.ai/blog/asking-is-not-waiting
1•bit_byte•5m ago•0 comments

NASA data shows Kelvin waves raising sea levels off Southern California coast

https://ktla.com/news/california/southern-california-el-nino-kelvin-wave/
1•howard941•5m ago•0 comments

Open Food Facts

https://world.openfoodfacts.org
1•zeristor•6m ago•0 comments

Video-rate wavefront capture and replay: toward holographic telepresence

https://www.oejournal.org/oea/article/doi/10.29026/oea.2026.260001
2•bookofjoe•10m ago•0 comments

Laravel for Basic

https://github.com/pihedy/laravel-goto
1•gisbird•10m ago•0 comments

Laravel Smiley

https://github.com/pihedy/laravel-smiley
1•slopinthebag•11m ago•0 comments

Oxford Word of the Year 2026: Slopaganda

https://corp.oup.com/word-of-the-year/
1•gmays•11m ago•0 comments

Nvidia's Top Lawyer Confirms Trump Put Our National Security for Sale

https://newrepublic.com/post/218557/nvidia-lawyer-confirms-trump-deal-cut-chips-sales
1•bananaboy•12m ago•0 comments

Elon Musk's "zero deaths" claim is "a horrendous lie"|The Economist [video]

https://www.youtube.com/shorts/olqNrDw587E
3•PhotonHunter•13m ago•0 comments

Show HN: I cut build time and disk use for coding agents in Git worktrees

https://github.com/theblixguy/warm-worktrees
1•suyashsrijan•13m ago•0 comments

Show HN: Sea Album – 2,896 marine species sorted by colour and habitat

https://seaalbum.com/en/
1•alchaincyf•15m ago•0 comments

Tinipedia – the least viewed Wikipedia articles of 2026

https://tinipedia.elan.place/
1•cjlm•15m ago•0 comments

6 of the 10 biggest automakers are betting on this solid-state EV battery maker

https://electrek.co/2026/12/01/6-of-worlds-10-biggest-automakers-betting-on-this-solid-state-ev-b...
2•cisc•16m ago•0 comments

Quantum is unimportant to post-quantum (2024)

https://blog.trailofbits.com/2024/07/01/quantum-is-unimportant-to-post-quantum/
1•tyoma•16m ago•0 comments

Billions of stars revealed in latest Milky Way map by the Gaia space telescope

https://apnews.com/article/gaia-telescope-milky-way-european-space-agency-42889bec400d26921e33048...
1•bushwart•17m ago•0 comments

US banks are sharing Social Security numbers with advertising giants Reddit, X

https://techcrunch.com/2026/12/03/us-banks-are-sharing-social-security-numbers-with-advertising-g...
6•pseudolus•18m ago•0 comments

Stable element IDs in blog article lists

https://entropicthoughts.com/stable-element-ids-in-article-list
1•titusblair•19m ago•0 comments

Regular Primes

https://www.johndcook.com/blog/2026/12/03/regular-primes/
1•titusblair•19m ago•0 comments

Mitos looks like an appealing successor to Helix

https://ergaster.org/thoughts/mitos-helix-successor/
1•titusblair•19m ago•0 comments

Open Food Facts Database

https://huggingface.co/datasets/openfoodfacts/product-database
2•zeristor•21m ago•1 comments

Nintendo and the Minnesota State Lottery

https://gamehistory.org/lotto/
1•ndiddy•21m ago•0 comments

Musk promises Tesla HW3 owners a discount, not the self-driving they paid for

https://electrek.co/2026/12/03/tesla-hw3-discount-musk-shareholder-meeting-fsd/
2•cisc•21m ago•0 comments

Robot startup Foundation CEO fires co-founder after dispute over $4.6M loan

https://www.cnbc.com/2026/12/03/foundation-mike-leblanc-loan-dispute.html
1•ilamont•24m ago•1 comments

The Monumental Achievement of the Stanford Encyclopedia of Philosophy

https://www.newyorker.com/culture/annals-of-inquiry/the-monumental-achievement-of-the-stanford-en...
1•pseudolus•24m ago•1 comments

NY State Issues 5 Year Ban on AI Chatbot Toys

https://www.techdirt.com/2026/12/03/ny-state-issues-5-year-ban-on-ai-chatbot-toys-after-plushies-...
2•cdrnsf•25m ago•1 comments

Second earthquake hits Manhattan Beach 5 days after 5.0

https://abc7.com/post/37-magnitude-earthquake-strikes-off-coast-manhattan-beach-usgs-says/20114672/
1•illidan1000•25m ago•0 comments

Mastodon 5.0 Released

https://lwn.net/Articles/1111126/
2•millspore•25m ago•0 comments