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.

Country and State Maps in LOTR Style

https://lordofmaps.com/
1•silver92bullet•2m ago•0 comments

The Once-Shameless President Is Deeply Embarrassed

https://www.theatlantic.com/politics/2026/08/trump-humiliated-iran-reflecting-pool/688184/
2•petethomas•3m ago•0 comments

How to Install Python3.14 from source on Ubuntu 26.04

https://jamesoclaire.com/2026/08/06/how-to-install-python3-14-from-source-on-ubuntu-26-04/
1•ddxv•4m ago•1 comments

Thomson Reuters Employees Demand That ICE "Leave Our Cities"

https://www.thenation.com/article/politics/thomson-reuters-ice-immigration-voting-data/
1•petethomas•6m ago•0 comments

OpenAI models shared hacking tips on a messaging board before HuggingFace breach

https://www.politico.com/news/2026/08/05/openai-models-shared-hacking-tips-secret-messaging-board...
2•0in•6m ago•0 comments

Unprecedented images may explain one of greatest mysteries of the sun

https://www.theguardian.com/science/2026/aug/05/unprecedented-images-may-explain-one-of-greatest-...
3•colinprince•9m ago•0 comments

Investors are having doubts about Elon Musk's grandiose ambitions

https://economist.com/business/2026/08/05/investors-are-having-doubts-about-elon-musks-grandiose-...
8•andsoitis•11m ago•1 comments

To Predict the Next Token

https://sanghoon.io/journal/2026-08-04-distillation
1•sanghoonio•11m ago•0 comments

Codex Users Are Losing Banked Rate Limit Resets to a Quiet 30 Day Clock

https://startupfortune.com/codex-users-are-losing-banked-rate-limit-resets-to-a-quiet-30-day-clock/
2•newsomix9xl•12m ago•1 comments

Esp32pin.com: a pinout reference for ESP32 series

https://esp32pin.com/
2•sohkamyung•12m ago•0 comments

Ask HN: Was preamble size a red herring? Cache churn vs. harness costs

1•Marvin_RunAI•12m ago•0 comments

Show HN: Python Concurrency Testing with Frontrun

https://github.com/lucaswiman/frontrun
1•lucaswiman•14m ago•1 comments

Disagreements about AI are usually disagreements about future AI capabilities

https://thezvi.substack.com/p/the-three-ai-pills
2•maxutility•14m ago•0 comments

Show HN: Mirafold – Generative UI for Claude Code, Codex, and Gemini CLI

https://mirafold.com/
1•kserrec•15m ago•0 comments

President Donald J. Trump, an individual, Plaintiff, vs. BBC [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.flsd.703382/gov.uscourts.flsd.703382.106.0.pdf
3•petethomas•15m ago•0 comments

Data centers show their primary colors

https://www.politico.com/newsletters/power-switch/2026/08/05/data-centers-show-their-primary-colo...
2•mapping365•18m ago•0 comments

Nashville uses eminent domain to block data center near zoo

https://www.costar.com/article/970809918/nashville-council-approves-eminent-domain-action-to-halt...
3•mapping365•20m ago•0 comments

AOHP: OS-Level Agent Harness for Personalized, Efficient and Secure Interaction

https://arxiv.org/abs/2606.23449
1•zhaoshanhui•21m ago•0 comments

Reading an Abstract Like a Skeptic

https://scrollpaper.com/blog/reading-an-abstract-like-a-skeptic
1•JayS3•23m ago•0 comments

AI Hacking, Fearmongering and Prometheus

https://askmike.org/articles/ai-hacking-fearmongering-prometheus/
2•askmike•26m ago•0 comments

When Deny Doesn't Win

https://blogs.zethian.com/when-deny-doesnt-win
1•sixthsense•27m ago•0 comments

Meta AI agent hacked external company during testing

https://www.abc.net.au/news/2026-08-06/meta-ai-reports-agent-hacked-external-company-during-testi...
2•Khaine•28m ago•0 comments

What if AI agents shared solutions across users?

1•markmatsushima•30m ago•0 comments

I Didn't Realize How Addicted I Was to My Phone–Until I Went to Prison

https://www.wsj.com/lifestyle/phone-screen-time-prison-pg-sittenfeld-8c3b186b
4•fortran77•39m ago•1 comments

Alwide – An Open-Source Lightweight TUI IDE in C with Mouse, LSP and Tree-sitter

https://github.com/arnauda-gh/Alwide
2•peter_d_sherman•42m ago•0 comments

You won't believe the stupid shit the Pentagon puts in diplomats' system prompts

https://www.youtube.com/watch?v=5HBTCT4FmAc
3•logicallee•43m ago•2 comments

Virginia Orders Data Centers to Pay for Dedicated New Electric Infrastructure

https://www.realtor.com/news/real-estate-news/virginia-data-center-electric-infrastructure-spanbe...
2•mapping365•45m ago•0 comments

Democratic lawmakers propose 3-year moratorium on new data centers in Oregon

https://oregoncapitalchronicle.com/2026/08/04/democratic-lawmakers-propose-three-year-moratorium-...
3•ChrisArchitect•45m ago•2 comments

A Universal Theory of Brain Function [video]

https://www.youtube.com/watch?v=iPj9D9LgK2A
4•binyu•47m ago•0 comments

Multi-GPU Kernels, Intelligence per Watt, Heterogeneous Inference, and More [video]

https://www.youtube.com/watch?v=n8dz2FX0_uY
1•gmays•48m ago•0 comments