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.

DeepSeek Harness developer preview: Everything is a plugin

https://www.deepseek.com/harness/en/
1•fernvenue•1m ago•0 comments

Spain extends Almaraz nuclear plant operations through 2030

https://www.reuters.com/business/energy/spain-extends-almaraz-nuclear-plant-operations-through-20...
1•mpweiher•1m ago•0 comments

Gitlawb Node, Federated Git server in Rust

https://github.com/Gitlawb/node
1•amrit_mirch•4m ago•0 comments

Noviz AI open source code launched for ERP agent architecture

1•tajdink•5m ago•0 comments

Using agents to create 3Blue1Brown-style visual explanations of research papers [video]

https://www.youtube.com/watch?v=nWOWlb0596o
3•yllberisha•7m ago•0 comments

From assistance to execution: How enterprises put AI to work

https://openai.com/index/how-enterprises-put-ai-to-work/
2•vismit2000•8m ago•0 comments

Why Not Always OCR?

https://bankstatementconverter.com/blog/posts/2026-08-14-why-not-always-ocr/
2•4pkjai•9m ago•0 comments

Ask HN: Move AI news from Hacker News to somewhere else?

3•thomasfl•14m ago•1 comments

37signals Manager Playbook

https://basecamp.com/managers
1•damethos•15m ago•0 comments

Issues Reaching Status.claude.com

https://anthropic.statuspage.io/incidents/kmbpgrsszf72
1•mohsen1•16m ago•0 comments

Show HN: Native macOS SSH config manager with in-process tunnels

https://www.sshmanager.app/
1•CodeLieutenant•17m ago•0 comments

What Most Developers Get Wrong About Building a Career in Tech [video]

https://www.youtube.com/watch?v=K3SR37pIzVs
1•pierrephpguru•19m ago•0 comments

Show HN: Headlines

https://pzlgames.com/games/headlines/
1•pompomsheep•20m ago•0 comments

AirSpace, Redux

https://kylechayka.substack.com/p/airspace-redux
1•aloukissas•20m ago•0 comments

Smartphone Innovation Is Moving Beyond Annual Hardware Upgrades

https://www.forbes.com/sites/timbajarin/2026/08/11/smartphone-innovation-is-moving-beyond-annual-...
1•01-_-•20m ago•0 comments

OpenAI's Hugging Face Breach Fuels Fresh Calls for AI Regulation

https://www.forbes.com/sites/barrycollins/2026/07/22/rogue-openai-attack-fuels-demands-to-rein-in...
1•01-_-•21m ago•0 comments

NSA spied through Angry Birds, other apps: report (2014)

https://www.nbcnews.com/tech/tech-news/nsa-spied-through-angry-birds-other-apps-report-flna2d1200...
1•downbad_•21m ago•0 comments

Superluminal Profiler is now available for Linux

https://superluminal.eu/applications/linux/
1•dodomodo•21m ago•1 comments

You're Back in the Room (Citrix NetScaler Pre-Auth RCE CVE-2026-8452(?))

https://labs.watchtowr.com/youre-back-in-the-room-citrix-netscaler-pre-auth-rce-cve-2026-8452/
1•unknownhad•23m ago•0 comments

Phones should have a 'guest lock' feature

https://curvise.net/the-phone-features-i-cant-believe-we-dont-have/
8•crisdias•24m ago•8 comments

Covert CIA program said to be behind mysterious attacks on Galápagos boats

https://www.washingtonpost.com/investigations/2026/08/13/covert-cia-program-said-be-behind-myster...
4•u1hcw9nx•29m ago•0 comments

I released a game that has no assets [video]

https://www.youtube.com/watch?v=Qr3VsZYQy4s
2•duck•31m ago•0 comments

JCT-1 Labs announces general availability of JCT-1

https://www.jacquescorbytuech.com/writing/jct-1-labs-announces-general-availability-jct-1
2•iamacyborg•33m ago•0 comments

Making of the Four Books of Architecture – C82: Works of Nicholas Rougeux

https://www.c82.net/blog/making-of-the-four-books-of-architecture
1•dsushant•34m ago•0 comments

Ask HN: How do you use AI for learning?

1•marko-djuric•35m ago•0 comments

Comma AI Introducing Chestnut

https://blog.comma.ai/chestnut/
1•b8•36m ago•0 comments

Connecticut judge says plaintiff hid messages for AI in court filings

https://www.reuters.com/legal/litigation/connecticut-judge-says-plaintiff-hid-messages-ai-court-f...
6•nomilk•39m ago•0 comments

PenguinHarness, Harness for Recursive Self-Improvement

https://github.com/Prism-Shadow/penguin-harness
1•jinqueeny•41m ago•0 comments

Bootloader Unlock – Xiaomi MTK (HyperOS/MIUI14): No Mi Unlock Tool or 168h Wait

https://xdaforums.com/t/guide-bootloader-unlock-xiaomi-mtk-hyperos-miui14-no-mi-unlock-tool-no-16...
2•Markoff•47m ago•0 comments

96.2% on ARC-AGI-3 with Opus 5

https://twitter.com/jeremyberman/status/2087633198822117446
2•rzk•49m ago•2 comments