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.

Did a prize-winning novelist steal a woman's life story?

https://www.theguardian.com/books/2026/feb/17/did-a-prize-winning-novelist-steal-a-woman-life-sto...
1•randycupertino•2m ago•0 comments

Ask HN: Is the original iPhone SE just a brick now?

1•stared•3m ago•0 comments

Novel bond coat material enables thermal barrier coatings to operate at 1,200°C

https://techxplore.com/news/2026-02-bond-coat-material-enables-thermal.html
2•PaulHoule•6m ago•0 comments

Spain has blocked access to freedom.gov

https://twitter.com/Pirat_Nation/status/2025643188321714642
3•akyuu•8m ago•0 comments

Bending Time: Retracing Timezones Off Lines

https://reconnaissance.robincoenen.de/bending-time/
1•leonat•8m ago•0 comments

Intermittent errors in skills-related functionality

https://status.claude.com/incidents/5pr1d63fdjml
1•taoh•8m ago•0 comments

Distribution Is the New Engineering

https://sagivo.com/blog/distribution-is-the-new-engineering
1•sagivo•10m ago•0 comments

Training AI Without the Data You Don't Have

https://docs.eventsourcingdb.io/blog/2026/02/23/training-ai-without-the-data-you-dont-have/
1•goloroden•11m ago•0 comments

Show HN: Skill Kit – Local-first analytics for AI agent skills

https://github.com/crafter-station/skill-kit
1•Hunter17•14m ago•1 comments

Pentagi: Autonomous AI Agents for complex penetration testing tasks

https://github.com/vxcontrol/pentagi
1•nateb2022•14m ago•0 comments

Dear researchers: Is AI all you've got?

https://austinhenley.com/blog/dearresearchers.html
1•nomemory•15m ago•0 comments

Ask HN: Share your workflow with AI developer tools

1•fsto•15m ago•0 comments

New algorithm is designed to obey the laws of physics

https://actu.epfl.ch/news/new-ai-algorithm-is-designed-to-obey-the-laws-of-p/
1•geox•16m ago•0 comments

Japanese Death Poems by Haiku Poets

https://www.secretorum.life/p/japanese-death-poems-part-3
1•NaOH•17m ago•0 comments

Minnesota court justice quietly negotiated deal over ICE enforcement in courts

https://www.startribune.com/white-house-minnesota-supreme-court-chief-justice-quietly-negotiated-...
2•hn_acker•20m ago•1 comments

Bending the CLOS Mop for Java-Style Single Dispatch

https://atgreen.github.io/repl-yell/posts/clos-mop-dispatch/
1•atgreen•21m ago•1 comments

Play CSS-defined animations with JavaScript – KeyframeKit

https://keyframekit.berryscript.com/
1•barhatsor•23m ago•0 comments

The Mythology of Conscious AI

https://www.noemamag.com/the-mythology-of-conscious-ai/
1•MindGods•31m ago•0 comments

The Tears of Donald Knuth

https://cacm.acm.org/opinion/the-tears-of-donald-knuth/
2•todsacerdoti•31m ago•0 comments

ChatGPT Sees the World

https://twitter.com/elonmusk/status/2025265181266153606
1•anonymousiam•32m ago•1 comments

Show HN: Aeterna – Self-hosted dead man's switch

https://github.com/alpyxn/aeterna
2•alpyxn•32m ago•0 comments

'Peanut butter' pay raises could cost companies their top performers

https://www.cnbc.com/2026/02/22/peanut-butter-pay-raises-could-cost-companies-their-top-performer...
4•cebert•32m ago•0 comments

Show HN: GitHub Issues in the Terminal

https://github.com/JayanAXHF/gitv
2•frxgfa•33m ago•0 comments

Robots, Grannies and Meaning-Adjusted Work Days

https://twitter.com/notevenwrongg/status/2025656572458746156
2•georgestrakhov•36m ago•0 comments

The Geometry of Tostitos Scoops

https://chip-tech-rob.zocomputer.io/
3•kousun12•36m ago•1 comments

American Oversight Sues Trump Admin for Directing Agency Staff to Shred and Burn

https://americanoversight.org/american-oversight-sues-trump-administration-for-directing-agency-s...
2•stopbulying•37m ago•1 comments

Intentional Overuse Is an AI Coding Learning Strategy

https://www.jedi.be/blog/2026/intentional-overuse-is-an-ai-coding-learning-strategy/
2•henrik_w•37m ago•0 comments

Show HN: Try any terrible idea, ChatGPT still leads with praise

https://chatgpt.com/share/699b5c8e-59bc-800c-84f3-f066d2b5c669
3•logicallee•38m ago•1 comments

Quick takes on Feb 20 Cloudflare outage

https://surfingcomplexity.blog/2026/02/21/quick-takes-on-feb-20-cloudflare-outage/
2•emschwartz•43m ago•0 comments

Interpassivity

https://en.wikipedia.org/wiki/Interpassivity
2•maayank•44m ago•0 comments