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.

Powering AI is an architecture problem

https://www.technologyreview.com/2026/09/10/1141649/powering-ai-is-an-architecture-problem/
1•joozio•45s ago•0 comments

Show HN: Blender Agent:A live, multi-turn agent that any can use for Blender

https://github.com/zavora-ai/adk-rust/tree/main/examples/blender_console
1•JamesKaranja•2m ago•0 comments

Give Me Knobs

https://yehiaabdelm.com/blog/give-me-knobs
1•yehiaabdelm•8m ago•0 comments

Measuring Malicious Intermediary Attacks on the LLM Supply Chain

https://twitter.com/shoucccc/status/2098169782541631871
1•soltanov•10m ago•0 comments

XPENG's Humanoid Robots production line is finished

https://www.youtube.com/watch?v=ZgBm8PdtpGo
2•nickweb•11m ago•0 comments

Cross-Lingual Alignment Without Joint Training

https://arxiv.org/abs/2608.27115
1•codelion•12m ago•0 comments

Measuring Malicious Intermediary Attacks on the LLM Supply Chain

https://arxiv.org/abs/2604.08407
1•0in•13m ago•0 comments

Congress Is Suddenly Waking Up to the AI Doomsday Threat

https://www.wsj.com/politics/policy/congress-is-suddenly-waking-up-to-the-ai-doomsday-threat-b40a...
2•doener•15m ago•1 comments

DeepSeek v4.1 Flash Uncensored

https://huggingface.co/dealignai/DeepSeek-V4.1-Flash-UNCENSORED-FP8
2•soltanov•17m ago•0 comments

Show HN: Oxlint plugin to auto-fix non-canonical Tailwind classes

https://github.com/maharshi365/oxlint-plugin-tailwind-canonical
1•maharship2022•19m ago•0 comments

Anthropic is lying: Moonshot is not routing to Claude

https://twitter.com/trydotworks/status/2098300730805284961
2•try-working•21m ago•1 comments

Proposal: Cmd/cgo: cgo without a C toolchain

https://github.com/golang/go/issues/81450
1•mappu•23m ago•0 comments

Predicting AI Job Exposure

https://www.ben-evans.com/benedictevans/2026/5/24/ai-job-exposure
1•saikatsg•24m ago•0 comments

Read Independent Fiction

https://eveningnotes.bearblog.dev/read-independent-serialized-fiction-and-short-fiction-web-novel...
1•saikatsg•26m ago•0 comments

The Omarchy Doctrine

https://omarchy.org/doctrine/
1•Tomte•28m ago•0 comments

For most of history, people's conversations, thoughts, and finances were private

https://grapheneos.social/@GrapheneOS/117249893761790371
1•Cider9986•30m ago•0 comments

Cursor Projects

https://cursor.com/blog/projects
4•deadalus•30m ago•0 comments

Show HN: Automatically keep track of all features implemented in a project

https://github.com/netizer/feature-ledger
1•krzysiek•30m ago•0 comments

Roads – the UKs favourite roads website

https://www.roads.org.uk/
2•ColinEberhardt•36m ago•0 comments

Only 31% of startup accelerators publish what cheque they write

https://accelerator.directory/methodology
2•buidlr•37m ago•0 comments

Astra for Coding: Why Are We Doing This Again?

https://lucumr.pocoo.org/2026/9/7/astra-why/
92•manojbajaj95•40m ago•43 comments

Vinetaro Drops

https://www.facebook.com/VinetaroDropsTry/
1•taxygamu•41m ago•0 comments

Anthropic blocks 'malicious use' of AI that could develop biological weapons

https://www.bbc.com/news/articles/cx2zrrpkx20o
2•mgh2•44m ago•0 comments

Course Review: TrainSec Malware Analyst Professional – Level 1

https://medium.com/@1200km/course-review-trainsec-malware-analyst-professional-level-1-203ca89b76a2
1•1200km•49m ago•0 comments

Large Language Models Reflect the Ideology of Their Creators

https://arxiv.org/abs/2410.18417
2•zvr•49m ago•0 comments

Gonc – Netcat with P2P Nat Traversal

https://github.com/threatexpert/gonc
3•gonc_cc•51m ago•0 comments

In Praise of Non-Alphanumeric Identifiers (2008)

https://prog21.dadgum.com/20.html
1•anoushiravan•52m ago•0 comments

Gaza documentary Naza receives record 25-minutes ovation at Venice Film Festival

https://www.thenationalnews.com/arts-culture/film-tv/2026/09/11/gaza-documentary-naza-receives-re...
3•teleforce•52m ago•0 comments

Microsoft Brings "Age Verification" System to Windows

https://reclaimthenet.org/microsofts-brings-verification-system-to-windows
6•PPBear•53m ago•1 comments

Cross-App TCP Hijacking and DNS Cache Poisoning via Malicious Local App

https://arxiv.org/abs/2609.09345
2•sbulaev•56m ago•0 comments