frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: OpenEvolve – open-source implementation of DeepMind's AlphaEvolve

8•codelion•9mo 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•9mo 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•9mo ago
How many tokens did it take to generate the 800 versions of the code?
codelion•9mo ago
Checked my openrouter stats, it took ~3M tokens but that involved quite a few runs of various experiments.

Show HN: WonderTwin AI – Local API twins for safe agentic development

https://wondertwin.ai
1•telaandrews2•14s ago•0 comments

Sony Group tech can identify original music in AI-generated songs

https://asia.nikkei.com/business/technology/artificial-intelligence/sony-group-tech-can-identify-...
1•speckx•50s ago•0 comments

AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach

https://socket.dev/blog/ai-agent-lands-prs-in-major-oss-projects-targets-maintainers-via-cold-out...
1•puppion•52s ago•0 comments

Polymath

https://en.wikipedia.org/wiki/Polymath
1•simojo•3m ago•0 comments

Show HN: Transcriptum – fast video transcription with speaker labels and summary

https://transcriptum.app/
1•lpeancovschi•4m ago•0 comments

Cooling China without warming the planet: co-benefits of HFC phase-down

https://www.nature.com/articles/s41612-025-01289-1
1•PaulHoule•6m ago•0 comments

Show HN: gboy.ts: A gameboy emulator in TypeScript for the browser and server

https://gboy-ts.vercel.app/
2•MaxLeiter•8m ago•0 comments

Ask HN: Hackers sequel, same cast, 30 years later

1•herodoturtle•9m ago•0 comments

Claude Sonnet 4.6 System Card

https://www.anthropic.com/claude-sonnet-4-6-system-card
2•adocomplete•9m ago•0 comments

Using ATProto for AppImage Distribution

https://github.com/AppImage/AppImageSpec/issues/59
1•madspindel•10m ago•0 comments

Australia's social media ban risks isolating kids with disabilities

https://www.theguardian.com/australia-news/2026/feb/06/ive-lost-my-friends-advocacy-groups-warn-a...
3•hn_acker•10m ago•1 comments

What Improves YouTube CTR – Thumbnail Design or Distribution?

1•Picknar•10m ago•0 comments

Nederland threatens Polymarket with €420K/week fines for unlicensed gambling

https://nltimes.nl/2026/02/17/dutch-regulator-threatens-polymarket-eu420k-weekly-fines-unlicensed...
4•giuliomagnifico•10m ago•0 comments

Claude Sonnet 4.6

https://www.anthropic.com/news/claude-sonnet-4-6
13•meetpateltech•12m ago•1 comments

Protos_OS – Bare_metal symbolic autonomy kernel – no_std Rust, solo build

https://www.jou-labs.com/proof
1•jodytornado•13m ago•1 comments

Drinking 2-3 cups of coffee a day tied to lower dementia risk

https://news.harvard.edu/gazette/story/2026/02/drinking-2-3-cups-of-coffee-a-day-tied-to-lower-de...
4•busymom0•13m ago•1 comments

Show HN: WodBlock – the AI-powered workout timer

https://www.wodblock.com/
1•nicotejera•14m ago•1 comments

An 11ty tip-slash-hack

https://genehack.blog/2026/02/an-11ty-tip-slash-hack/
1•speckx•14m ago•0 comments

"Bell–CHSH Under Setting-Dependent Selection": Insights into Quantum Loopholes

https://www.mdpi.com/2624-960X/8/1/8
1•powerinthelines•15m ago•1 comments

Monologue for iOS

https://every.to/on-every/introducing-monologue-for-ios
2•conspirator•17m ago•1 comments

Show HN: Lap – Fast photo browsing for libraries (Rust and Tauri)

https://github.com/julyx10/lap
2•julyxx•17m ago•0 comments

Discord Rival Gets Overwhelmed by Exodus of Players Fleeing Age-Verification

https://kotaku.com/discord-alternative-teamspeak-age-verification-check-rivals-2000669693
6•thunderbong•17m ago•0 comments

AI-powered migrations from Postgres to ClickHouse

https://clickhouse.com/blog/ai-powered-migraiton-from-postgres-to-clickhouse-with-fiveonefour
2•saisrirampur•17m ago•0 comments

My Blog History as Calendar Events

https://www.joshbeckman.org/blog/ical-feeds-for-a-jekyll-site
1•bckmn•18m ago•0 comments

Picknar – Lightweight YouTube Thumbnail Extractor (No Login, No API Key)

2•Picknar•18m ago•0 comments

Show HN: Blog and other OpenClaw features without a language model

https://github.com/princezuda/safeclaw
1•safestclaw•19m ago•0 comments

Agent Agency: Identity-Driven Motivation Architecture for LLM Agents

https://twitter.com/Claude_Memory/status/2023629412596617338
1•thedotmack•19m ago•0 comments

M5Card Forth

https://github.com/ryu10/M5CardForth
2•tosh•20m ago•0 comments

An OpenClaw-powered game world builder

https://github.com/CoreyCole/creative-mode
2•cod1r•20m ago•0 comments

Getting Bots to Respect Boundaries

https://internet.exchangepoint.tech/getting-bots-to-respect-boundaries/
1•edent•20m ago•0 comments