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.

Venezuela earthquake: powerful back-to-back quakes collapse buildings in Caracas

https://www.theguardian.com/world/2026/jun/25/earthquake-venezuela-caracas-tremors-aftershocks
1•teleforce•7s ago•0 comments

Ask HN: What are the hardest problems AWS Lambda MicroVMs can solve now?

1•iaziz786•1m ago•0 comments

FPGA-based CNN acceleration using pattern-aware pruning [pdf]

https://inria.hal.science/hal-04689673/document
1•teleforce•2m ago•0 comments

Vypl a Python REPL that works like Vim

https://github.com/HoraDomu/Vypl
1•HoraDomu•3m ago•0 comments

Geopolitical Risk Index

https://www.matteoiacoviello.com/gpr.htm
1•mooreds•6m ago•0 comments

Coal Butter - Butter Made from Coal

https://en.wikipedia.org/wiki/Margarine
1•gurjeet•8m ago•0 comments

We'll fight the platform war against Big AI

https://www.anildash.com/2026/06/23/fight-ai-platform-war/
1•aendruk•11m ago•0 comments

Show HN: A durable filesystem layer for AI agents

https://github.com/CelestoAI/smolfs
1•theaniketmaurya•13m ago•0 comments

Snap sued over rape of minor who connected to adult attacker on Snapchat

https://apnews.com/article/snapchat-minor-rape-lawsuit-missouri-0c3ba0ac009134a1154b388419b8d07a
2•petethomas•14m ago•0 comments

Anthropic: Alibaba-Linked Operators Used 25k Accounts to Mine Claude for Qwen

https://runtimewire.com/article/anthropic-alibaba-qwen-claude-distillation-claims
3•ryanmerket•16m ago•0 comments

Internet traffic in Venezuela dropped 45% after a magnitude 7.5 earthquake

https://twitter.com/emot/status/2069932384770777090
3•emot•18m ago•0 comments

The engineering bottleneck has moved

https://productnow.ai/blogs/the-engineering-bottleneck-has-moved
1•kadhirvelm•19m ago•0 comments

Powerful 7.5 magnitude earthquake hits Venezuela

https://www.cnn.com/2026/06/24/americas/venezuela-earthquake-latam-intl
2•lawrencejgd•20m ago•0 comments

How Europe Became the World Champion of Heat Deaths

https://quillette.com/2026/06/24/how-europe-became-the-world-champion-of-heat-deaths/
1•delichon•21m ago•0 comments

Show HN: Built an Obsidian plugin that rephrases your writing without takin over

https://rephrasethis.co
2•gpickett00•29m ago•0 comments

Blogging Can Just Be Stating the Obvious

https://blog.jim-nielsen.com/2026/blogging-stating-the-obvious/
2•Curiositry•32m ago•0 comments

Drug to prevent organ rejection after kidney transplant tops standard treatment

https://www.reuters.com/business/healthcare-pharmaceuticals/drug-prevent-organ-rejection-after-ki...
1•iancmceachern•33m ago•0 comments

A Diner's Guide to Mars

https://mceglowski.substack.com/p/a-diners-guide-to-mars
1•anitil•33m ago•1 comments

Show HN: Valence – Real-time emotion detection from voice, as an API

https://docs.getvalenceai.com/welcome
1•chloevalence•34m ago•1 comments

Building Agent Telemetry for LLMs

https://lexifina.com/blog/building-agent-telemetry-for-llms
1•alansaber•37m ago•0 comments

Software engineers are facing an 'identity crisis bordering on depression'

https://www.businessinsider.com/software-engineers-face-an-ai-identity-crisis-vc-partner-says-2026-6
1•clumsysmurf•37m ago•2 comments

World Action Models: A Survey

https://arxiv.org/abs/2606.20781
1•simonpure•38m ago•0 comments

A New Text Only Social Media Network

https://www.skrrl.com/
1•AMILLI_AI_CORP•38m ago•1 comments

EvoForest-WM: Discovered Neuro-Symbolic World Model for Multivariate Time-Series

https://gist.github.com/kayuksel/cbb304038471befead2c1926610e9ff4
1•kayuksel•48m ago•0 comments

Anthropic says Alibaba illicitly extracted Claude AI model capabilities

https://www.reuters.com/world/china/anthropic-says-alibaba-illicitly-extracted-claude-ai-model-ca...
6•madars•53m ago•3 comments

Show HN: Docket Fleet – mobile device cloud

https://fleet.docketqa.com
2•boriskurikhin•54m ago•0 comments

Japan's AI goldrush faces backlash as data centers sprout up in urban areas

https://www.japantimes.co.jp/environment/2026/06/21/data-center-pushback/
1•mikhael•56m ago•0 comments

M5StackChan AI Desktop Robot

https://shop.m5stack.com/products/stackchan-kawaii-co-created-open-source-ai-desktop-robot
1•rglover•57m ago•0 comments

Aurora Loom, luminous 3D strands woven into a living Aurora

https://sand-morph.up.railway.app/aurora-loom
1•echohive42•1h ago•0 comments

Code as Agent Harness

https://arxiv.org/abs/2605.18747
2•matt_d•1h ago•0 comments