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.

Domain-Driven Design matters more when AI writes your code

https://threedots.tech/post/ddd-and-ai-coding/
1•BerislavLopac•31s ago•0 comments

The LLM rewrote the email after I approved it

https://www.crusbro.com/en/product-architecture.html
1•crusbro•1m ago•0 comments

Updating a side project with AI in 275 commits

https://benhoyt.com/writings/updating-gifty-with-ai/
1•ingve•2m ago•0 comments

Show HN: Plainspeak, make AI agents write like a human

https://sufiyan.cc/plainspeak
1•codersufiyan•3m ago•0 comments

Show HN: I built a TV like website for Indian nostalgic shows

https://www.dabbatv.xyz/
1•codepeddler•8m ago•0 comments

From Magna Carta to microchip – The measurement of time (1981)

https://www.rigb.org/explore-science/explore/video/magna-carta-microchip-measurement-time-1981
1•pillars•9m ago•0 comments

The Download: polycrisis support networks and a hydrogen gold rush

https://www.technologyreview.com/2026/08/20/1142579/the-download-polycrisis-support-networks-unde...
1•joozio•10m ago•0 comments

We Rebuilt the Linux MicroVM Stack on Apple Silicon

https://encore.dev/blog/firecracker-apple-silicon
2•signa11•12m ago•0 comments

Show HN: Real Valued Chess – chess on a continuous board

https://martinylu.com/real-chess
1•martinAsdf•12m ago•1 comments

Video to Prompt

https://www.videotoprompt.dev
1•daisyjin•15m ago•0 comments

RL Policy Churn

https://twitter.com/id_aa_carmack/status/2090514515129520516
1•tosh•19m ago•0 comments

Young Americans increasingly fear AI will take their jobs

https://www.pewresearch.org/short-reads/2026/08/18/young-adults-in-the-us-are-increasingly-wary-o...
3•01-_-•22m ago•0 comments

Mathematically Perfect solar array in Factorio [video]

https://www.youtube.com/watch?v=CDzJ1_p3uVg
1•operatorius•22m ago•0 comments

Pretraining a Mini Kimi K3

https://books.vizuara.ai/book/pretraining-a-mini-k3
1•ngaut•27m ago•0 comments

Trump Threatens 'Tremendous Consequences' for Countries Doing Business with Iran

https://canews24.online/?p=66
2•Edymilson•30m ago•1 comments

Are PDFs Getting Bigger? Analyzing PDF File Sizes from 2006–2025

https://pdf4wcag.com/blog-news/analysis-pdf-file-size
1•smartdev01•32m ago•5 comments

Social Listening for Agents

https://sociallisteningapi.com/
1•shash7•42m ago•1 comments

Teen drops lawsuit against Meta, Google, and Snap ahead of trial

https://www.msn.com/en-us/news/world/us-teen-drops-lawsuit-against-meta-google-and-snap-ahead-of-...
1•anigbrowl•44m ago•0 comments

Show HN: Argentic – An L402 Lightning toll booth for AI scraping agents

https://Argentic.network
3•Ag0146•47m ago•0 comments

AI CMS with WebMCP tools for agents in admin panel

https://aliothpress.com/cms-for-ai-agents-webmcp-built-in
1•nikariguel•51m ago•0 comments

The /Wayfinder Skill: Navigating the "Fog of War" of Planning

https://www.latent.space/p/wayfinder-skill
1•swyx•52m ago•0 comments

First giant tuna caught off Yorkshire since 1960s

https://www.bbc.com/news/articles/c9w04005veqo
2•teleforce•55m ago•0 comments

Robot Comment Classifier

https://entropicthoughts.com/ai-comment-classifier
2•kqr•55m ago•0 comments

Repository Is Your Swarm

https://nicktrevino.com/your-repository-is-your-swarm.html
2•Hyperlisk•1h ago•0 comments

Open Sourcing the YC Application

https://metorial.com/blog/open-sourcing-the-yc-application
2•LYFMail•1h ago•0 comments

Hilbert Curve

https://en.wikipedia.org/wiki/Hilbert_curve
6•pykello•1h ago•0 comments

Why Do We Feed Wildlife?

https://thetyee.ca/News/2026/08/20/Why-Do-We-Feed-Wildlife/
3•wertyk•1h ago•0 comments

Schooling Has a Meaning Crisis. Paradoxically, AI Can Help

https://blog.comini.in/p/schooling-has-a-meaning-crisis-paradoxically
1•vismit2000•1h ago•0 comments

GitHub Actions vs. GitLab Pipeline

https://medium.com/playground-tech/github-actions-vs-gitlab-pipeline-2368e9a27f68
1•caulagi•1h ago•0 comments

AWS Bedrock AgentCore enforces user context to prevent hijacked AI agents

https://techupdate24.com/aws-bedrock-agentcore-hijacked-ai-security/
2•sysadmin_diarie•1h ago•0 comments