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.

Israel's $50M Experiment to Change U.S. Public Opinion

https://www.wsj.com/politics/israels-50-million-experiment-to-change-u-s-public-opinion-253b3b70
1•abdelhousni•24s ago•0 comments

AMD publishes machine-readable ISA so frontier models can write its GPU kernels

https://www.theregister.com/ai-and-ml/2026/07/24/amd-vibe-codes-its-way-past-the-cuda-moat-with-r...
1•logickkk1•2m ago•0 comments

Tech titans' playbook to defy Aussie social media ban

https://www.afr.com/technology/big-tech-tricks-undermining-social-media-ban-wells-20260331-p5zk5e
1•asdefghyk•2m ago•0 comments

Becoming a Research Engineer at a Big LLM Lab

https://www.maxmynter.com/pages/blog/jobhunt
2•felixdoerp•4m ago•0 comments

Why our exoplanet map looks like a cone? [video]

https://www.youtube.com/watch?v=ZF_Q4C_Yhz8
1•hakkikonu•4m ago•0 comments

Daraxonrasib or Chemotherapy in Previously Treated Metastatic Pancreatic Cancer

https://www.nejm.org/doi/full/10.1056/NEJMoa2605555?query=WB
1•maxall4•6m ago•0 comments

'AI Mania Is Eviscerating Global Decision-Making'

https://daringfireball.net/linked/2026/07/25/ai-mania-nikhil-suresh
2•robenkleene•6m ago•1 comments

AIs Favourite Number

https://sackfield.substack.com/p/ais-favourite-number
1•sackfield•6m ago•0 comments

ExploitGym – Can AI Agents Turn Security Vulnerabilities into Real Attacks?

https://www.cybergym.io/exploitgym/
1•882542F3884314B•7m ago•0 comments

The Great Rate Reset

https://www.axios.com/2026/07/23/rates-treasury-yields-borrowing
2•toomuchtodo•9m ago•0 comments

JIT Go Brrr: The Path to a Supported JIT Compiler for CPython

https://peps.python.org/pep-0836/
1•programLyrique•10m ago•0 comments

Color Generator

https://kigen.design/color
2•arnon•14m ago•0 comments

Toolgz – cut LLM tool-definition tokens ~80% without hurting accuracy

https://github.com/dperussina/toolgz
1•dperussina•18m ago•0 comments

What's horned, fluffy, and ethically dubious? Yak clones

https://www.cnn.com/2026/07/25/china/tibet-yak-clones-conservation-intl-hnk-dst
1•naves•20m ago•0 comments

Claude Opus 5: The System Card

https://thezvi.substack.com/p/claude-opus-5-the-system-card
1•paulpauper•21m ago•0 comments

Book Review: Breakdown in Pakistan

https://www.astralcodexten.com/p/breakdown-in-pakistan
1•paulpauper•22m ago•0 comments

Celeris

https://celeris.ai/
1•sim04ful•23m ago•0 comments

Who does Anubis actually stop?

https://fzakaria.com/2026/07/09/who-does-anubis-actually-stop
1•type0•24m ago•0 comments

Sandbox-CLI is now in public beta

https://sandbox-cli.vercel.app
1•aghadge•25m ago•0 comments

Multicast TV Distribution on My Home Network

https://www.apalrd.net/posts/2026/isp_mcast/
2•mrngm•28m ago•0 comments

TV Won't Connect to Open Wi-Fi Without Permission or Have a 4G Modem

https://worldofmatthew.com/blog/tv-open-wifi/
1•worldofmatthew•31m ago•0 comments

AI pricing is understood now but the token is still just a cost

https://www.solvimon.com/blog/ai-pricing-is-understood-now-2026
1•arnon•35m ago•0 comments

Show HN: ActionRail, Runtime value/action grounding framework for AI agents

https://github.com/ToolJet/ActionRail/
1•oss-dev•35m ago•0 comments

Berlin cancels CSD Pride parade after police incident

https://www.dw.com/en/berlin-csd-pride-cancelled-incident/a-78116146
2•Tomte•36m ago•0 comments

Enola – MCP Architectural Snapshot Server and Knowledge Graph

https://github.com/enola-labs/enola
1•Inversechi•37m ago•0 comments

Fly.io CEO Kurt Mackey is stepping down

https://fly.io/blog/kurt-scott-money-sprites/
8•subarctic•40m ago•1 comments

The new rules of context engineering for Claude 5 generation models

https://claude.com/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models
3•mellosouls•41m ago•0 comments

ALP: Adaptive lossless floating-point compression

https://github.com/cwida/ALP
2•fanf2•42m ago•0 comments

How OpenAI Lost Control of an AI Model–and What Needs to Change

https://time.com/article/2026/07/24/openai-hugging-face-attack/
2•reasonableklout•44m ago•0 comments

Inflect-v2: 3.9M and 9.3M parameter open-weight TTS models

https://huggingface.co/posts/Nymbo/780726828379501
3•Nymbo•45m ago•1 comments