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.

A Collectivist, Economic Vision for AI

https://cacm.acm.org/research/a-collectivist-economic-vision-for-ai/
1•visha1v•1m ago•0 comments

Automated researchers can reliably mitigate alignment failures

https://www.anthropic.com/research/automated-researchers-mitigate-alignment-failures
1•EvgeniyZh•6m ago•0 comments

Show HN: Hikaru – image compression that hits an exact file size, no slider

https://hikarulabs.xyz
1•CFBL•7m ago•0 comments

The Ultimate Dream

https://blog.br11k.dev/2026-08-29-the-ultimate-dream
1•konovalov-nk•11m ago•1 comments

Git.kernel.org Is "Interesting" to Crawlers

https://people.kernel.org/monsieuricon/creepy-crawlies
1•sohkamyung•12m ago•1 comments

Show HN: Snippety – a native text expander for Mac and iPhone

https://snippety.app
1•snippety•12m ago•0 comments

We Ran Code Inside Fortune 500s Using Files They Published for AI Agents

https://medium.com/@alonhertz1/data-became-code-we-ran-code-inside-fortune-500s-using-files-they-...
3•nizbit•13m ago•1 comments

Does Computer Science Need Computers?

https://www.quantamagazine.org/does-computer-science-need-computers-20260828/
1•rbanffy•14m ago•0 comments

You Know GDPR Is Good Based on Who Hates It

https://matduggan.com/you-know-gdpr-is-good-based-on-who-hates-it/
2•latexr•17m ago•0 comments

Making $2.7M a Year Selling Ice in NYC [video]

https://www.youtube.com/watch?v=iGejCONYVjA
1•binyu•17m ago•0 comments

I ran a little experiment: could I make agent memory deterministic

https://www.lorekit.io/blog/agent-memory-data-model
1•mthines•18m ago•0 comments

Adversarial Interoperability

https://www.eff.org/deeplinks/2019/10/adversarial-interoperability
1•orphereus•23m ago•0 comments

"Lead through code" – engineering managers getting squeezed

https://www.youtube.com/watch?v=MPVmV-6O5to
1•lifeisstillgood•24m ago•0 comments

Show HN: Player vs. Computer

https://github.com/Rubinoslaw/Player-vs-Computer/
1•PolishDevelop22•27m ago•0 comments

LuaDB: Lightweight, embeddable, zero-dependency RDBMS written 100% in pure Lua

https://github.com/jncastilho/luadb
1•thunderbong•28m ago•0 comments

How bicycle coaster brakes work (2018)

https://www.dougbarnesauthor.com/2018/06/how-bicycle-coaster-brakes-work.html
1•Vedor•30m ago•0 comments

Rhine Group: Draghi, Collison unite experts for EU competitiveness

https://en.ilsole24ore.com/art/draghi-and-collison-stripe-set-to-boost-growth-in-europe-the-rhine...
3•Lucasoato•36m ago•0 comments

InferenceFS: Never worry about data again (Again)

https://github.com/philipl/inferencefs/
1•linkdd•37m ago•0 comments

Breakscale: Distributed Systems Design Simulator

https://github.com/xevrion/breakscale
1•handfuloflight•39m ago•0 comments

Muraqib, free nightly QA that lets Claude open a fix PR when tests fail

https://github.com/holistis/muraqib
1•Bugintelligence•52m ago•0 comments

Show HN: AgentBridge – Let one AI think while another AI writes the code

https://github.com/IndexFlowing/AgentBridge
2•mandarinclips•1h ago•1 comments

Nepal's flood damage may cost up to a tenth of economy to rebuild

https://www.reuters.com/world/china/nepal-needs-least-4-billion-rebuilding-finance-minister-says-...
2•geox•1h ago•0 comments

Pentagon's blacklisting of Anthropic was unlawful, US judge rules

https://www.theguardian.com/technology/2026/aug/28/us-court-rules-pentagon-anthropic-ban-illegal-...
2•vinni2•1h ago•0 comments

Walkable Cities

https://nartier.itch.io/walkable-cities
3•tehsauce•1h ago•0 comments

Some GitHub bounty repos are honeypots that farm free work from AI agents

https://oactodev.github.io/ninety-quid/report/
1•ninetyquid•1h ago•0 comments

Five ways 3D printing is improving lab work

https://www.nature.com/articles/d41586-026-02535-z
2•zeristor•1h ago•0 comments

Books Turned into Podcast Series

https://bookdialogues.com/home
1•jasmeet0817•1h ago•1 comments

Researcher Tricked Claude, Codex and Hermes into Running Malware

https://startupfortune.com/researcher-alon-hertz-tricked-claude-codex-and-hermes-into-running-mal...
12•CuriousLLM•1h ago•0 comments

SynapticChain: Single-wallet concurrency record (5,307 TPS from 1 key in Rust)

https://explorer.synapticchain.xyz
1•abdulshabazz•1h ago•0 comments

I built a financial visibility layer for multi-model AI applications

https://credlier.com/
1•dcriglerd•1h ago•0 comments