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.

Yet Another IPv5 Proposal

1•bigcityslider•10s ago•0 comments

The Mailgun Routes alternative for developers – MailKite

https://mailkite.dev/blog/mailgun-routes-alternative/
1•bucabay•3m ago•0 comments

Show HN: Fortress – open-source Chromium that keeps browser agents unblocked

https://github.com/tiliondev/fortress
3•arhamislam5766•7m ago•0 comments

Soatok's Informal Guide to Threat Models

https://soatok.blog/2026/06/30/soatoks-informal-guide-to-threat-models/
2•zdw•8m ago•0 comments

Context graphs: how AI agents remember why decisions were made

https://nanonets.com/blog/what-is-a-context-graph/
2•vitaelabitur•13m ago•0 comments

I Could Kill You with a Consumer Drone

https://www.defenseone.com/ideas/2017/06/i-could-kill-you-consumer-drone/139012/
4•bookofjoe•21m ago•1 comments

Making a Simulation Game – Part 1: The Agent Simulation Engine

https://scarlet.engineering/blog/making-simulation-game-part-1-the-engine/
1•poga•22m ago•0 comments

To tab or not to tab

https://arxiv.org/abs/2606.30549
1•azhenley•24m ago•0 comments

Bitcask - A Log-Structured Hash Table for Fast Key/Value Data (2010) [pdf]

https://riak.com/assets/bitcask-intro.pdf
1•gregsadetsky•30m ago•0 comments

SkySynth

https://skyviewer.app/skysynth
1•akkartik•30m ago•0 comments

Agent Empire: A interactive game to get started on what agent pattern to chose

https://agent-empire.products.sayantan.sh/
1•Morningstar317•31m ago•0 comments

China's ByteDance discovers new scaling law that could sustain AI boom

https://www.scmp.com/tech/big-tech/article/3359373/chinas-bytedance-discovers-new-scaling-law-cou...
1•dstala•31m ago•0 comments

Voices of the Void

https://votv.dev/
2•dclavijo•32m ago•0 comments

Repo-Slopscore: Detecting AI Contributions in Git Repositories via Commit

https://slopscan.ava.pet/
1•birdculture•38m ago•0 comments

Show HN: Gavio: open-source interceptor pipeline for production LLM applications

https://github.com/manojmallick/gavio
2•cees007•39m ago•1 comments

Show HN: Papa – open-source Hemingway-style readability linting for Markdown

https://github.com/bharadwaj-pendyala/papa
1•bharadwajp•40m ago•0 comments

How HN: Billy – a self-hosted AI assistant that lives in your Telegram

https://github.com/surfgolfski-dev/billy
1•tmblwd73•41m ago•1 comments

Claude's Criminally Bad Electron Mac App Is an Inside Job

https://daringfireball.net/2026/07/claudes_criminally_bad_mac_app_is_an_inside_job
3•GavinAnderegg•42m ago•1 comments

What does privatization of the US Postal Service mean?

https://phenomenalworld.org/analysis/unstitching-america/
3•htunnicliff•42m ago•0 comments

Russia buys gasoline from India to tackle shortages

https://www.reuters.com/business/energy/russia-buys-gasoline-india-tackle-shortages-sources-say-2...
3•breve•46m ago•0 comments

Forget the AI bubble. The IMF says the real threat is the mountain of debt

https://www.msn.com/en-us/money/other/forget-the-ai-bubble-the-imf-says-the-real-threat-is-the-mo...
2•petethomas•53m ago•0 comments

Show HN: DoodleMeme – Animated Memes from Your Hand Drawn Doodles (No GenAI)

https://doodlemate.com/meme
1•hjessmith•55m ago•0 comments

Give your AI agent its own email inbox – MailKite

https://mailkite.dev/blog/give-your-agent-an-inbox/
1•bucabay•56m ago•0 comments

SpaceX Is Junk. That's What the Bond Market Says

https://www.bloomberg.com/opinion/articles/2026-07-02/spacex-is-junk-that-s-what-the-bond-market-...
3•petethomas•56m ago•0 comments

Donald Trump confident Elon Musk will donate SpaceX stock to Trump accounts

https://www.msn.com/en-us/money/news/donald-trump-signals-confidence-elon-musk-will-donate-spacex...
1•petethomas•58m ago•0 comments

Norm-preserving abliteration on Qwen3.6-35B-A3B with 0% refusal

https://www.reddit.com/r/LocalLLaMA/s/kD7llp3na3
2•satvikpendem•58m ago•0 comments

The free IP Crawl API: detect if your IP camera is accidentally exposed

https://ipcrawl.com/api
2•arm32•59m ago•0 comments

Spotify Confirms Streaming Fraud After Kalshi Trader Flags Suspicious #1 Numbers

https://stereogum.com/2504130/spotify-confirms-streaming-fraud-after-kalshi-trader-flags-suspicio...
2•6stringmerc•1h ago•0 comments

Rage of the Falling Elite: How downward mobility fuels radical politics

https://www.robkhenderson.com/p/rage-of-the-falling-elite
4•vinnyglennon•1h ago•1 comments

Securing Agentic Identity

https://codon.org.uk/~mjg59/blog/p/securing-agentic-identity/
2•edward•1h ago•0 comments