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.

Thoughts from Before and After AI

https://chevyclutchfoot.substack.com/p/thought-process-before-and-after
1•noduerme•1m ago•0 comments

The Myth of the "One Shot"

https://blog.vandesande.design/every-one-shot-is-slop
1•mrcgnc•1m ago•0 comments

Codeberg.org domain unavailable – investigation and post-mortem

https://codeberg.org/Codeberg/changelog/issues/7#issuecomment-28100157
2•BrunoBernardino•1m ago•0 comments

Greece's PM Mitsotakis and Greek AI Founders [video]

https://www.youtube.com/watch?v=Gis_2Y_pLOo
1•greekanalyst•2m ago•0 comments

Google Officially Rolls Out Collapsible Sidebar on Search

https://www.seroundtable.com/google-search-rolls-out-ai-mode-sidebar-42580.html
1•thm•2m ago•0 comments

AI Is Making China's Jobs Slump Worse

https://www.bloomberg.com/graphics/2026-china-ai-jobs-slump/
2•thm•2m ago•0 comments

Token fraud is here and it's BAD [video]

https://www.youtube.com/watch?v=ZDpP7JXPlhc
1•vismit2000•2m ago•0 comments

Google Disrupts Its Search Advertising with Its Embrace of A.I

https://www.nytimes.com/2026/11/19/technology/google-search-ads-ai.html
1•thm•2m ago•0 comments

Cool Flex AI Bro

https://interconnected.org/home/2026/11/20/flex
2•Tomte•7m ago•0 comments

Google DeepMind AI predicts Hurricane Melissa path and strength

https://hyper.ai/cn/stories/cd12451364b2d99638b382e350c3d12a
1•HyperAI•10m ago•0 comments

Tapelark's first month: 54 customers and a little over €2,100

https://victorantos.com/posts/tapelark-first-month/
1•victorbuilds•12m ago•0 comments

The Content–Geometry Tradeoff in World Models: When JEPA Learns Latent Maps [pdf]

https://cdn.agenticlearning.ai/25c41dcbc4b7a11e/content-geometry-tradeoff-2026.pdf
1•brandonb•12m ago•0 comments

Show HN: NetLoom, a live view into the Nano block lattice

https://viz.openrai.org/netloom.html
1•cbrunnkvist•13m ago•0 comments

Our S3 cache is full of holes – We put them there

https://www.bzrk.dev/blog/sparse-files/
5•borlum•16m ago•1 comments

Frostbite: A new CPU architecture discovered, designed and verified by AI

https://architectlabs.com/blog/frostbite
2•shioyama•16m ago•1 comments

Show HN: NostrPulse – Bitcoin HTTP 402 (L402 and Cashu) MCP Server for AI Agents

https://github.com/PHONGUIT22/nostrpulse-full
2•hacphong•16m ago•0 comments

Windows Server 2028 trades compatibility for out-of-the-box security

https://arstechnica.com/gadgets/2026/11/windows-server-2028-public-preview-bets-on-a-security-fir...
3•rbanffy•17m ago•0 comments

Made Doculigent – a loom and otter alternative

2•Baraklabs•17m ago•0 comments

RollerCoasterTycoonBench: Can Decision Models Manage a Theme Park?

https://www.vals.ai/blogs/building-rctbench
1•valkrieco•21m ago•0 comments

China blocks SoftBank's $5.4B takeover of ABB's robotics division

https://www.reuters.com/business/media-telecom/china-blocks-softbanks-54-billion-takeover-abbs-ro...
5•dingdongditchme•21m ago•0 comments

What people are building, discovered through new domains

https://startups.novumsignals.com/
3•walterschnitzel•23m ago•1 comments

UK fridges secured from hackers in secret nationwide operation

https://www.bbc.co.uk/news/articles/c6eq49zyx7p4o
10•tomnext•25m ago•1 comments

Persistent Incrementality in Rust

https://rust-glancer.github.io/blog/persistent-incrementality-in-rust/
2•joshcsimmons•26m ago•0 comments

Anatomy of an AI-driven attack: What ARTEX looks like in action

https://bitrise.io/artex-incident-report
2•gabornadai•26m ago•0 comments

I Stopped Using Conversation History as My Agents' State

https://medium.com/@ulrich.tan/building-stateful-investigations-with-stateless-ai-agents-2fc9bab3...
1•ulrichxtan•29m ago•0 comments

Anthropic IPO could yield $156B for charity

https://hyper.ai/stories/38cbde179199e5d614e6f2b5abfb0911
2•HyperAI•29m ago•0 comments

Show HN: Deflate X-Ray, See inside a compressed file

https://hrih.si/projects/deflate-xray/
1•DonAtimator•30m ago•0 comments

Agent should not take the cursor

https://minea.minea.workers.dev/cursor
3•sujisss•31m ago•0 comments

Mirror Dimension for Agents: Evaluating Browser-Use Agents Without the Web

https://blog.google/security/mirror-dimension-for-agents/
1•DonAtimator•32m ago•0 comments

Page Transitions are now easy: CSS View Transitions

https://www.irrlicht3d.org/index.php?t=1629
1•irrlichthn•33m ago•0 comments