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.

Computers Cannot Make Decisions

https://wiki.cateat.fish/art:computers_cannot_make_decisions
1•heavensteeth•1m ago•0 comments

Ubuntu now has official desktop images for RISC-V

https://www.omgubuntu.co.uk/2026/10/ubuntu-desktop-riscv-iso
1•fork-bomber•6m ago•0 comments

ZJIT is now as fast as YJIT

https://railsatscale.com/2026-10-09-zjit-is-now-as-fast-as-yjit/
1•riffraff•7m ago•0 comments

When I type "hi" into Claude Code, what happens?

https://the-agent-stack.com/
1•theahura•8m ago•0 comments

Maritime: Persistent Cloud Agents

https://maritime.sh
1•handfuloflight•10m ago•0 comments

Show HN: Crosstune – Open any music link in your favorite app

https://crosstune.4st.li/
1•astrolince•15m ago•0 comments

If AI keeps evolving,would you worry about your next generation's survival

1•hanstyle•15m ago•0 comments

The U.S. Nuclear Plant Fleet Is Leaning into AI

https://spectrum.ieee.org/ai-assistants-nuclear-power-plant
1•geox•17m ago•0 comments

AI Writing Labels – Sloppate liberius, sloppate recte

https://aialabels.com/
1•lateharvest•18m ago•1 comments

AI companies plot "day after" scenarios for public revolt

https://www.axios.com/2026/10/09/ai-companies-day-after-major-attack
1•thm•19m ago•1 comments

Universal Paperclips

https://www.decisionproblem.com/paperclips/
1•xeonmc•19m ago•0 comments

The 'American Dream' Now Costs More Than $5.3M

https://www.investopedia.com/the-2026-american-dream-cost-rises-4-percent-12154346
2•gscott•26m ago•0 comments

Food processing influences metabolism and brain activity

https://news.vt.edu/articles/2026/10/research_fralinbiomed_upfhutelin.html
1•gmays•26m ago•0 comments

Need Unbiased and Real Assessment

1•donovanfromla•28m ago•1 comments

Show HN: Rutter – shared decision memory across AI tools

https://ruttermemory.com/
1•shinytoyrobots•30m ago•0 comments

Kefermarkt Chruch – Gaussian Splatting

https://www.youtube.com/watch?v=nC6Q2wN-vfM
1•cavoirom•30m ago•0 comments

Show HN: Iimos – an AI app that ships as one chat box and rewrites itself

https://github.com/yanglongyun/iimos
1•woodchange•31m ago•0 comments

Explore the New Shenzhen Natural History Museum

https://www.wallpaper.com/architecture/shenzhen-natural-history-museum-3xn-china
1•inshard•39m ago•0 comments

Greece Is a Near Eastern Country: Foreword to the New Byzantines

https://nntaleb.medium.com/foreword-to-sean-mathews-the-new-byzantines-541ba9cebfe3
1•endorphine•42m ago•0 comments

Show HN: Starguessr – GeoGuessr for the Night Sky

https://starguessr.sidequests.space/
1•Sketchy_•45m ago•0 comments

Show HN: MCP to measure human arm in Blender

https://github.com/hpdkhoa/poselab-mcp
1•khoahpd•53m ago•0 comments

If AI is conscient, then we are making slaves

https://www.groundlevel-ai.com/p/anthropic-ai-consciousness-new-york-times-rabbi
12•mathieu_aithos•57m ago•14 comments

What do MTEB scores mean, and how should you choose an embedding model?

https://thottingal.in/blog/2026/10/09/mteb-scores/
2•sthottingal•1h ago•0 comments

Zombie AI Video Generator – a zombie love story from two photos

https://zombieaivideo.org/
2•chaojie26•1h ago•0 comments

Lobbying

https://geohot.github.io//blog/jekyll/update/2026/10/10/lobbying.html
144•smilelamp•1h ago•46 comments

Software's centaur age may last decades

https://www.seangoedecke.com/softwares-centaur-age-may-last-decades/
7•srijan4•1h ago•2 comments

Oracle, Broadcom and SpaceX Seek Blockbuster Debt Deals to Pay for AI Chips

https://www.wsj.com/tech/oracle-broadcom-and-spacex-seek-blockbuster-debt-deals-to-pay-for-ai-chi...
2•gmays•1h ago•0 comments

Show HN: A simple to-do app for iPhone, Mac, and your agent

https://ilia.page/writing/introducing-nagare
2•shmilia•1h ago•1 comments

Webcmd (by AgentR) is open-source Released on October 8/9, 2026

https://markets.businessinsider.com/news/stocks/agentr-launches-webcmd-open-source-browser-infras...
2•noobplus•1h ago•0 comments

Most anxious generation ever? WHO data says 470M people have anxiety

https://www.hindustantimes.com/lifestyle/health/most-anxious-generation-ever-who-data-says-470-mi...
2•rustoo•1h ago•0 comments