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

A Geometric Resolution of the Vacuum Catastrophe via 3-Torus Topology

https://drive.google.com/file/d/1NUxRyGn7P72ptlCYsoZcxRdI3Xa0e6Gd/view?usp=sharing
1•avonmach•7m ago•0 comments

How are teachers handling writing feedback at scale?

1•uuuAA•9m ago•0 comments

LiteLLM Supply Chain Attack: Defense in Depth Is the Only AI Security Strategy

https://www.runtimeai.io/blog-litellm-attack.html
2•roshanshaik•25m ago•0 comments

Zipcode specific inflation to understand local price changes

https://whatchanged.us/
1•ryan_j_naughton•30m ago•0 comments

Show HN: Spectator – A programming language for Cybersecurity and Hacking

1•CzaxTanmay•30m ago•0 comments

Spotting issues in DeFi with dimensional analysis

https://blog.trailofbits.com/2026/03/24/spotting-issues-in-defi-with-dimensional-analysis/
1•anitil•33m ago•1 comments

Iran rejects US proposal, lays out five conditions for ending war

https://www.presstv.ir/Detail/2026/03/25/765835/iran-rejects-us-proposal-lays-out-five-conditions...
2•Jimmc414•35m ago•0 comments

OmniWM – Niri and Dwindle tiling window manager for macOS

https://github.com/BarutSRB/OmniWM
2•gedy•45m ago•0 comments

Should Investors Demand Better Liquidation Terms for SAFEs?

https://natlawreview.com/article/should-investors-demand-better-liquidation-terms-safes
1•petethomas•47m ago•0 comments

Injecting Tracing the Hot Way

https://underjord.io/injecting-tracing-the-hot-way.html
1•lawik•51m ago•0 comments

The coming PLG to SLG apocalypse

https://www.withsahel.com/blog/plg-to-enterprise-timeline-compression
1•iajiboye•52m ago•1 comments

Ask HN: Can I somehow exit HN desktop view on mobile?

1•hxugufjfjf•54m ago•1 comments

Show HN: AutoSW-Like AutoResearch but for software:SW Systems that Builds itself

https://pub.towardsai.net/the-software-that-built-itself-well-defined-intents-are-all-you-need-06...
1•alexcpn•55m ago•1 comments

Show HN: Orloj – agent infrastructure as code (YAML and GitOps)

https://github.com/OrlojHQ/orloj
1•An0n_Jon•56m ago•0 comments

AI Arbitrator

https://www.adr.org/ai-arbitrator/
1•dqv•59m ago•0 comments

Show HN: Scope – a beautiful open-source web client for Stremio

https://github.com/scope-player/scope
1•judekim•1h ago•1 comments

Show HN: Agent Ruler new update v0.1.9

1•steadeepanda•1h ago•1 comments

Show HN: I built a lawyer game with AI

https://legalarena.app
1•divyanthj•1h ago•0 comments

Proactively Parasocial

https://nicklandolfi.com/posts/proactively-parasocial.html
1•jxmorris12•1h ago•0 comments

One man company is possible

https://mdalpha.ai/
1•sam890306•1h ago•1 comments

Show HN: Prompt Guard–MitM proxy that blocks secrets before they reach AI APIs

https://github.com/chaudharydeepak/prompt-guard
2•chaudharydeepak•1h ago•2 comments

I didn't understand TurboQuant, so I made this explainer

https://cyrusradfar.com/thoughts/turboquant-explainer
3•cyrusradfar•1h ago•0 comments

Terafab

https://en.wikipedia.org/wiki/Terafab
1•gnarlouse•1h ago•1 comments

My 1k Favorite Books

https://kylebenzle.com/bookreviews.php
1•hilliardfarmer•1h ago•0 comments

Show HN: Agent Kernel – Three Markdown files that make any AI agent stateful

https://agent-kernel.dev/?v=1.0.0
1•obilgic•1h ago•0 comments

HN: Surviving the litellm supply chain attack with a pure ctypes OS Vault

https://github.com/MACCRE-2026/MACCRE-Sovereign-Auth
2•MACCRE•1h ago•0 comments

Creating Readerly

https://nicoverbruggen.be/blog/creating-readerly
3•ganksalot•1h ago•0 comments

Squirrel seen 'vaping' in London park

https://www.telegraph.co.uk/news/2026/03/23/squirrel-seen-vaping-in-london-park/
18•walterbell•1h ago•3 comments

Research Shows Verbatim Recall of Copyrighted Books in LLMs

https://cauchy221.github.io/Alignment-Whack-a-Mole/
2•nsagent•1h ago•0 comments

Show HN: Send Love, Send Letters (at cost)

https://mappymail.com
2•pruetj•1h ago•0 comments