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.

Forge v2.0: Cluster-Scale Agentic RL Systems and Algorithms Behind MiniMax M4

https://huggingface.co/blog/MiniMaxAI/forge-v2
1•dcu•just now•0 comments

/visualize Turn a prompt into an interactive visual explainer

https://github.com/Aaryan1524/Visualize
1•aaryangajula18•3m ago•0 comments

Show HN: Genas – Dated, Base-anchored records of public A2A agent cards

https://genas.io/
1•mcpstation•4m ago•0 comments

YT Keys for Streaming Keyboard Shortcuts for Netflix and Prime Video

https://l.meta.ai/?u=https%3A%2F%2Faddons.mozilla.org%2Fen-US%2Ffirefox%2Faddon%2Fyt-keys-for-str...
1•bhuvanshom•9m ago•0 comments

Idea: An API for My Own ChatGPT Conversations

https://avikalpg.github.io/blog/articles/20261204_idea_chatgpt_api_for_llms.html
1•avikalp•11m ago•0 comments

Spelunkr TV for Android: Channel-surf through a universe of retro television

https://spelunkr.tv/app
1•kls0e•16m ago•0 comments

Texas Supreme Court says state law allows AI-generated deposition transcripts

https://www.reuters.com/legal/litigation/texas-supreme-court-says-state-law-allows-ai-generated-d...
2•onemoresoop•16m ago•0 comments

GameStop's Game Informer Auction Hits eBay's $100M Limit

https://www.nytimes.com/2026/12/04/us/gamestop-ebay-game-informer-auction-vault.html
1•reaperducer•17m ago•0 comments

Show HN: Singapore ACRA (2.13M entities) and GST API, MCP server, CSV checker

https://oxaide.com/developers
1•leewenjie•31m ago•0 comments

GameStop is selling Game Informer's vault and its former editor is angry

https://www.videogameschronicle.com/news/gamestop-is-selling-game-informers-entire-vault-of-nearl...
3•rdmuser•31m ago•1 comments

Show HN: KiwiBasil – MangoMint Data Export

https://chromewebstore.google.com/detail/kiwibasil-mangomint-data/kikibklpcknkalleefmpbonbiibbghfa
1•rrr_oh_man•34m ago•0 comments

No One Should Trust AI to Write Their Code

https://www.adacore.com/blog/no-one-should-trust-ai-to-write-their-code
3•RossBencina•35m ago•0 comments

Accelerated Bachelor's to PhD (AccelPhD)

https://www.nsf.gov/funding/opportunities/accelphd-accelerated-bachelors-phd
2•United857•36m ago•0 comments

Chamberlain is giving itself a permanent license to your data

https://www.theverge.com/tech/1050757/chamberlain-garage-door-smart-home-camera-tos-terms-service...
3•divbzero•41m ago•0 comments

John Bolton Is Sentenced to 6 Months in Prison for Mishandling Classified Info

https://www.nytimes.com/2026/12/04/us/politics/bolton-prison-classified-information.html
7•consumer451•44m ago•9 comments

Cannabis smoking probably causes cancer, WHO research agency says

https://www.reuters.com/business/healthcare-pharmaceuticals/who-research-agency-says-cannabis-smo...
4•geox•44m ago•0 comments

eBay bans sale of AI toys

https://www.nbcnews.com/tech/tech-news/ebay-bans-sale-ai-toys-nbc-news-investigation-rcna612886
2•cdrnsf•44m ago•0 comments

AI leaders clash over surrendering human free will

https://www.axios.com/2026/11/25/anthropic-ai-human-control-debate-free-will
6•mgh2•45m ago•2 comments

The human centipede that is AI Twitter

https://www.lesswrong.com/posts/Ctia6zyXF69N3tzhv/the-vast-human-centipede-that-is-ai-twitter
2•koreindian•46m ago•0 comments

G.Skill's Site Appears to Have Been Hijacked to Serve Malware

https://www.pcmag.com/news/gskills-site-appears-to-have-been-hijacked-to-serve-malware
5•Kuraj•46m ago•0 comments

Rethinking the source of truth for programming in the intelligence age

https://csailmit.substack.com/p/rethinking-the-source-of-truth-for
1•matt_d•51m ago•0 comments

Show HN: Hypothesis-Driven Autoresearch for DL Research

https://github.com/JonnaMat/magic-machine
1•JonnaMat•52m ago•0 comments

Public Data Worth Building With

https://www.wesleygrubbs.com/civic-data/
1•abetusk•58m ago•1 comments

Design, Not Content, Is the New Battleground for Technology Law

https://news.bloomberglaw.com/legal-exchange-insights-and-commentary/design-not-content-is-the-ne...
1•gwu78•1h ago•0 comments

Maybe Jensen Huang Needs a New Lawyer

https://www.theatlantic.com/national-security/2026/12/jensen-huang-security-clearance-nvidia/689684/
2•gwu78•1h ago•0 comments

Jensen Huang's congressional testimony on Nvidia, China and AI chip exports

https://www.scribd.com/document/1104073539/jensenhuangtranscript-pdf
1•mfiguiere•1h ago•0 comments

U.S. officials: The Moon is a national security priority

https://www.axios.com/2026/12/03/us-officials-cislunar-moon-national-security
1•extasetoi12•1h ago•1 comments

Show HN: Ferrow – a local-first Markdown vault with reversible AI agents

https://ferrow.ai/
1•ferrow•1h ago•0 comments

YouTube to exclude AI-generated music from royalties

https://blog.youtube/news-and-events/youtube-ai-music-artist-protections/
3•negura•1h ago•0 comments

Serving Custom Models

https://www.cerebellumlabs.ai/blog/serving-custom-models/
1•suhaaspk•1h ago•0 comments