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.

Show HN: StreamVault

https://streamvaults.ru/
1•hannil55•37s ago•0 comments

Jscbjscbs

https://news.ycombinator.com/submit
1•cwsrider•5m ago•0 comments

Natural Born Bloggers

https://spyglass.org/om/
1•imartin2k•6m ago•0 comments

Empero-AI/Qwythos-9B-Claude-Mythos-5-1M

https://huggingface.co/empero-ai/Qwythos-9B-Claude-Mythos-5-1M
1•vednig•8m ago•0 comments

Ask HN: Have the founders of Palentir and Anduril ever read Tolkien?

1•nativeit•8m ago•0 comments

Scott Aaronson's Trevisan Award Acceptance Speech

https://scottaaronson.blog/?p=9881
1•Jun8•9m ago•0 comments

Show HN: Mentionkit – Track your brand mentions across LinkedIn, X and more

https://mentionkit.com/
1•shash7•12m ago•0 comments

3D-printed metal wristwatch with LED matrix display

https://old.reddit.com/r/Watches/comments/1ui3lvy/project_my_brother_and_i_designed_our_own/
1•huhtenberg•17m ago•0 comments

Turning Strava data and gym photos into a training recap with my coding agent

https://www.akashtandon.in/ai/2026-06-29-strava-photos-training-recap-coding-agent/
1•akashtndn•18m ago•0 comments

Show HN: AI agent for software user community support

2•Daniel-Pan•20m ago•1 comments

White working-class children failed by education system, says inquiry

https://www.bbc.co.uk/news/articles/cq51j10q601o
1•mmarian•22m ago•0 comments

Would Claude Refuse an Illegal Military Order?

https://www.theatlantic.com/national-security/2026/06/claude-anthropic-ai-warfare-orders/687581/
1•abdelhousni•22m ago•1 comments

Show HN: Nearest-neighbor, a dating app for AI agents

https://nearest-neighbor.replygirl.club/
1•replygirl•26m ago•0 comments

Israel deployed troops to Somaliland after recognition, source says

https://www.middleeasteye.net/news/israel-deployed-troops-somaliland-after-recognition-official
1•littlexsparkee•30m ago•0 comments

Squish – The fastest way to run local LLMs on Apple Silicon

https://squish.run/
2•jscohn85•30m ago•0 comments

Moving Car-Free as a Parent

https://maxmautner.com/2026/06/27/moving-as-a-parent.html
2•mslate•31m ago•0 comments

Names in the USA (1880-2025)

https://liorsinai.github.io/coding/2026/06/21/names.html
1•the_origami_fox•32m ago•0 comments

InnerRipple, on device health scoring against your own Apple Watch baseline

https://apps.apple.com/us/app/innerripple-know-your-health/id6774995186
1•stillraft•32m ago•0 comments

About Walt Disney

https://d23.com/about-walt-disney/
1•teleforce•34m ago•0 comments

Ask HN: What's one thing you wish AI did well?

1•akashwadhwani35•41m ago•2 comments

RedNote Xiaohongshu is said to ready Hong Kong IPO filing this month

https://www.bloomberg.com/news/articles/2026-06-15/xiaohongshu-is-said-to-ready-hong-kong-ipo-fil...
3•teleforce•46m ago•1 comments

AI coding agents(Claude, Cursor) ask questions, share learnings, and blueprints

https://agents.stackoverflow.com/recent
1•rushil_b_patel•47m ago•0 comments

Prompt Injection Defense

https://pypi.org/project/prompt-injection-defense/
1•rghosh8•50m ago•0 comments

You aren't ready to be your own boss until you read this

https://comuniq.xyz/post?t=1330
4•01-_-•50m ago•0 comments

85% of kids are still using social media despite ban

https://theconversation.com/85-of-kids-are-still-using-social-media-despite-ban-but-we-need-a-new...
2•01-_-•51m ago•0 comments

Trump's U-Turn on Iran Sanctions Would Unravel Decades of Curbs

https://www.bloomberg.com/news/articles/2026-06-28/trump-s-u-turn-on-iran-sanctions-would-unravel...
1•petethomas•51m ago•0 comments

Reinforcement learning towards broadly and persistently beneficial models

https://alignment.openai.com/beneficial-rl/
2•spicypete•55m ago•0 comments

Is Sunscreen the New Margarine?

https://www.outsideonline.com/health/wellness/sunscreen-sun-exposure-skin-cancer-science/
4•markgavalda•57m ago•0 comments

Show HN: WinPodX – run Windows apps on Linux, VM looks like real hardware

https://www.winpodx.org/
1•kernalix7•59m ago•0 comments

In 5 years, nobody will give a damn about AI-detectors

https://www.joanwestenberg.com/p/in-5-years-nobody-will-give-a-damn
2•Ariarule•1h ago•1 comments