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.

An open-source solar vehicle

https://www.reddit.com/r/interestingasfuck/comments/1vcnvez/an_opensource_solar_vehicle/
1•moltean•23s ago•0 comments

Jerry and Marge Go Large

https://highline.huffingtonpost.com/articles/en/lotto-winners/
1•EndXA•5m ago•0 comments

Mechanical License

https://en.wikipedia.org/wiki/Mechanical_license
1•redbell•5m ago•0 comments

Why Is the U.S. Running So Low on Weapons?

https://www.theatlantic.com/ideas/2026/08/the-us-isnt-making-enough-weapons/688150/
1•Jtsummers•6m ago•0 comments

Token Arbitrage: Use Sol for coding, Luna for compaction, save 84%

https://dirac.run/posts/token-arbitrage-sol-vs-luna
1•GodelNumbering•8m ago•1 comments

Much of Philosophy Today Is Self-Indulgent

https://walterveit.substack.com/p/much-of-philosophy-today-is-self
1•barry-cotter•8m ago•0 comments

Show HN: A fail-closed evidence engine for norms used by AI agents

https://github.com/Angeliasrl/norms-mcp-engine
1•babelprotocol•9m ago•0 comments

Viagra may reduce cancer metastasis, study shows

https://medicalxpress.com/news/2026-07-viagra-cancer-metastasis.html
1•mhb•10m ago•0 comments

Inside An AI TikTok Shop Slop Factory That Shills Supplements Recalled by FDA

https://www.404media.co/inside-an-ai-tiktok-shop-slop-factory-that-shills-supplements-recalled-by...
1•bookofjoe•12m ago•0 comments

Show HN: Runthru – open-source Interactive Demos

https://github.com/marktolson/runthru
3•marktolson•12m ago•0 comments

Augmenting Long-Term Memory

https://augmentingcognition.com/ltm.html
1•olexsmir•13m ago•0 comments

Most Likely Future Filter: World Govt

https://www.overcomingbias.com/p/most-likely-future-filter-world-govt
1•surprisetalk•13m ago•0 comments

GitHub/gh-stack: GitHub Stacked PRs

https://github.com/github/gh-stack
1•sshah•16m ago•0 comments

Two Overlapping Circles

https://lemurintheattic.mataroa.blog/p/two-overlapping-circles/
1•xyztenet•21m ago•0 comments

WebExt Ship Kit: Build Once, Validate for Chrome, Edge, and Firefox

https://github.com/blueyferg/webext-ship-kit
1•clevercreator•21m ago•0 comments

IBM Claims Quantum Advantage with New Validation Techniques

https://spectrum.ieee.org/ibm-verifiable-quantum-advantage
1•Schlagbohrer•22m ago•1 comments

Show HN: Argot, a Rust AI guardrail based on your codebase AST patterns

https://argot.tmonier.com/
2•damienmeur•23m ago•0 comments

Promises, Kept

https://www.anuclei.com/blog/promises-kept-building-multisynapse
1•jequals5•24m ago•0 comments

VibeMenu – a local macOS menu-bar dashboard for Claude Code and Codex

https://github.com/Kirill-Chistov/VibeMenu
1•KirillChistov•25m ago•0 comments

GLM-5.3 Soon

https://github.com/zai-org/z-ai-sdk-java/commits/glm-5.3
4•OsamaJaber•26m ago•0 comments

Spriteloom – local AI pixel-art generator plugin for Aseprite

https://github.com/vkarach/spriteloom
1•vkarach•29m ago•0 comments

FlakeAudit, a CLI for evaluating Nix flake SBOMs against org policies

https://determinate.systems/blog/introducing-flakeaudit/
1•biggestlou•29m ago•0 comments

SecurityPolicy restrictions unenforced by default sandbox back end in PraisonAI

https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-5r6c-gj4g-r697
1•LHMisme•30m ago•0 comments

Linux 7.3 Adding Support for MCTP-over-USB v1.1

https://www.phoronix.com/news/Linux-7.3-MCTP-Over-USB-1.1
1•Bender•30m ago•0 comments

What You'd See During an AI World War [video]

https://www.youtube.com/watch?v=Gw_hnD7m00M
1•freakynit•30m ago•0 comments

VictorTaelin/Nanoproof

https://github.com/VictorTaelin/nanoproof
1•surprisetalk•34m ago•0 comments

Pavel Durov – Communication Technology and the Struggle for Freedom [video]

https://www.youtube.com/watch?v=1Yq_5aDdJ24
1•rzk•35m ago•0 comments

The AI bubble is popping; we just don't know it yet

https://www.theregister.com/ai-and-ml/2026/08/03/the-ai-bubble-is-already-popping-we-just-dont-kn...
25•Bender•36m ago•11 comments

ERP and MES Integration for US Pharma Manufacturers

https://geekyants.com/blog/erp-and-mes-integration-for-us-pharma-manufacturers-a-roadmap-to-achie...
2•varda_62892•38m ago•0 comments

The Grass Is Greener

https://www.bassfinity.com/blog/the-grass-is-greener-reading-summer-vegetation
1•jequals5•39m ago•0 comments