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.

For self-learning LLMs, governance needs to improve

https://rakuensoftware.com/blog/aimee-recursive-self-learning
1•jbailes•35s ago•1 comments

cats.txt showed llms.txt evidence is GEO astrology

https://markwilliamscook.substack.com/p/how-catstxt-showed-llmstxt-evidence
1•kaycebasques•4m ago•0 comments

Reversing TikTok's Request Signing and Encryption

https://mumd.dev/posts/reversing-tiktoks-request-signing-and-encryption
1•yawndex•6m ago•0 comments

Tlbic: Evidence, Incentives, Sunk Costs – With Thanks

1•michikawa59•7m ago•0 comments

Word 97's ghost in the machine: The crash that vanished the moment anyone

https://www.theregister.com/software/2026/08/28/word-97s-ghost-in-the-machine-the-crash-that-vani...
1•sbulaev•7m ago•0 comments

Apple's Siri Settlement: Here's When iPhone Owners Can Submit Claims

https://www.macrumors.com/2026/08/28/apple-siri-ai-settlement-claims-timing/
1•tosh•7m ago•0 comments

Cleared – Keep up to date with HTML/CSS stuff you can delete from your code base

https://cleared.page/
1•_yann•8m ago•1 comments

Russian attacks destroy 10M Ukrainian books; publishers call for support

https://www.theguardian.com/books/2026/aug/20/help-ukrainian-publishers-russia-attacks-books
1•olexsmir•10m ago•0 comments

Security Incident Affecting JetBrains Cadence

https://blog.jetbrains.com/pycharm/2026/08/cadence-security-incident-august-2026/
1•ingve•10m ago•0 comments

Pa state senator planning bill to ban on Flock, ALPR cameras

https://www.yahoo.com/news/politics/articles/pa-state-senator-planning-bill-191700709.html
1•pilingual•11m ago•0 comments

Spiky or Broad

https://alearningaday.blog/2026/08/28/spiky-or-broad/
1•herbertl•12m ago•0 comments

Would SpaceXAI Acquire Vercel?

https://twitter.com/jessethanley/status/2093298774949146796
1•eyehurtsme•13m ago•0 comments

Pdfboss – fast rust-based pdf library, with Python bindings

https://pdfboss.dev
1•ransomware•14m ago•0 comments

TwitterWebViewer has been permanently discontinued

4•avidruntime•15m ago•0 comments

Claude Max for OSS developer plan of Matz (Ruby) is running out

https://twitter.com/yukihiro_matz/status/2093347403101589618
1•tosh•15m ago•0 comments

Archil Persistent Sandboxes

https://archil.com/post/introducing-persistent-sandboxes
1•dhorthy•17m ago•0 comments

Ask HN: How do we get our US Cellular (T-Mobile?) phone number back? (complex)

1•CoryMO•17m ago•0 comments

Reflexio: Reduce task failure by 36% while saving token by more than 50%

https://www.reflexio.ai
1•yilu331•17m ago•1 comments

Dimethylmercury Poison MIT

https://whdh.com/news/first-on-7-patient-brought-to-mgh-for-exposure-to-chemical-substance-prompt...
2•dukefishron•20m ago•0 comments

What Hanging from a Bar for 30 Seconds Can Do for Your Body

https://time.com/article/2026/08/25/hanging-from-bar-benefits/
2•mooreds•20m ago•0 comments

Build with Muse Image: generate, edit, and compose images on Meta Model API

https://developer.meta.com/ai/resources/blog/build-with-muse-Image/
2•mfiguiere•20m ago•0 comments

Show HN: SplatIt. Self-hosted game servers for Splatoon on Wii U

https://github.com/oxixes/splatit
2•oxixes•21m ago•0 comments

Spotify Backstage Meet LiteLLM for Corporate AI Governance

https://github.com/acarmisc/backstage-plugin-litellm-govai
2•acarmisc•22m ago•0 comments

Sonic Pi

https://sonic-pi.net/
1•Bluestein•23m ago•0 comments

Claude: Free Plan for Scientists

https://claude.com/programs/team-plan-for-scientists
1•tosh•23m ago•0 comments

Accel-SIM 2.0: Validated GPU Simulation with Full Hopper Support

https://github.com/accel-sim/accel-sim-framework
1•matt_d•23m ago•0 comments

France opens door to fighter jet cooperation with Sweden

https://www.politico.eu/article/france-doesnt-rule-out-fighter-jet-cooperation-with-sweden-dassau...
1•madspindel•26m ago•0 comments

A Little Less Software Clutter

https://aradar.top/posts/targz-manager/
2•aradar46•30m ago•0 comments

Vertical Tornado/Waterspout [video]

https://www.youtube.com/watch?v=r9IH8ohS-X4
2•Eridanus2•32m ago•0 comments

CSVLint helps you to check that your CSV file is readable

https://csvlint.io/
2•amai•33m ago•0 comments