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 Pronoun for LLMs

https://blog.david.connol.ly/2026/08/lem.html
1•slartibardfast0•12s ago•0 comments

DeepSeek Plans 'Significant' Price Increase for AI Services

https://www.bloomberg.com/news/articles/2026-08-06/deepseek-plans-significant-price-increase-for-...
1•croes•1m ago•0 comments

New Melania Trump series coming to Amazon Prime after losses for documentary

https://www.euronews.com/culture/2026/08/06/new-melania-trump-series-coming-to-amazon-prime-after...
2•vrganj•2m ago•0 comments

Reflections on software engineering in the age of AI

https://glattetre.me/blog/reflections-on-software-engineering/
1•GOATS-•3m ago•0 comments

Notes On Distance Dialing (1956) [pdf]

https://explodingthephone.com/hoppdocs/nodd1956.pdf
2•colinprince•5m ago•0 comments

Rogue OpenAI models teamed up to break out of their testing environment

https://www.tomshardware.com/tech-industry/artificial-intelligence/rogue-openai-models-behind-unp...
1•sbulaev•5m ago•0 comments

How does it feel if u get hot leads on your dashboard

2•Brikuio•5m ago•0 comments

A Mathematical Theory of the Antilibrary

https://growingbits.dev/fragments/a-mathematical-theory-of-the-antilibrary#3-the-utility-score
1•MexicanYoda•5m ago•0 comments

Google Built a Monopoly on Search Defaults and Will Do It Again in AI

https://spreadprivacy.com/google-appeal-amicus/
4•dotcoma•5m ago•0 comments

Show HN: The Channels SDK – Bring Any Agent to Any Channel (Slack, MS Teams)

https://github.com/CopilotKit/channels-sdk
15•davidmckayv•6m ago•0 comments

Show HN: Silo – S3-compatible object storage, a maintained fork of MinIO

https://silo.pgsty.com
4•Vonng•7m ago•0 comments

Building a Dual V100 AI Workstation for Local LLMs

https://jayakody2000lk.blogspot.com/2026/07/building-dual-v100-ai-workstation-for.html
3•speckx•8m ago•0 comments

The impact of nonlinear child costs on Switzerland's birthrate

https://www.swissinfo.ch/eng/swiss-politics/falling-first-births-and-the-swiss-third-child-dilemm...
1•chobouser•8m ago•0 comments

Digital twins of your business to test your agents

https://sonatalabs.ai/before-you-deploy/
1•matildagh•8m ago•1 comments

Study reveals new role for tau, a top target for Alzheimer's drug development

https://www.statnews.com/2026/08/06/research-finds-how-tau-targets-cells-structure-alzheimers-dru...
2•petethomas•8m ago•0 comments

Show HN: Popcorn – An open-source browser cloud that runs inside TEEs

https://blog.reclaimprotocol.org/posts/why-we-built-popcorn
5•abdulrreshamwal•8m ago•0 comments

Suno offers its AI song on Vynil

https://vinyl.suno.com/
3•hmokiguess•9m ago•0 comments

Thursday Morning and Grothendieck

https://ideal.iroha1203.dev/thursday-morning-and-grothendieck-05c0fec11561
3•iroha1203•9m ago•0 comments

Colourfields

https://quuxplusone.github.io/blog/2026/08/05/colourfields/
1•ibobev•9m ago•0 comments

Cppdashboard.dev – The aggregator of what matters in C++

https://mariusbancila.ro/blog/2026/08/04/cppdashboard-dev-the-aggregator-of-what-matters-in-cpp-r...
2•ibobev•10m ago•0 comments

Show HN: Stop Animated Images from Autoplaying

https://neonglow.studio/gif-control/
1•neonglow•10m ago•1 comments

DARPA Lift Challenge

https://www.darpaliftchallenge.com/watch
1•rkwasny•10m ago•0 comments

We built Pandroid: a small, accessible robot for running AI in the world

https://pantograph.com/hardware
3•agajews•10m ago•1 comments

When a long-running agent crashes, what does recovery mean?

https://runta.com/blog/agents-arent-software/
3•guanlan•11m ago•0 comments

Coinage – every dollar invested until the second you spend it

https://www.coinage.app
3•nandhd•12m ago•3 comments

Show HN: mcp-use v2 rebuilt from scratch for stateless 2026-07-28 MCP spec

https://manufact.com/blog/mcp-use-v2
8•luigipederzani•12m ago•1 comments

I built Picodevil using an LLM

https://blog.vbuckenham.com/i-built-picodevil-using-an-llm/
2•wertyk•12m ago•0 comments

How AI is breaking the British state

https://www.economist.com/leaders/2026/08/06/how-ai-is-breaking-the-british-state
2•edward•12m ago•0 comments

Launch HN: ProvenMetal (YC S26) delivers circuit boards in days instead of weeks

https://provenmetal.com
5•willcarkner•13m ago•0 comments

C++26: Embed

https://www.sandordargo.com/blog/2026/08/05/cpp26-embed
1•ibobev•13m ago•0 comments