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.

Sony Debuts Wired Headphones with '80s-Inspired Design

https://www.bloomberg.com/news/articles/2026-11-05/sony-debuts-retro-60-wired-headphones-in-tribu...
1•caiobegotti•1m ago•0 comments

A wearable identifies tagged objects by pointing a narrow infrared beam at them

https://arxiv.org/abs/2611.02599
1•arbayi•4m ago•0 comments

DigiNotar

https://en.wikipedia.org/wiki/DigiNotar
2•gregsadetsky•5m ago•0 comments

Mexico's Senate Approves ISP Rules to Disconnect Persistent Online Pirates

https://torrentfreak.com/mexicos-senate-approves-isp-rules-to-disconnect-persistent-online-pirates/
1•lobo_tuerto•6m ago•0 comments

Skymizer and MiTAC to Show Kimi K3 2.8T on a Single Air-Cooled Server at SC26

https://skymizer.ai/announcements/sc26-mitac-kimi-k3/
1•peter_d_sherman•12m ago•0 comments

Show HN: Goethe – The infrastructure for self-hosted AI

https://github.com/meshapplied/Goethe
4•Ir0n•14m ago•0 comments

Teaching Agents to Write Maintanable Code

https://boundaryml.com/blog/teaching-agents-to-write-maintainable-code
2•aaronvg•15m ago•0 comments

Run cloud agents from your home IP through a Tailscale tunnel

https://rtrvr.ai/blog/tailscale-tunnels-home-ip
2•arjunchint•19m ago•1 comments

Lovable: We're Currently Experiencing Issues

https://status.lovable.dev
3•doener•19m ago•0 comments

Git Wrapper with Easier Syntax

https://github.com/nihalduri/evc
1•nihalduri•24m ago•0 comments

Show HN: NKTgAI–Analyze the text first, generate second (and why that's not RAG)

https://nktg.org/
1•NKTgAI•27m ago•0 comments

Paraguay Freezes millions of bank Accounts

https://www.washingtonpost.com/world/2026/11/05/paraguays-president-out-after-bank-implosion-free...
3•nephihaha•34m ago•3 comments

Revolution Medicines' pancreatic cancer drug has stunning commercial debut

https://www.statnews.com/2026/11/05/rasonque-revolution-medicines-pancreatic-cancer-commercial-la...
1•cwwc•38m ago•0 comments

The Slop Index: Which AI Model Writes the Least Like AI?

https://www.theslopindex.com
5•vitaelabitur•43m ago•1 comments

Test your defenses against a nation-state level attack

https://factory.com/wargames
5•kstrauser•43m ago•5 comments

My Website's Soundtrack Is Written in TypeScript

https://patricklehmann.io/blog/synthwave-soundtrack-web-audio-typescript/
2•pleemin•43m ago•0 comments

Help your friends get ADHD and depression meds

https://www.lesswrong.com/posts/8qYuy9Cr6BNpgjJjT/help-your-friends-get-adhd-and-depression-meds
2•novia•44m ago•0 comments

Touch and Glow

https://daringfireball.net/2026/11/touch_and_glow
1•chmaynard•45m ago•0 comments

Hollowtide: Asheron's Call, free in your browser

https://hollowtide.org/
1•tapoxi•48m ago•0 comments

I Hate Emacs

https://danielfm.me/posts/i-hate-emacs/
7•danielmartins•49m ago•3 comments

Ask HN: How you guys setup multi-models agentic workflow

1•bahung1221•49m ago•1 comments

Terra Tempora: we shouldn't entrust our understanding of history to AI

https://scholar.social/@JubalBarca/117570024280604981
4•sohkamyung•52m ago•0 comments

Together Compiler: Continual Compilation for AI Inference

https://www.together.ai/blog/together-compiler-continual-compilation-for-ai-inference
1•gmays•54m ago•0 comments

Orbital Speed

https://what-if.xkcd.com/58/
1•thunderbong•54m ago•0 comments

Valve escaped Windows. Now Steam is breaking free from the PC itself

https://www.pcworld.com/article/3266419/valve-escaped-windows-now-steam-is-breaking-free-from-the...
4•haunter•55m ago•0 comments

Show HN: Cinnamon – a household AI agent with shared context and memories

https://getcinnamon.ai/
1•mv4•56m ago•0 comments

OpenAI Secures $11B at $1.25T Valuation

https://epyhia.com/openai-secures-11-billion-at-1-25-trillion-valuation-well-short-of
3•arbuge•58m ago•0 comments

Amutable Foundations: A Technical Overview

https://amutable.com/blog/amutable-foundations-technical-overview
2•ahlCVA•1h ago•0 comments

RealPage rent-pricing case wraps with nearly $360M to renters

https://www.multifamilydive.com/news/realpage-rent-pricing-case-360m-renters/873553/
1•raybb•1h ago•0 comments

Proprietory Firmware Bullshit

4•opensourcetothe•1h ago•2 comments