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.

Lobsters Interview with Claudius

https://alexalejandre.com/programming/interview-with-claude-roux/
1•birdculture•22s ago•0 comments

The Art of Loop Engineering

https://www.langchain.com/blog/the-art-of-loop-engineering
1•doppp•1m ago•0 comments

Next-Latent Prediction Transformers Learn Compact World Models (2025)

https://arxiv.org/abs/2511.05963
1•optimalsolver•2m ago•0 comments

Mekton (1995), mech first-person game from SGI ahead of time

https://www.neogaf.com/threads/mekton-1995-a-mech-first-person-game-from-sgi-ahead-of-time-from-t...
1•theletterf•5m ago•0 comments

A universal basic income could rebuild social cohesion (AU)

https://independentaustralia.net/politics/politics-display/a-universal-basic-income-could-rebuild...
1•robtherobber•9m ago•0 comments

An Early Example of Super Bad AI Governance

https://computerlove.tech/blog/super-bad-ai-governance
1•juunge•9m ago•0 comments

The Rape Gang Inquiry Report [pdf]

https://static1.squarespace.com/static/6810978a41bbc42489eafa81/t/6a314bb1151e511944bd4421/178161...
1•Redoubts•12m ago•0 comments

Jyllands-Posten Muhammad cartoons controversy (2005)

https://en.wikipedia.org/wiki/Jyllands-Posten_Muhammad_cartoons_controversy
1•simonebrunozzi•16m ago•0 comments

How to Sparkle in Conversation with Strangers

https://www.newscientist.com/article/2530034-how-to-sparkle-in-conversation-with-strangers/
2•Anon84•16m ago•0 comments

Multiplayer Surf_ski_2 in the Browser

https://www.surfski2.com/
1•possiblelion•17m ago•1 comments

Need a Co-Founder

1•gangaplains•20m ago•1 comments

Captured Logs Reveal Hackers Using Claude and Codex to Breach Companies

https://research.openanalysis.net/claude/codex/hacking/ai%20hacking/llm/redteam/policy%20violatio...
1•Tiberium•20m ago•1 comments

The discovery that changed how scientists think about memory – IBM

https://www.ibm.com/think/news/discovery-changed-how-scientists-think-about-memory-kavli-prize
1•rbanffy•21m ago•0 comments

How the UK government is using AI to speed up the planning system

https://takes.jamesomalley.co.uk/p/build-gemini-build
1•writerJames•22m ago•1 comments

Url.computer – client side URL parser and cURL query builder

https://url.computer/
1•interweb_tube•23m ago•1 comments

Kepp – save anything in one tap, no folders (iOS/Android)

https://kepp.io/
2•palpalych•23m ago•0 comments

Smarter Charging, An AI controller treats batteries differently as they age

https://spectrum.ieee.org/ev-charging-strategy
1•oldnetguy•23m ago•0 comments

How to Hack a Superyacht

https://thewalrus.ca/how-to-hack-a-superyacht/
1•pseudolus•25m ago•0 comments

Entrepreneurs in Nairobi make the case for going solar

https://www.technologyreview.com/2026/06/17/1138600/entrepreneurs-nairobi-case-for-going-solar/
1•joozio•27m ago•0 comments

IBM Turns 115 Today

https://www.threads.com/@therab/post/DZqsiiWjI-k
2•rbanffy•27m ago•1 comments

AIs on their own found ways to exploit regulations and evade current safeguards

https://www.science.org/content/article/ai-models-have-troubling-knack-discovering-legal-loopholes
2•pseudolus•27m ago•0 comments

Show HN: Digital inspection reports for any rental property

https://kamerinspectie.nl/en
1•tjardo•29m ago•0 comments

Huall, autonomous AI agents

https://huall.dev
1•Kreshnik•30m ago•1 comments

Scientists Find Intriguing Link Between Ozempic and Violent Behavior

https://gizmodo.com/scientists-find-intriguing-link-between-ozempic-and-violent-behavior-2000772629
1•akyuu•33m ago•0 comments

Structural steel estimating: the steps were never the hard part

https://bidferra.com/blog/the-honest-guide-to-structural-steel-estimating
2•fazlerocks•36m ago•0 comments

Lenovo releases new 14-inch ThinkPad with 64 GB RAM and built-in pen

https://www.notebookcheck.net/Lenovo-releases-new-14-inch-ThinkPad-with-64-GB-RAM-and-built-in-pe...
1•teleforce•37m ago•0 comments

RFC 10008: The new HTTP Query Method

https://www.rfc-editor.org/info/rfc10008/
2•schappim•39m ago•0 comments

From Combinatorial Mess to Linear Elegance: Architecting a Conversion Engine

https://blog.minimal.app/conversion-engine/
1•arthurofbabylon•42m ago•0 comments

Could Earth have sent life to Jupiter's moon Europa?

https://phys.org/news/2026-06-earth-life-jupiter-moon-europa.html
1•pseudolus•44m ago•1 comments

Color Picking OKLCH for Mortals

https://hugodaniel.com/posts/color-picking-oklch/
2•hugodan•44m ago•0 comments