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.

Germany's 60K-game preservation project collapses after €1.5M funding dries up

https://www.tomshardware.com/video-games/retro-gaming/germanys-1-5-million-project-to-build-the-w...
1•thunderbong•47s ago•0 comments

Meta's AI 'Perv Glasses' Now Come with Stupid Comcast-Esque Usage Restrictions

http://www.techdirt.com/2026/07/06/metas-ai-perv-glasses-now-come-with-stupid-comcast-esque-usage...
1•beardyw•1m ago•0 comments

Apprentice developer defied orders – then got a job supporting her weird code

https://www.theregister.com/software/2026/07/06/apprentice-developer-defied-orders-then-got-a-job...
1•LorenDB•1m ago•0 comments

Global renewable capacity factors datasets

https://bayesian.energy/blog
1•p44v9n•2m ago•0 comments

I Built a Telegram Client for Pi

https://www.npmjs.com/package/@atharva-again/pi-tg
1•atharva-again•2m ago•1 comments

Show HN: Orchestrate parallel Claude Code and Codex agents on a live map

https://github.com/Latand/live-log-viewer-next
1•latand6•3m ago•0 comments

Show HN: We track 1,397 AI agents. 43 famous ones (402k stars) have gone dark

https://agentcrush.xyz/ghost-report
1•AgentCrush•3m ago•0 comments

The Nature of Launch Day

https://seths.blog/2026/06/the-nature-of-launch-day/
1•herbertl•3m ago•0 comments

Show HN: Captchainbox – make senders work to get into your inbox

https://www.captchainbox.com
1•felixdoerp•4m ago•0 comments

Microsoft joins AI-driven tech layoff wave with 4,800 job cuts

https://www.reuters.com/business/world-at-work/microsoft-joins-ai-driven-tech-layoff-wave-with-48...
1•root-parent•5m ago•0 comments

Loop Engineering's Missing Half

https://x.com/compose/articles/edit/2073814852167184384
1•sankarn_ai•5m ago•0 comments

Show HN: Flying Drones with Natural Language

https://jakedecamp.com/product/flying-drones-with-natural-language/
1•silksowed•6m ago•0 comments

We asked AI agents to fix real security bugs. This is what happened

https://mobb.ai/blog/we-asked-ai-agents-to-fix-real-security-bugs-this-is-what-happened
1•k1r111•7m ago•0 comments

Will GPUs Accelerate Your Traditional SQL Workload?

https://www.starburst.io/blog/will-gpus-accelerate-your-traditional-sql-workload/
1•abadid•7m ago•1 comments

Show HN: Quiet Sky, a weather app built for privacy

https://github.com/NW-Hiker-Skier/quietsky-privacy-proxy
1•Aaron_NW•7m ago•0 comments

Ask HN: Is anyone using Jujutsu version control (JJ) exclusively?

3•cabyambo•7m ago•0 comments

CppRTOS

https://github.com/borisRadonic/CppRTOS
2•BorisRadonic•10m ago•0 comments

Go Report Card has been sunset

https://goreportcard.com/
1•atkrad•10m ago•0 comments

Xbox to Lay Off Up to 3,200 in 'Most Significant Restructure' in Company History

https://variety.com/2026/gaming/news/xbox-layoffs-3200-4-studios-sold-1236802326/
3•drayfield•11m ago•0 comments

Show HN: I check grocery "sale" prices against government data (190 cities)

https://lowtein.com
1•barneycorp•11m ago•0 comments

Domain-specific agents: composition against the bloated agent

https://leocavalcante.dev/en/agentes-de-dominio-especifico-composicao-contra-o-agente-inchado/
1•leocavalcante•11m ago•0 comments

How old are you?

https://orchidfiles.com/how-old-are-you/
1•theorchid•12m ago•0 comments

Show HN: OnlyFoundrs – Twitter for founders, minus the flex

https://onlyfoundrs.com/
2•Quise2003•13m ago•0 comments

OpenAI's apparent failure to visit key site raises questions over UK investment

https://www.theguardian.com/technology/2026/jul/04/openai-apparent-failure-visit-key-site-questio...
4•_tk_•14m ago•0 comments

UEFA slams FIFA's 'unprecedented, unjustifiable' Balogun decision

https://www.reuters.com/sports/soccer/uefa-slams-fifas-unprecedented-incomprehensible-unjustifiab...
2•root-parent•15m ago•0 comments

Cognitive Aging and Brain Health: Comparison of Super Movers vs. Nonsuper Movers

https://www.neurology.org/doi/10.1212/WNL.0000000000214776
2•bookofjoe•15m ago•0 comments

Uniform Invoice

https://en.wikipedia.org/wiki/Uniform_Invoice
2•redbell•16m ago•0 comments

Nintendo's EU Switch 2 gets a 1% smaller battery and is 10 grams heavier

https://hanafuda.report/articles/nintendo-switch-2-eu-battery-change/
2•brandrick•16m ago•0 comments

Blatant nepotism among various groups of Indians in Amazon

https://old.reddit.com/r/amazonemployees/comments/1uoj25w/blatant_nepotism_among_various_groups_o...
3•root-parent•16m ago•0 comments

Invisible Companies

https://colossus.com/article/invisible-companies/
2•herbertl•17m ago•0 comments