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.

TokenBudgeting: Our Conversations with Enterprises on Token Spend

https://newsletter.semianalysis.com/p/tokenbudgeting-our-conversations
1•felixdoerp•34s ago•0 comments

When Impressive Performance Gains Do Not Matter

https://blog.colinbreck.com/when-impressive-performance-gains-do-not-matter/
1•signa11•1m ago•0 comments

MacBook Air M4 for development: 1 year review

https://notnotp.com/notes/macbook-air-m4-for-dev/
1•chmaynard•5m ago•0 comments

Apple 'Hide My Email' Vulnerability Reveals Peoples' Real Email Addresses

https://www.404media.co/apple-hide-my-email-vulnerability-reveals-peoples-real-email-addresses/
2•sashk•6m ago•0 comments

Apple iPhone 18 Pro supplier list, parts and photos exposed in Tata data leak

https://www.reuters.com/business/media-telecom/apple-iphone-18-pro-supplier-list-parts-photos-exp...
1•aravpanwar•6m ago•0 comments

Building AGI Using Language Models (2020)

https://bmk.sh/2020/08/17/Building-AGI-Using-Language-Models/
1•rzk•10m ago•0 comments

Stop handwaving away nearly every petition that gains traction on this website

https://petition.parliament.uk/petitions/771707
2•robin_reala•10m ago•0 comments

Shoe Tray Forming Machine

https://eggtraytz.com/shoe-tray-forming-machine/
1•shuliymachinery•11m ago•1 comments

Transcribe.cpp – ggml speech-to-text inference engine

https://github.com/handy-computer/transcribe.cpp
1•sipjca•12m ago•0 comments

We put a Redis server inside our runtime

https://encore.dev/blog/redis-runtime
2•eandre•15m ago•0 comments

The YAML document from hell (2023)

https://ruuda.nl/2023/the-yaml-document-from-hell
1•vismit2000•15m ago•0 comments

Ask HN: Which GitHub features are needed in a code forge before you can migrate?

1•pksunkara•17m ago•1 comments

Asahi Linux 7.1 Progress Report

https://asahilinux.org/2026/06/progress-report-7-1/
19•pantalaimon•19m ago•2 comments

AI models' values are different from most people's

https://www.economist.com/briefing/2026/06/25/ai-models-values-are-very-different-from-most-peoples
2•felixdoerp•21m ago•0 comments

Universal Path Converter

https://universalpathconverter.com/
1•ankitg12•21m ago•0 comments

How Do Products Like LLM Gateways/VPN Handle User Payments?

1•Maxshot•22m ago•0 comments

Ask HN: How do you provide your AI agents with access to credentials/secrets?

2•pietz•23m ago•1 comments

Make AI Boring Again

https://charity.wtf/2026/06/24/make-ai-boring-again-xpost/
2•capestart•24m ago•0 comments

Alternative for Germany's academic reform plans

https://www.nature.com/articles/d41586-026-01496-7
1•i-blis•25m ago•0 comments

FocusGolf – a swing-analysis app I'm building as an HCP36 amateur

https://play.google.com/store/apps/details?id=com.mode.golf.app&hl=en
1•dmitrijsc•28m ago•0 comments

Pine64 launch $50 smart speaker for Home Assistant tinkerers

https://www.omgubuntu.co.uk/2026/06/pine64-pinevoice-riscv-smart-speaker-launch
17•edward•29m ago•4 comments

Apple accelerates app development with new intelligence frameworks

https://www.apple.com/in/newsroom/2026/06/apple-aids-app-development-with-new-intelligence-framew...
1•adithyaharish•30m ago•0 comments

Trap–Bath Split

https://en.wikipedia.org/wiki/Trap%E2%80%93bath_split
1•YeGoblynQueenne•30m ago•0 comments

I built a native iOS video player for local media and SMB/Plex

https://apps.apple.com/us/app/lux-video-player-hd-media/id6762520464
1•Moonarkh•37m ago•0 comments

AI Engineering Roadmap

https://aiengineeringfromscratch.com/prereqs.html
1•rohitghumare•37m ago•0 comments

Using a local iPhone MCP server to plan Apple Watch workouts with Codex

https://bernhardhering.de/blog/ask-my-health-codex-workout-plan/
1•boernei•40m ago•0 comments

AI Agent vs. Cron

1•vasanthps•40m ago•0 comments

Show HN: LokalBot – meetings, notes, and autocomplete that never leave your Mac

https://www.lokalbot.com/
1•stevyhacker•40m ago•0 comments

GLM-5.2's Code Reviews Are Only as Good as Your Prompt

https://blog.kilo.ai/p/glm-52s-code-reviews-are-only-as
2•justiceforsaas•44m ago•0 comments

Why averaging LLM benchmark scores is fundamentally broken

https://arxiv.org/abs/2605.11205
1•testofschool•46m ago•0 comments