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.

AI commoditized agency execution. It didn't commoditize the psychology behind it

1•SoloiseDatalabs•4s ago•0 comments

Life at Every Dropout Billionare Level [video]

https://www.youtube.com/watch?v=ZcfD9dBN0Tw
1•Animats•16s ago•0 comments

Foveon – Bayer to Foveon X3, learned, Mac App using deep learning

https://code.intellios.ai/photo/
2•coolwulf•1m ago•1 comments

Show HN: NextRole – multi-agent resume tailoring and interview prep

https://github.com/tam159/next-role
2•tam159•2m ago•0 comments

Ask HN: Why are we humans still prompting to make Agents better?

2•shubhamintech•8m ago•1 comments

AI Berkshire

https://github.com/xbtlin/ai-berkshire
2•grajmanu•8m ago•0 comments

Building a custom octocopter from scratch with no prior hardware experience

https://karolina.mgdubiel.com/drone/
2•noleary•11m ago•0 comments

Chinese cars go blacker than black via hybrid nano tech

https://newatlas.com/automotive/ultra-black-cb-cnt-hybrid-coating-robust-cars/
2•breve•12m ago•0 comments

AI Is Making Silicon Valley Productive, Anxious and Afraid to Log Off

https://www.bloomberg.com/news/articles/2026-06-26/ai-anxiety-is-fueling-burnout-across-silicon-v...
2•uzyn•14m ago•0 comments

The human eye may hold the fix for self-driving cars

https://newatlas.com/technology/eye-inspired-photomemristor-self-driving-cars/
2•breve•15m ago•0 comments

I wrote a free book about Scripture, AI, and language

https://wordnamefire.com/
2•seomister7•15m ago•0 comments

Pollen tried to remove my article and Google is assisting

https://blog.pragmaticengineer.com/pollen-tried-to-remove-my-article-about-callum-negus-fancey-an...
3•lolinder•23m ago•0 comments

Attention is all we have

https://davidbessis.substack.com/p/attention-is-all-we-have
2•gmays•24m ago•0 comments

Exposed DB, Exposed Credentials, Exposed KEV Exposures, Subdomain Takeover

2•gladiator291288•28m ago•0 comments

Annotation and the Malleability of Software

https://azlen.me/stories/annotation-story/
2•handfuloflight•29m ago•0 comments

Study highlights CERN's socio-economic contributions as a global research hub

https://home.cern/new-study-highlights-cerns-socio-economic-contributions-as-a-global-research-hub/
2•visha1v•32m ago•0 comments

A plane crashed into tallest skyscraper in Beijing.Hours later,all news scrubbed

https://www.cnn.com/2026/06/27/china/beijing-plane-crash-citic-tower-censorship-china-intl-hnk
2•Markoff•32m ago•2 comments

You can export/import passkeys now, but only on iOS

https://danfabulich.medium.com/you-can-export-import-passkeys-now-but-only-on-ios-3b90cddf5fe6
1•dfabulich•33m ago•0 comments

Virtual AI police chief introduced in Osaka amid rising imposter scams

https://mainichi.jp/english/articles/20260627/p2g/00m/0na/029000c
1•rawgabbit•41m ago•0 comments

Make Reality Answer [pdf]

https://hari.computer/book.pdf
4•markovblanket•49m ago•3 comments

Working around dragons with the Lemote Yeeloong laptop and OpenBSD

http://oldvcr.blogspot.com/2026/06/working-around-dragons-with-lemote.html
3•classichasclass•52m ago•0 comments

Alzheimers: The undiscovered country from whose bourn no traveler returns (2007)

https://www.rogerebert.com/reviews/away-from-her
2•walterbell•52m ago•0 comments

AI Realtime Commentator for the World Cup

https://twitter.com/zicohacks/status/2070401037018788301
4•aurenvale•57m ago•0 comments

The Unglamorous Side of Rust Web Development

https://blog.jetbrains.com/rust/2026/06/25/rust-web-development-2026/
7•vilasa•1h ago•1 comments

Ketogenic diets slow melanoma growth in vivo

https://link.springer.com/article/10.1186/s40170-022-00288-7
3•koolba•1h ago•2 comments

Improved LLM as a Judge Techniques

https://arxiv.org/abs/2606.27226
2•haritha1313•1h ago•0 comments

GSD – Open-source, local-first task manager built on the Eisenhower matrix

https://gsdtaskmanager.com/
2•vscarpenter•1h ago•0 comments

We can't retrain our way out of AI's economic disruption

https://mollykinder2.substack.com/p/we-cant-retrain-our-way-out-of-ais
2•keeda•1h ago•0 comments

Ford hired AI and sacked humans. It backfired badly

https://www.the-independent.com/tech/ford-ai-automation-human-workers-b3003787.html
39•speckx•1h ago•16 comments

Monlite – documents, vectors, cache, and job queue in one SQLite file

https://github.com/qataruts/monlite
4•emadjumaah•1h ago•0 comments