frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•9mo 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•9mo 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•9mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•9mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Corporate America's Growing Quest for Tariff Refunds

https://www.nytimes.com/2026/02/24/business/dealbook/fex-tariff-refund.html
1•JumpCrisscross•46s ago•0 comments

1Password pricing increasing 20% in March

2•otterley•1m ago•0 comments

Should Biology Put Complexity First?

https://www.sciencedirect.com/science/article/pii/S2405471225000304
1•onychomys•1m ago•0 comments

SpacetimeDB – Transactions. Zero Bottlenecks

https://spacetimedb.com/home
1•novateg•1m ago•0 comments

Why I Choose Svelte

https://mainmatter.com/blog/2026/02/24/why-choose-svelte/
1•thunderbong•1m ago•0 comments

Why Bluey Doesn't Sound Like a Cartoon with Bluey's Sound Designer [video]

https://www.youtube.com/watch?v=2z6hd2dCv_w
1•abetusk•2m ago•0 comments

Will the U.S. confirm that aliens exist before 2027? (27%)

https://kalshi.com/markets/kxaliens/aliens/kxaliens-27
1•FergusArgyll•3m ago•0 comments

Caddy Server Release Process

https://github.com/caddyserver/caddy/blob/master/.github/workflows/release.yml
1•SEJeff•3m ago•1 comments

An Interactive Intro to Quadtrees

https://growingswe.com/blog/quadtrees
1•evakhoury•3m ago•0 comments

HuggingFace Agent Skills

https://github.com/huggingface/skills
1•armcat•4m ago•0 comments

Show HN: Making missed workouts cost money with Android TEE and smart contracts

https://pedrooaugusto.github.io/blog/posts/making-missed-workouts-cost-money-with-smart-contracts/
1•the42thdoctor•5m ago•1 comments

Maine lawmakers look to old school buildings as potential for new housing

https://mainemorningstar.com/2026/02/17/lawmakers-look-to-old-school-buildings-as-potential-for-n...
1•toomuchtodo•6m ago•1 comments

From Zero Code to AI-Generated Assets in Just 4 Days

https://blog.codeminer42.com/from-zero-code-to-ai-generated-assets-in-just-4-days/
1•edigleysson•6m ago•0 comments

Scientists crack the case of "screeching" Scotch tape

https://arstechnica.com/science/2026/02/heres-why-scotch-tape-screeches-when-its-peeled/
1•colinprince•6m ago•0 comments

Einstein AI Education Companion

https://companion.ai/einstein
1•colinprince•7m ago•0 comments

Show HN: Toolrelay.io – Connect Your SaaS to AI

https://toolrelay.io
1•sahair•8m ago•0 comments

Ovelle Bio Wants to Give Women More Eggs

https://www.corememory.com/p/this-startup-wants-to-give-women
1•Metacelsus•9m ago•0 comments

AI Lost Out to Traditional Models in Forecasting NYC's Blizzard

https://www.bloomberg.com/news/articles/2026-02-24/ai-predictions-were-little-help-for-massive-ny...
2•toomuchtodo•10m ago•1 comments

AgentGate – Open-source security firewall for AI agents (ALLOW/DENY/APPROVE)

https://agent-gate-rho.vercel.app/
1•PEGHIN•11m ago•1 comments

Autonomous AI intelligence testing

https://www.jou-labs.com/proof
1•jodytornado•11m ago•1 comments

Meditation and Mindfulness Have a Dark Side We Rarely Talk About

https://www.sciencealert.com/meditation-and-mindfulness-have-a-dark-side-we-rarely-talk-about
2•mikhael•11m ago•0 comments

Performance Managing to the Room or "How to Stop Sucking at This"

https://jamesjboyer.substack.com/p/performance-managing-to-the-room
1•mooreds•12m ago•0 comments

Why Your LLM NPCs Sound the Same (and How to Fix It)

https://phasespace.co/blog/why-your-llm-npcs-sound-the-same/
1•paulkyle•12m ago•0 comments

I built an AI browser with prompt-injection defense at 16 on an i5 with 8GB RAM

2•latestinssan•13m ago•0 comments

Open Letter to Google on Mandatory Developer Registration for App Distribution

https://keepandroidopen.org/open-letter/
8•kaplun•13m ago•0 comments

Anthropic could be exaggerating about the distillation efforts of Chinese labs [video]

https://www.youtube.com/watch?v=_k22WAEAfpE
2•logicprog•14m ago•0 comments

Qwen 3.5 Medium Model Series

https://twitter.com/Alibaba_Qwen/status/2026339351530188939
1•tosh•14m ago•0 comments

I'm a financial analyst who couldn't manage his own money

https://www.indiehackers.com/post/im-a-financial-analyst-who-couldn-t-manage-his-own-money-so-i-b...
1•wwxoxo•14m ago•0 comments

Calcium-Ion Batteries from Redox-Active Covalent Organic Framework Electrolytes

https://advanced.onlinelibrary.wiley.com/doi/10.1002/advs.202512328
1•PaulHoule•14m ago•0 comments

AI boosted US economy by 'basically zero' in 2025, says Goldman chief economist

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-boosted-us-economy-by-basic...
2•elorant•15m ago•0 comments