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.

Solving the Shortest Vector Problem in $2^{0.6039n}$ Time via Mid-Point Hessian

https://arxiv.org/abs/2608.02478
1•sbulaev•44s ago•0 comments

Trump administration drafting ban on Chinese data center devices, sources say

https://www.reuters.com/world/trump-administration-drafting-ban-chinese-data-center-devices-sourc...
1•mikhael•1m ago•0 comments

I built an AI tool that turns your photo into a Greek mythology character

http://blurb.cam/
1•gaoheyang•2m ago•0 comments

Rochelle Hudson

https://the-wanderling.com/hudson.html
1•petethomas•4m ago•0 comments

Nucleus – A lightweight dashboard for Linux dev environments (PHP and systemd)

https://github.com/LebToki/Nucleus
1•LebToki•6m ago•0 comments

The White House Is Keeping Its AI Cybersecurity Framework Secret

https://www.wired.com/story/the-white-house-is-keeping-its-ai-cybersecurity-framework-secret/
1•reasonableklout•7m ago•0 comments

The Bitwarden subscription is now $20 a year

https://bitwarden.com/pricing/
1•mikalauskas•10m ago•0 comments

SF $192 fine for teaching tennis to his own children

https://twitter.com/Polymarket/status/2084790486590517503
2•bilsbie•10m ago•0 comments

Reliability Lessons from SQLite – Richard Hipp | SSW (2026) [video]

https://www.youtube.com/watch?v=V_qzqY1bb7I
1•mif•11m ago•1 comments

Learning BASIC Like It's 1983 (2018)

https://twobithistory.org/2018/09/02/learning-basic.html
1•downbad_•12m ago•0 comments

NPM Registry Protocol

https://github.com/npm/statusboard/issues/340
1•jcbhmr•14m ago•0 comments

DiCaprio and Bezos set USD$200M fund to recover endangered species

https://variety.com/2026/film/news/leonardo-dicaprio-jeff-bezos-project-endangered-species-123682...
1•teleforce•25m ago•0 comments

Show HN: AI Version of My Resume

1•ricky300300•29m ago•0 comments

NexBoard

https://nexboard.ca
2•KonDanikas•32m ago•1 comments

AI used new levels of 'autonomy and deception'

https://www.bbc.co.uk/news/articles/c1w1lvn7d9go
2•smarri•32m ago•0 comments

After Losses, Retail Investors Flock to 3x Leverage as 2x Product Are Restricted

https://www.asiae.co.kr/en/article/2026080416131786841
2•mapping365•33m ago•0 comments

Wine Planted in Sand

http://www.nlcwines.com/colares-1
1•marysminefnuf•38m ago•0 comments

Show HN: Hubmesh – Multi-hop RAG retrieval with zero LLM calls in the query path

https://github.com/DemigodDSK/hubmesh
1•dsk_7699•40m ago•0 comments

CrewAI in Python: Coordinating Teams of AI Agents

https://realpython.com/crewai-python/
2•inferhaven•48m ago•0 comments

Show HN: AI gateway open source integrated with cursor and open router

https://www.routerfuel.com/
1•U_Zargar•49m ago•0 comments

You can finally move passkeys between password managers

https://www.makeuseof.com/move-passkeys-between-password-managers/
1•petethomas•59m ago•1 comments

$20M+ in Microsoft bug bounties paid out in last 12 months

https://www.theregister.com/security/2026/08/04/ai-helps-microsoft-bug-hunters-chase-a-record-20m...
2•Gaishan•1h ago•0 comments

Gallium: Why the US Cannot Produce Precision Missiles and Fully-Functional F-35s

https://sonar21.com/the-galling-gallium-chokehold-why-the-us-cannot-produce-precision-missiles-an...
1•SanjayMehta•1h ago•0 comments

From your doorbell to your home network

https://adepts.of0x.cc/eufy-doorbell-hacking/
1•mmoogle•1h ago•0 comments

Any L1 crypto devs out there looking for a new challenge?

2•daniel-alexande•1h ago•0 comments

Virtual Mac on iPad

https://github.com/nfzerox/VirtualMacOniPad
3•tortilla•1h ago•1 comments

Bending Spoons to buy Airtable for $1.28B

https://techcrunch.com/2026/08/04/bending-spoons-to-buy-airtable-for-1-28b/
7•markerz•1h ago•0 comments

Show HN: Design cinematic mecha startup sequences in seconds

https://reactorcore.itch.io/ignition-mecha-startup-sequence-maker
1•wowinter15•1h ago•0 comments

CFPB supervisor warned staff of unpleasant fallout if they go too hard on firms

https://www.reuters.com/world/us-consumer-watchdog-supervisor-warned-staff-unpleasant-fallout-if-...
3•petethomas•1h ago•0 comments

A heat spike in March ruined pistachio pollination, decimating crops

https://www.fresnobee.com/news/california/central-valley/article316731801.html
5•littlexsparkee•1h ago•0 comments