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: Wrapper – Yet Another Agent Framework

https://github.com/xatuke/wrapper
1•satuke•22s ago•0 comments

Show HN: Saymade, a coding agent for building ambitious software efficiently

https://saymade.com
1•domag•25s ago•0 comments

Even if 90% of AI-discovered vulnerabilities are made up, it's still terrifying

https://kerkour.com/ai-slop-vulnerabilities-terrifying
1•redcannon218•2m ago•0 comments

You Have Become a Fat King

https://highstandards.substack.com/p/you-have-become-a-fat-king
1•speckx•3m ago•0 comments

Agents can now run the full SDLC. What do engineers do now?

https://www.augmentcode.com/blog/what-do-engineers-do-when-agents-run-the-full-sdlc
1•knes•3m ago•0 comments

Show HN: A prompt to make LLMs write property-based tests

https://github.com/e35zhang/property-testing-skill
1•e35zhang•4m ago•0 comments

Self-Hosted VPN Servers

https://bryanhu.com/easyVPN/
1•thatxliner•4m ago•1 comments

DKIM2: Successor to Arc and DKIM

https://dmarcguard.io/blog/arc-to-dkim2-future/
1•meysamazad•5m ago•0 comments

Ask HN: Why is this Microsoft Outlook page sending me elsewhere?

1•zwilderrr•5m ago•0 comments

Cloudflare Identifies Race Condition in Hyper's HTTP/1 Implementation

https://www.infoq.com/news/2026/07/cloudflare-hyper-bug-fix/
1•theanonymousone•5m ago•0 comments

Silverstone 2026 British GP

https://edleeman.co.uk/posts/silverstone-2026-british-gp/
1•meysamazad•5m ago•0 comments

Debian New Maintainers' Guide

https://www.debian.org/doc/manuals/maint-guide/index.en.html
1•gregsadetsky•6m ago•0 comments

Designing APIs for Agents

https://www.freestyle.sh/blog/opinion/designing-apis-for-agents
1•benswerd•6m ago•1 comments

How This Blog Is Deployed

https://connermccall.com/blog/2026/07/06/deployment/
1•meysamazad•6m ago•0 comments

Show HN: Anonymous LLM proxy. Pay in crypto, no account needed

https://nullsink.is/
1•not_wowinter13•8m ago•0 comments

Prefect Acquires Dagster

https://www.prefect.io/prefect-acquires-dagster
2•theanonymousone•9m ago•0 comments

Show HN: Topsoil – I turned my MacBook's notch into a dashboard for coding agent

https://topsoil-two.vercel.app/
1•davey2wavey•10m ago•0 comments

Alberta government wins secrecy award for opaque access-to-information process

https://cfe.torontomu.ca/news/blanket-smother-alberta-government-wins-secrecy-award-opaque-access...
1•lukeinator42•10m ago•0 comments

Bobbin: A diskless, API-only AppView for Tangled

https://blog.tangled.org/bobbin/
1•toomuchtodo•12m ago•0 comments

If You Can't Be Replaced You Can't Be Promoted

https://www.scarletink.com/if-you-cant-be-replaced-you-cant-be-promoted-career-growth-through-suc...
2•sharjeelsayed•13m ago•0 comments

Google Gemini's SynthID AI Watermark Detector Appears to Mix Up Results in Chat

https://leadstories.com/analysis/2026/07/google-gemini-synthid-detector-confuses-results-within-s...
1•mschenk•13m ago•0 comments

Show HN: Claude Organizer, folders and search for Claude.ai, all local

https://chromewebstore.google.com/detail/claude-organizer-folders/pnbhfiebkknicpbljchmgibnpmlgebif
1•Birodar•13m ago•0 comments

Just Let Me Write Digits

https://gendignoux.com/blog/2026/07/13/input-digits.html
1•gendx•14m ago•0 comments

Ask HN: If AI existed before CRMs, what would we have?

1•nutanc•14m ago•1 comments

Eurostar orders trains that can cope with 55C 'Saudi' Summers

https://www.ft.com/content/b9ed4857-18bc-41c8-b24e-806534a35c23
1•crowdhailer•15m ago•0 comments

Apple's new SpeechAnalyzer API, benchmarked against Whisper and its predecessor

https://get-inscribe.com/blog/apple-speech-api-benchmark.html
9•get-inscribe•15m ago•2 comments

Show HN: Spellfolio – my stock market game with news events and inside info

https://www.spellfolio.com/
2•pandaman28•16m ago•0 comments

Statistically Undetectable Backdoors in Deep Neural Networks

https://arxiv.org/abs/2607.09532
1•sbulaev•16m ago•0 comments

Altman vs. Musk

https://twitter.com/sama/status/2075982617976230043
3•sanj•16m ago•1 comments

Friendship Is an Exponential Function

https://brianschrader.com/archive/friendship-is-an-exponential-function/
1•sonicrocketman•17m ago•0 comments