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.

Cloud Run sandboxes: Lightweight isolation for AI agents

https://cloud.google.com/blog/topics/developers-practitioners/google-cloud-run-sandboxes-are-in-p...
1•lfx•1m ago•0 comments

It Is Trivially Easy to Use Reddit to Manipulate AI Search, Research Suggests

https://www.404media.co/it-is-trivially-easy-to-use-reddit-to-manipulate-ai-search-research-sugge...
1•theanonymousone•2m ago•0 comments

GPT-5.6 – ARC-AGI Results

https://arcprize.org/results/openai-gpt-5-6
1•gok•4m ago•0 comments

Automating Risk Model Retrain Loop with Agentic Skills

https://www.coinbase.com/blog/automating-risk-model-retrain-loop-with-agentic-skills
1•dukebartnik•6m ago•0 comments

What is a token and why does it cost so much? [video]

https://www.youtube.com/watch?v=-0HRzXk8vlk
1•linggen•6m ago•0 comments

"The Switzerland of AI": OpenClaw becomes a non-profit foundation

https://thenewstack.io/openclaw-foundation-nonprofit-status/
2•Brajeshwar•6m ago•0 comments

The Art of (Agent) War

https://certiv.ai/blog/the-art-of-agent-war/
1•azhenley•7m ago•0 comments

GPT-5.6 System Card [pdf]

https://deploymentsafety.openai.com/gpt-5-6/gpt-5-6.pdf
1•zof3•7m ago•0 comments

Show HN: Become better at Prompting with bit sized lessons

https://claudelessons.com/
1•techsin101•7m ago•0 comments

Google Should Open Source Gemini. All of It

https://blog.thomasunise.com/google-should-open-source-gemini-all-of-it/
4•is_dev_active•10m ago•0 comments

AI 2040

https://ai-2040.com/?r=tw
1•rolisz•11m ago•1 comments

Spine: A physical display for your music collection

https://spinemusic.com
1•xbryanx•12m ago•0 comments

Inviting Hard Questions

https://www.anthropic.com/news/hard-questions
2•surprisetalk•12m ago•0 comments

Metamorphic sulfur release as a driver of sustained cooling and mass extinction

https://www.science.org/doi/10.1126/sciadv.aee2277
1•littlexsparkee•13m ago•0 comments

Product or Plumbing? The Platform Team's Dilemma

https://karlkfi.medium.com/product-or-plumbing-the-platform-teams-dilemma-884dc26348cf
1•karlkfi•14m ago•0 comments

Ask HN: Who is your startup using for insurance?

1•VladVladikoff•17m ago•0 comments

I got tired of seeing mistake fares on Reddit a day late

https://github.com/010zx00x1/faresnipe
1•01x02111•18m ago•0 comments

Show HN: CodeAlmanac – Self-updating wiki for your coding agent (local, Apache)

https://github.com/AlmanacCode/codealmanac
2•reveriedev•21m ago•0 comments

Fifty-seven self-contained web demos BY Fable in one run

https://elder-plinius.github.io/FABLE-SHOWCASE/
1•smusamashah•22m ago•1 comments

Stacks: Run classic HyperCard stacks on modern macOS without emulation

https://morphing.cloud/hypercard/
1•CharlesW•22m ago•0 comments

What If We Accidentally Outsource the Real Work to AI?

https://www.insidehighered.com/opinion/columns/just-visiting/2026/07/09/ai-scribes-medicine-are-s...
1•speckx•23m ago•0 comments

GPT-5.6 Is Live

https://openai.com/index/gpt-5-6/#
5•akarshhegde18•23m ago•0 comments

Nintendo in a Small Town, 1987

https://dfarq.homeip.net/nintendo-in-a-small-town-1987/
2•TMWNN•24m ago•0 comments

Interview with Mitchell Hashimoto about Ghostty and Zig

https://alexalejandre.com/programming/interview-with-mitchell-hashimoto/
1•veqq•25m ago•0 comments

New York sues 3M, DuPont, others over 'forever chemicals' in consumer goods

https://www.reuters.com/world/new-york-sues-3m-dupont-others-over-forever-chemicals-consumer-good...
1•onemoresoop•26m ago•0 comments

How should group chats work in decentralized systems?

https://marindedic.com/groups/
4•Realman78•26m ago•0 comments

Show HN: EdgeSpeech, on-device speech-to-speech for React Native

https://github.com/switchboard-sdk/edgespeech
3•jimsrand•26m ago•0 comments

Feds Are Pushing a New Gas Station Chain Selling Cheap Fuel

https://www.thedrive.com/news/feds-are-pushing-a-brand-new-gas-station-chain-selling-strangely-ch...
1•randycupertino•27m ago•0 comments

Bonnie Tyler–80s pop legend known for 'Total Eclipse of the Heart,' dies aged 75

https://www.theguardian.com/music/2026/jul/09/bonnie-tyler-80s-pop-legend-known-for-total-eclipse...
1•bookofjoe•27m ago•0 comments

World’s First Commercial Nuclear-Powered Satellite

https://citylabs.net/first-commercial-nuclear-powered-satellite-aboard-spacex-transporter-17/
1•geox•28m ago•0 comments