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.

Ask HN: Markov CYOA

1•bikepondMR•1m ago•0 comments

Apple 'Hide My Email' Vulnerability Reveals Peoples' Real Email Addresses

https://www.404media.co/apple-hide-my-email-vulnerability-reveals-peoples-real-email-addresses/
1•1vuio0pswjnm7•3m ago•1 comments

Link Site

https://xxsml.com
1•sohocs509•5m ago•1 comments

First Kirby Game Was Created with a Trackball, No Keyboard

https://www.pcmag.com/news/first-kirby-game-was-created-with-a-trackball-no-keyboard
1•scottchiefbaker•7m ago•0 comments

Show HN: Foundation – A Tale of Tokens and Psychosis

https://github.com/nmxmxh/foundation
1•MomohNobert•9m ago•0 comments

Freemediaheckyeah

https://fmhy.net/reading
1•kamphey•12m ago•0 comments

Building a Datacenter in My Dorm Room

https://corvaglia.dev/blog/2026/datacenter-in-dorm/
1•corvad•13m ago•0 comments

Windows 11 will soon be able to reinstall itself and drivers without a USB drive

https://www.windowscentral.com/microsoft/windows-11/windows-11-will-soon-be-able-to-reinstall-its...
2•thunderbong•13m ago•0 comments

Cases of parasite that causes explosive bathroom emergencies surge to nearly 600

https://www.dailymail.com/health/article-15956735/cyclospora-parasite-outbreak-michigan-restauran...
1•Bender•18m ago•0 comments

X Launches iOS Video Editor with Captions and Green Screen

https://twitter.com/nikitabier/status/2074218166033781048
1•mak8•21m ago•0 comments

Decomposer: Learning to Decompile Symbolic Music (Like MIDI) to Programs

https://arxiv.org/abs/2607.01849
1•laybak•21m ago•0 comments

Pi (Rust): High-performance AI coding agent CLI written in Rust

https://github.com/Dicklesworthstone/pi_agent_rust
1•rsyring•24m ago•0 comments

I'm Betting My Company on Proactive Agents

https://polylane.com/blog/proactive-agents/
1•mooreds•26m ago•0 comments

Stet – a Markdown editor where every AI edit needs your sign-off

https://www.getstet.app/
1•DrewRaines•30m ago•0 comments

Millfolio – my take on local/hybrid AI

https://millfolio.app/blog/send-the-program-to-your-data/
1•winding•32m ago•0 comments

How Much Is AI Manipulating Us?

https://americanrefugees.substack.com/p/how-much-is-ai-manipulating-us
2•smitty1e•35m ago•3 comments

Apache Shiro security framework releases 3.0.0

https://shiro.apache.org/blog/2026/06/apache-shiro-300-released.html
1•lprimak•38m ago•0 comments

Show HN: QuickPing – dead simple way for customers to get in touch with you

https://www.quickping.dev/
1•jmcbca04•39m ago•0 comments

New Realtime models (GPT-realtime-2.1 and GPT-realtime-2.1-mini) on the API

https://community.openai.com/t/new-realtime-models-on-the-api-gpt-realtime-2-1-and-gpt-realtime-2...
2•soheilpro•43m ago•0 comments

Putin is losing his battle with reality [video]

https://www.youtube.com/watch?v=AAbtLR_n_E8
1•Bender•44m ago•0 comments

This Device Doesn't Make Sense (Sickos) [video]

https://www.youtube.com/watch?v=P4GnzlDkw5o
1•kordlessagain•44m ago•0 comments

Toy Story (2001)

https://www.embedded.com/toy-story/
2•matltc•44m ago•0 comments

Modest Shapes

https://herbertlui.net/modest-shapes/
2•herbertl•45m ago•0 comments

M9 Gun Director

https://en.wikipedia.org/wiki/M9_gun_director
3•bo0tzz•50m ago•0 comments

$2.35M Hybrid hypercar Czinger 21C

https://arstechnica.com/cars/2026/07/the-czinger-21c-might-be-the-wildest-car-we-drive-all-year/
2•Gaishan•55m ago•0 comments

Earliest octopi were giant top predators in Cretaceous oceans

https://www.science.org/doi/10.1126/science.aea6285
3•Gaishan•58m ago•1 comments

The UK Government Wants to Destroy Free Speech on YouTube [video]

https://www.youtube.com/watch?v=EKIKveClo6c
2•Bender•58m ago•0 comments

Show HN: Mandelbrot set renderer written in pure [BSD] Makefiles

https://github.com/b-aaz/bmake-extravaganza
2•b-aaz•1h ago•0 comments

Meta Tests Pocket, an Experimental App for AI-Generated Mini-Games

https://www.ghacks.net/2026/07/05/meta-tests-pocket-an-experimental-app-for-ai-generated-mini-gam...
1•LorenDB•1h ago•0 comments

Agentic Autonomy Levels

https://addyo.substack.com/p/agentic-autonomy-levels
1•backlit4034•1h ago•0 comments