frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•11mo 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•11mo 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•11mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•11mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Cleveland Clinic, Riken, and IBM Model a 12,635-Atom Protein

https://newsroom.ibm.com/2026-05-05-cleveland-clinic,-riken,-and-ibm-model-a-12,635-atom-protein-...
1•sokols•3m ago•0 comments

Counting wires and insulators on poles using AI (using open-source Revdoku)

https://revdoku.com/cases/utility-pole-wire-insulator-count/
1•eummm•3m ago•0 comments

Why is event discovery still so fragmented?

https://sochely.com/
1•godimittry90•5m ago•0 comments

Browser extension that hooks fetch() to track Claude.ai token usage

https://github.com/Krabby24/claude-token-tracker
1•krabby24•5m ago•0 comments

Test

1•vcxbool•6m ago•0 comments

Yazi – Fast Terminal File Manager

https://github.com/sxyazi/yazi
1•lastdong•7m ago•0 comments

What's Inside a Kubernetes Service?

https://blog.kubesimplify.com/how-a-kubernetes-service-actually-works-and-all-5-types-you-need
1•saiyampathak•9m ago•0 comments

Germany's solar installations drop while new battery storage hits record

https://www.cleanenergywire.org/news/germanys-solar-installations-drop-while-new-battery-storage-...
1•leonidasrup•11m ago•0 comments

Remodex: Control Codex from Your iPhone

https://github.com/Emanuele-web04/remodex
1•steveharing1•12m ago•1 comments

Constraint Programming

https://developers.google.com/optimization/cp
1•wolfi1•12m ago•0 comments

On-Device AI Coming to React Native with Gemma and React Native Executorch

https://twitter.com/swmansion/status/2051323788793352496
1•kuligkar•12m ago•0 comments

Node-Firebird-Driver-Wire

https://asfernandes.github.io/2026/05/04/node-firebird-driver-wire
1•mariuz•13m ago•0 comments

Csvtocsv – any CSV to any CSV, fixes the stuff that breaks imports

https://csvtocsv.com/
3•jakubtutaj_pl•15m ago•0 comments

Lessons for Agentic Coding: What should we do when code is cheap?

https://www.dbreunig.com/2026/05/04/10-lessons-for-agentic-coding.html
2•ingve•16m ago•0 comments

GameStop offers $56B for eBay, struggles to explain how it'll pay for it

https://arstechnica.com/tech-policy/2026/05/gamestop-offers-56-billion-for-ebay-struggles-to-expl...
1•joozio•18m ago•0 comments

Gcx: A CLI for managing Grafana Cloud resources

https://github.com/grafana/gcx
1•zdkaster•20m ago•0 comments

Hayashi – Architecture Boundary Diagrams as Code

https://github.com/comradenala/hayashi
1•jdbohrman•23m ago•0 comments

Retrospective on Black and White and it's connection to Google DeepMind

https://www.eurogamer.net/black-and-white-lionhead-peter-moylneux-retrospective-google-deepmind-g...
2•MrDresden•27m ago•0 comments

Microsoft fixes VS Code after app gives Copilot credit for human's work

https://www.theregister.com/2026/05/04/microsoft_reverses_ai_credit_grab/
2•beardyw•27m ago•0 comments

A complete Llama2 inference engine that fits in 1356 bytes of x86 assembly

https://github.com/rdmsr/sectorllm
1•monax•28m ago•0 comments

Designing Microkernel IPC

https://seiya.me/blog/microkernel-ipc-design
1•mpweiher•28m ago•0 comments

A Brief History of Who Gets to Run Money

https://podium-finance.com/blog/a-brief-history-of-who-gets-to-run-money
1•nlpnerd•29m ago•0 comments

AI business and the issue of context drift

https://tensorpm.com
1•Neo552•30m ago•1 comments

AI is 'creating an enormous number of jobs'

https://techcrunch.com/2026/05/04/as-workers-worry-about-ai-nvidias-jensen-huang-says-ai-is-creat...
1•tijana3290•34m ago•0 comments

Claude Code: /effort is global across concurrent sessions instead of session

https://github.com/anthropics/claude-code/issues/49166
1•esher•37m ago•0 comments

The Laboratory and the Artist

https://clereviewofbooks.com/the-laboratory-and-the-artist/
1•Michelangelo11•40m ago•0 comments

InstaPurge – Rapid Mass Instagram DM Deletion Script

https://github.com/mahdixmohammad/instapurge
1•instagraham•40m ago•1 comments

The Paranal Solar Espresso Telescope, a New Tool for Finding Exoplanets

https://www.universetoday.com/articles/the-paranal-solar-espresso-telescope-a-new-tool-for-findin...
1•rbanffy•42m ago•0 comments

Suspected hantavirus outbreak traps 150 on ship off Cape Verde

https://www.reuters.com/business/healthcare-pharmaceuticals/who-says-risk-public-is-low-after-sus...
2•mgh2•42m ago•0 comments

Transgender Homicides in Britain, 2000-2025: Victims and Perpetrators

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6182901
3•fodmap•43m ago•0 comments