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.

Claude Whiteboards, Claude Sheets, and Claude Data

https://claude.com/resources/articles/sheets-whiteboards-data
1•Yorothegoat•57s ago•0 comments

An Open Field Guide to Inference Engineering

https://docs.modelplane.ai/guides/inference-guide
1•d-ramdass•57s ago•1 comments

Home appliances could be next after fridge hacks, warns EU cyber chief

https://www.euronews.com/2026/11/10/ai-is-industrialising-cyberattacks-and-shrinking-the-time-for...
1•devonnull•1m ago•0 comments

Clarifying Organizational Use of the Chocolatey Community Repository

https://blog.chocolatey.org/2026/06/updated-terms-of-use/
1•theanonymousone•3m ago•0 comments

We extracted a full Google account via CLI with zero security alerts

https://zenodo.org/records/24116447
1•andretaker•4m ago•0 comments

TDD and Coding Agents: Is It Theater?

https://joebew42.github.io/2026/11/08/tdd-and-coding-agents-is-it-theater/
1•joebew42•5m ago•0 comments

Is consent required when building technology?

https://mindslice.substack.com/p/consent-and-singularity
1•vvvhuang•6m ago•0 comments

Show HN: Gauge, a 900 KB macOS menu bar app for what's using your RAM and disk

https://github.com/thisisvaze/Gauge
1•thisisvaze•6m ago•0 comments

Judgment Is the Job – The Future of Software Engineering

https://jdforsythe.substack.com/p/judgment-is-the-job
1•jdforsythe27•7m ago•0 comments

The AI Business Model Just Collapsed

https://www.honest-broker.com/p/the-ai-business-model-just-collapsed
1•paulpauper•8m ago•0 comments

What AI progress teaches us about human psychology

https://www.optimallyirrational.com/p/what-ai-progress-teaches-us-about
1•paulpauper•8m ago•0 comments

Val Town is winding down

https://twitter.com/stevekrouse/status/2120201479646515261
2•yakkomajuri•9m ago•1 comments

New York governor launches nation's first state AI testing program

https://www.politico.com/news/2026/11/10/new-york-hochul-first-state-ai-testing-program-01157713
3•ilamont•10m ago•1 comments

Show HN: WolveKafka – Consume Kafka with a plain HTTP endpoint

https://github.com/wolveflake/wolvekafka
1•piscesdk•10m ago•0 comments

Life on Claude Nine

https://babuschk.in/posts/2026-01-25-life-on-claude-nine.html
2•reasonableklout•11m ago•0 comments

Degrowth Is Coming for Us

https://www.andyhinesight.com/degrowth-is-coming-for-us/
1•speckx•12m ago•0 comments

LLMs: Loss of Logical Minds

https://kinocow.com/llms-loss-of-logical-minds
2•speckx•12m ago•0 comments

"Your Algorithm": Giving People Ways to Personalize Facebook Recommendations

https://engineering.fb.com/2026/11/10/ml-applications/your-algorithm-giving-people-more-ways-to-p...
1•emschwartz•13m ago•0 comments

Build your own computer-use agents. 100% free, 100% open source

https://github.com/openlybuilt/computer-use
1•calebyhns•13m ago•1 comments

AI assisted theoretical physics paper intercepted by "shepherding committee."

https://twitter.com/ericweinstein/status/2120196442707075438
1•delichon•14m ago•0 comments

Show HN: AI Gude - Personal Podcast News Aggregator

https://github.com/alex0ptr/aigude
1•baquero•14m ago•0 comments

Alexandr Wang Shipped Meta's Muse in 7 Months

https://www.the-ai-corner.com/p/meta-muse-alexandr-wang-interview
1•swolpers•14m ago•0 comments

Gary Fisketjon Has Died. He Edited Ellis, Tartt, McInerney, and McCarthy

https://www.nytimes.com/2026/11/09/obituaries/gary-fisketjon-dead.html
2•georgex7•16m ago•1 comments

Terence Tao on AI in mathematics (and beyond)

https://teorth.github.io/tao-web/ai-views.html
2•nothing_is_real•19m ago•0 comments

Nanotern – Ternary LLM training on consumer hardware

https://github.com/comalice/nanotern-public/blob/master/REPLICATION_REPORT.md
1•all2•21m ago•1 comments

Anthropic unveils Office tools ahead of IPO

https://www.bloomberg.com/news/articles/2026-11-10/anthropic-unveils-office-tools-ahead-of-ipo-ta...
4•azhenley•22m ago•0 comments

'Citizen Kim' explains Kim Kardashian to her haters. It almost worked on me

https://www.washingtonpost.com/style/2026/10/30/citizen-kim-reminds-me-why-i-hate-kim-kardashian-...
1•landonxi•23m ago•1 comments

A Maintainer's Advice on Contributing to Open Source in 2026

https://wasp.sh/blog/2026/08/13/advice-for-contributing-in-2026
1•pranitha_m•23m ago•0 comments

High oil prices have led to a dip in global carbon emissions

https://arstechnica.com/science/2026/11/carbon-emissions-are-down-this-year-but-that-probably-won...
4•PaulHoule•24m ago•0 comments

Val Town is winding down

https://blog.val.town/winding-down
12•tosh•24m ago•1 comments