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.

Top 10 Prompts for Your Monitoring Tool

https://blog.appsignal.com/2026/06/08/top-10-prompts-for-your-monitoring-tool.html
1•andreigaspar•2m ago•0 comments

It's officially the end of an era for Adobe

https://www.makeuseof.com/end-of-an-era-for-adobe-creative-software/
1•Stratoscope•3m ago•1 comments

How to Set Up a BIMI Record

https://dmarcguard.io/blog/bimi-record-setup/
1•meysamazad•4m ago•1 comments

ADHD and Masking

https://gomakethings.com/guides/adhd-masking/
1•meysamazad•4m ago•0 comments

How Polymarket plans to try to win back trust after 4 years in exile

https://www.fastcompany.com/91570591/how-polymarket-plans-win-back-americas-trust-after-4-years-e...
1•1vuio0pswjnm7•4m ago•0 comments

Additional Checkbox-Types in Obsidian

https://zerokspot.com/weblog/2026/07/05/additional-checkbox-styles-in-obsidian/
1•meysamazad•5m ago•0 comments

Show HN: Free plugin that finds where your code overpays for LLM APIs

https://tokendiet.dev/
1•eMoka•5m ago•0 comments

Node.js platform/arch possible values

https://jcbhmr.com/2025/12/19/node-platform-arch-values/
2•jcbhmr•6m ago•0 comments

EU court hands Brussels win over Apple on Big Tech rules

https://www.politico.eu/article/eu-court-knocks-down-apple-challenge-big-tech-rules/
1•1vuio0pswjnm7•6m ago•0 comments

Kentik Acquired by Infoblox

https://www.kentik.com/blog/kentik-is-joining-infoblox/
1•i314159•7m ago•0 comments

Vasily Grossman: The Unlikely Journalist Who Looked into the Heart of War

https://www.newyorker.com/books/page-turner/the-unlikely-journalist-who-looked-into-the-heart-of-war
1•mitchbob•7m ago•1 comments

Show HN: FPGA-SIM – interactive virtual boards to help teach Verilog

https://github.com/TheHarmonicRealm/fpga-sim
2•theharmonic•7m ago•1 comments

SWE-1.7 Reach Near GPT 5.5 and Opus Intelligence

https://cognition.com/blog/swe-1-7
3•mekpro•7m ago•0 comments

The most, and least, liveable cities in 2026

https://www.economist.com/graphic-detail/2026/07/06/the-worlds-most-and-least-liveable-cities-in-...
1•donbox•8m ago•0 comments

GitHub Is Down (Again)

https://us.githubstatus.com/posts/dashboard
3•lacoolj•8m ago•0 comments

The Price of Palantir's Politics

https://www.ft.com/content/21038b20-646e-4773-a473-110c2d62ab15
2•JumpCrisscross•9m ago•0 comments

Show HN: Open-source web monitoring software

https://webdog.ai/
2•ICodeSometimes•9m ago•0 comments

AI Language Tutor That Answers a Phone Call

https://github.com/team-telnyx/telnyx-code-examples/tree/main/ai-language-learning-phone-tutor-py...
1•harpreetseehra•10m ago•0 comments

I Need a Job, Anything

2•tolani_somoye•10m ago•1 comments

Biohacker seeking immortality afflicted with incurable 'stomach eating' disease

https://www.lifesitenews.com/news/biohacker-seeking-immortality-afflicted-with-incurable-stomach-...
2•ferryth•11m ago•0 comments

Show HN: Respect the Oracle – An agent skill that stops agents from overfitting

https://github.com/chris-short/respect-the-oracle
1•oaf357•12m ago•0 comments

Show HN: envapt, typed env config for decoupled TS codebases (Node to edge)

https://github.com/materwelonDhruv/envapt
1•materwelon•12m ago•0 comments

The male wellness guide to peptides

https://www.ft.com/content/4417cf18-d8cd-4ccc-9745-e728e8d69348
1•bookofjoe•13m ago•1 comments

Ubiquiti warns of new max severity UniFi OS vulnerability

https://www.bleepingcomputer.com/news/security/ubiquiti-warns-of-new-max-severity-unifi-os-vulner...
2•Brajeshwar•13m ago•0 comments

Fable 5 found waldo and circled him under 3 minutes

https://old.reddit.com/r/ClaudeCode/comments/1uqedx3/fable_5_found_waldo_circled_him_under_3_minu...
1•echelon•14m ago•0 comments

Show HN: Price simulation game: What is the price impact over your sales

https://www.fastcompete.com/price-wars
1•adibalcan•15m ago•1 comments

Angel Investor Simulator

https://guacosoft.com/angel/investorSim.html
2•babuskov•15m ago•0 comments

The Conversation Isn't Real

https://lonriesberg.com/posts/the-conversation-isnt-real/
2•lriesberg•16m ago•0 comments

Postgress Repo 3D Visualization

https://www.reddit.com/r/PrincipalAi/s/qt6tYiqeda
1•fernando-ram•16m ago•0 comments

Show HN: AI math chat that knows your notes, connecting you to human experts

https://www.prooftree.ai
1•lemma1729•16m ago•0 comments