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.

Breadcrumbs

https://map.simonsarris.com/p/breadcrumbs
1•simonsarris•36s ago•0 comments

Dementia Risk After Recombinant Herpes Zoster Vaccination in Older Adults

https://www.acpjournals.org/doi/10.7326/ANNALS-25-04689
1•atombender•1m ago•0 comments

Thermodynamic Measure of Intelligence

https://arxiv.org/abs/2606.20231
1•sbulaev•3m ago•0 comments

Rethinking Modularity in Ruby Applications

https://noteflakes.com/articles/2026-06-18-syntropy-modules
2•thunderbong•6m ago•0 comments

Ming Yang Unveils Next-Gen 50 MW Floating Wind Turbine

https://en.myse.com.cn/news/info.aspx?itemid=2534
1•thelastgallon•7m ago•1 comments

XLibre XServer 25.2.0 Released

https://github.com/X11Libre/xserver/wiki/XLibre-XServer-25.2-Changes
9•calvinmorrison•16m ago•5 comments

Cyberdecks, going analog, and convivial technology

https://blog.hydroponictrash.solar/cyberdecks-going-analog-and-convivial-technology/
1•akkartik•16m ago•0 comments

Secretive Wall Street Powerhouse Jane Street Seizes the AI Spotlight

https://www.wsj.com/tech/ai/jane-street-ai-wall-street-bdfcc81a
1•pondsider•20m ago•0 comments

Brain-computer interface enables independent communication for man with ALS

https://health.ucdavis.edu/news/headlines/brain-computer-interface-enables-independent-accurate-c...
1•gmays•22m ago•0 comments

Diffusion‑based LLMs that generate many parallel tokens rather than one‑by‑one

https://www.inceptionlabs.ai/
1•binyu•24m ago•0 comments

Painting a Landscape with Mathematics [video]

https://www.youtube.com/watch?v=BFld4EBO2RE
1•soupspaces•28m ago•0 comments

Show HN: Vxpix – $50 lifetime screenshot API, URL to image in <1s

https://tool.vxpix.com/
1•vxpix•36m ago•0 comments

Show HN: Schemic – your database schema, in the Zod API you know

https://schemic.dev/
1•msanchezdev•38m ago•0 comments

Scientists warn 'Godzilla' El Niño could intensify climate impacts worldwide

https://www.npr.org/2026/06/17/nx-s1-5860821/el-nino-peru-climate
1•rolph•38m ago•1 comments

Show HN: Muninn - 8 Security scanners in one GitHub Action

https://github.com/skaldlab/muninn
1•sg0nzalez83•38m ago•0 comments

Historic Firsts – a daily game about ranking firsts in history

https://playhistoricfirsts.com/
1•jeremyfrancis87•43m ago•0 comments

Gizmodo compromised, serving ClickFix malware capchas

https://gizmodo.com/io9
5•radley•45m ago•1 comments

show hn: Turn server photos into editable rack templates (experimental)

https://react-networks-lib.rackout.net/asset-designer
1•matt-p•46m ago•0 comments

The Standard Model from the octonions on a hyperbolic 24-cell lattice

https://zenodo.org/records/20768426
2•lancejpollard•47m ago•0 comments

Wave Equation with Computable Initial Data and Solution Is Nowhere Computable

https://dl.acm.org/doi/abs/10.1002/malq.19970430406
2•measurablefunc•47m ago•0 comments

MojiMoshi – create an AI agent that lives in Telegram or Line

https://mojimoshi.com/
1•xsirix•49m ago•0 comments

Help I Accidentally a Wigglegram

https://lmao.center/blog/wiggle-accidents/
2•gregsadetsky•50m ago•0 comments

Copyany Websites Brand Kit

https://chromewebstore.google.com/detail/ai-brand-kits-—-extract-b/cbdoamlbbflaphjnbladbfnianjl...
1•mattmerrick•51m ago•0 comments

Trump administration reverses decision to scrap ocean monitoring system

https://www.theguardian.com/us-news/2026/jun/18/ocean-monitoring-system-reversal-trump-administra...
6•thunderbong•52m ago•0 comments

A Trillion Dollars Isn't Worth It If You Have to Be Elon Musk

https://www.currentaffairs.org/news/a-trillion-dollars-isnt-worth-it-if-you-have-to-be-elon-musk
4•Anon84•53m ago•2 comments

Ask HN: Is there a microSD card of the Mythos model?

2•smalltorch•53m ago•0 comments

The model is swappable the ontology compounds

https://www.typedef.ai/blog/the-model-is-swappable-the-ontology-compounds
1•cpard•55m ago•0 comments

Software Optimization Resources

https://www.agner.org/optimize/
2•turtleyacht•57m ago•0 comments

AI AlphaFold pioneer who won a Nobel Prize leaves Google DeepMind for Anthropic

https://www.businessinsider.com/alphafold-john-jumper-leaves-google-deepmind-anthropic-demis-hass...
2•nsoonhui•1h ago•0 comments

A coding agent is six functions in a trenchcoat

https://tidydesign.substack.com/p/a-coding-agent-is-six-functions-in
2•data_ders•1h ago•0 comments