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.

Back to metal: moving away from cloud

https://backtometal.oneuptime.com
1•latencyharbor•36s ago•0 comments

Bad evals, my own: five exercises from two LLM judges

https://digline.dev/blog/bad-evals-my-own/
1•alexpran•2m ago•0 comments

Mental Models for LLMs

https://felx.me/posts/mental-models-for-llms/
1•manx•3m ago•0 comments

Design Drought

https://lmnt.me/blog/design-drought.html
1•robenkleene•3m ago•0 comments

Largest known Roman mosaic, beneath Baths of Trajan, opens to the public

https://www.theartnewspaper.com/2026/09/14/largest-roman-mosaic-opens-to-the-public
1•bookofjoe•4m ago•0 comments

How to Write an Effective Software Design Document

https://refactoringenglish.com/excerpts/write-an-effective-design-doc/
2•fagnerbrack•4m ago•0 comments

US Energy Data

https://usenergydata.org/
1•ZeroGravitas•4m ago•0 comments

We gave a coding agent the lethal trifecta: data, internet, a public repo

https://archestra.ai/blog/fixing-small-bugs-from-a-slack-thread
4•joeyorlando•5m ago•1 comments

Show HN: I built Otis, a minimal AI agent that runs local models out of the box

https://triangllabs.ai/otis
1•petrenk0n•6m ago•0 comments

Emulating Oxide: How Faux Can You Go?

https://oxide-and-friends.transistor.fm/episodes/emulating-oxide-how-faux-can-you-go
1•tosh•8m ago•0 comments

Fake GitHub Repositories Spreading Malware via PowerShell

https://jdstaerk.substack.com/p/greetings-from-the-rabbids-team
1•DDerTyp•8m ago•0 comments

RISC-V emulator in pure Nix

https://github.com/eisbaw/nix-riscv
1•eisbaw•9m ago•0 comments

Show HN: Training a sudoku solver from scratch on Jetson Nano

https://github.com/romainzimmer/discrete-reasoning
1•romz•10m ago•0 comments

Portfolio in Pokedex(First Post)

1•shivammahajanma•18m ago•0 comments

React instructors – where do your students get stuck every term?

https://blog.crossui.com/2026/09/every-react-instructor-has-drawn-this-box-diagram
1•linb•18m ago•0 comments

Oracle tries to appease Stargate data center opponents with renewables push

https://arstechnica.com/gadgets/2026/09/oracle-promises-2-gw-of-renewables-to-match-stargate-data...
1•rbanffy•19m ago•0 comments

Why good collaboration can lead us in the wrong direction

https://www.thesignalist.io/s/the-convergence-trap/
2•kodesko•19m ago•0 comments

Temporal Raises $550M at a $12.55B Valuation

https://temporal.io/news/temporal-raises-550m-at-a-12-55b-valuation
2•arusahni•20m ago•0 comments

The Most Advanced Storage System [video]

https://www.youtube.com/watch?v=QstEkNJhJKo
1•ddechamb•20m ago•1 comments

Zizka AI Called This Already. Now Dario, Musk, and Altman Agree

https://medium.com/@MirArshadTalpur/zizka-ai-called-this-already-now-dario-musk-and-altman-agree-...
1•Arshad-Talpur•23m ago•2 comments

What a time to be alive – rouge AI agents attack RubyGems.org

https://tenderlovemaking.com/2026/09/11/what-a-time-to-be-alive/
12•gregnavis•24m ago•7 comments

Show HN: I built an infinite canvas for game masters

https://overseer.studio
1•nullfish•24m ago•0 comments

Hospitals: The Queue Is Not Always Where the Problem Is

https://gadallon.substack.com/p/hospitals-the-queue-is-not-always
1•JumpCrisscross•24m ago•0 comments

Texas judge rules TikTok misled users on child safety feature

https://www.reuters.com/legal/litigation/texas-judge-rules-tiktok-misled-users-child-safety-featu...
4•1vuio0pswjnm7•27m ago•0 comments

A letter to the AI labs shouldering the great burden of humanity's survival

https://blog.j11y.io/2026-09-14_a-letter-to-the-ai-labs/
2•ilreb•28m ago•0 comments

Codito.io increases the beta version limits from 50k/250k to 1M/10M codes

https://codito.io/blog/post/increasing-beta-version-limits
1•tomge•29m ago•0 comments

SDR–; open source SDR with a patchable signal graph, Rust DSP, web UI

https://github.com/Newspicel/sdrminusminus
2•newspicel•29m ago•0 comments

When Both Mirror Drives Fail the Same Way

https://marcpaul.io/logs/when-both-mirror-drives-fail-the-same-way/
3•marcbpaul•29m ago•2 comments

Americans spend more than 2.5 hours in the ER

https://www.axios.com/2026/08/25/americans-er-wait-times-data
2•JumpCrisscross•32m ago•0 comments

Show HN: I'm Serving Esp32s31.fun

13•abu-matterize•35m ago•11 comments