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.

Proof Repair and (Co)algebra Equivalences

https://arxiv.org/abs/2610.36669
1•matt_d•4m ago•0 comments

Aipicks.ca – Using multi-sport AI models to find edges in table tennis

https://aipicks.ca/
1•prepperscanada•4m ago•0 comments

Fable 5.2 and Jagged AGI: General, often expert, and sometimes jagged

https://www.oneusefulthing.org/p/fable-52-and-jagged-agi
2•nradov•5m ago•0 comments

Ford Reveals Mach-E Battery Degradation After 100k Miles

https://insideevs.com/news/814780/ford-mustang-mach-e-battery-degradation-range-study/
3•xbmcuser•15m ago•1 comments

Show HN: 3D Conformal Transformations via Geometric Algebra

https://static.laszlokorte.de/conformal-3d/
1•laszlokorte•20m ago•0 comments

Gisting

https://shopify.engineering/gisting
1•sonabinu•27m ago•0 comments

Mountains of Kong

https://en.wikipedia.org/wiki/Mountains_of_Kong
1•silver92bullet•28m ago•0 comments

Adaptive Agentic Worms Are Here

https://www.lesswrong.com/posts/fpLDjKg3ej49beqTC/adaptive-agentic-worms-are-here
1•gmays•29m ago•0 comments

Anthropic joins AI's natural gas frenzy, buys $3.4B worth of turbines

https://techcrunch.com/2026/11/09/anthropic-joins-ais-natural-gas-frenzy-buys-3-4b-worth-of-turbi...
1•jomon003•30m ago•1 comments

Apple Store Subscription Sign-Up Controversy Exposed

https://www.macrumors.com/2026/11/08/apple-store-subscription-controversy/
2•ksec•31m ago•0 comments

Winsight: Transparent security suite for Windows, in the spirit of Objective-See

https://github.com/ClementG91/winsight
1•philonoist•31m ago•0 comments

Project Lighthouse

https://github.com/professorsolderin/project-lighthouse
1•gslin•33m ago•1 comments

Socratic-tutor – turns an LLM into a strict personal tutor

https://github.com/janestreet/agent_skills
1•vpj•33m ago•0 comments

Discuss: America Should Unleash Cyber Privateers

https://www.realcleardefense.com/cyber-warfare/articles/america-should-unleash-cyber-privateers-2...
2•Gaishan•34m ago•0 comments

FlashStates Unlocking Flexible Hybrid State Management for Agentic LLM Inference

https://flashstates.ai/
1•matt_d•36m ago•0 comments

Autonomous AI Agents Conduct End-to-End Research with Human Participants

https://advanced.onlinelibrary.wiley.com/doi/10.1002/advs.76675
1•Gaishan•36m ago•0 comments

Land: Using Determinstic methods for faster CI and merging

https://useland.dev/
1•rohanucla•40m ago•0 comments

OSS devtool seed stage startup looking to hire DevRel In SF

1•rohankhameshra•42m ago•2 comments

Factors in Choosing WebRTC vs. HLS

https://www.red5.net/blog/5-factors-in-choosing-webrtc-vs-hls/
1•mondainx•44m ago•0 comments

The Occupational Ladder: Implications for Life-Cycle Wage Dynamics

https://www.nber.org/papers/w35929
1•rohanm93•50m ago•0 comments

Make this forward pass as fast as possible

https://ianbarber.blog/2026/11/09/make-this-forward-pass-as-fast-as-possible/
2•matt_d•55m ago•0 comments

All your clusters. One workspace. – Kite

https://kitehq.dev/
1•xdasf•59m ago•0 comments

GlitchTip 7.0 Released

https://glitchtip.com/blog/2026-11-09-glitchtip-7-0-release/
1•gslin•1h ago•1 comments

CoderPad Reports a Security Breach

3•werrett•1h ago•0 comments

Blunt Banhammer Blocks Basic Bots Ballistically

https://shkspr.mobi/blog/2026/11/blunt-banhammer-blocks-basic-bots-ballistically/
2•jay_kyburz•1h ago•1 comments

Lumo. On Your Desktop

https://mrthp.github.io/lumo-desktop/
1•misterthp•1h ago•0 comments

Nvidia CEO Huang sued over disclosures related to suspected Chinese spy

https://www.reuters.com/world/nvidia-ceo-huang-sued-over-disclosures-related-suspected-chinese-sp...
5•theanonymousone•1h ago•0 comments

macOS-Uke: Full macOS 26.5 (25F71) on the Xiaomi Pad 7

https://github.com/iOSNJBrepo/macOS-uke
4•Teever•1h ago•0 comments

Ultorg: The User Interface for Relational Databases

https://www.ultorg.com/
2•Ivoah•1h ago•0 comments

Implant Zaps Excess Sugar Directly from Blood

https://spectrum.ieee.org/type-2-diabetes-electroceutical-implant
2•pseudolus•1h ago•1 comments