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.

Building Limberly, Part 1: We're Not Moving Enough

https://prodzen.dev/articles/building-limberly-part-1-we-re-not-moving-enough/
1•frail_figure•2m ago•1 comments

Show HN: My own moonshot GIS newclear energy infrastructure

https://wes-core-grid.base44.app
1•wesley-Alan•6m ago•0 comments

Ask HN: What do you use for local embeddings?

1•asim•7m ago•0 comments

Built a desktop customization app – TRY IT

https://overlayos.veinpal.com/download
1•yosrbn•7m ago•1 comments

Show HN: DreamGraph – An autonomous cognitive layer for software systems

https://github.com/mmethodz/dreamgraph
2•mmethodz•8m ago•0 comments

7,655 Ransomware Claims in One Year: Group, Sector, and Country Breakdown

https://ciphercue.com/blog/7655-ransomware-claims-march-2025-to-march-2026
1•adulion•8m ago•0 comments

Claude Code Source Code Leaked (2026-03-31)

https://github.com/instructkr/claude-code
2•0xkato•8m ago•0 comments

Palantir's UK boss criticises 'ideological' groups as ... scrap NHS contract

https://www.theguardian.com/technology/2026/mar/31/palantir-uk-boss-louis-mosley-ministers-nhs-co...
1•chrisjj•8m ago•0 comments

What machine readable wishes could do for your social death? [video]

https://cubicgarden.com/2026/03/10/what-machine-readable-wishes-could-do-for-your-social-death/
1•adrianhoward•11m ago•0 comments

Building Political Superintelligence

https://freesystems.substack.com/p/building-political-superintelligence
2•m-hodges•12m ago•0 comments

Micropackages and Open Source Trust Scaling

https://lucumr.pocoo.org/2016/3/24/open-source-trust-scaling/
2•the_mitsuhiko•13m ago•1 comments

Show HN: HCaptcha Reverse Engineered

https://github.com/ak3zaidan/hCAPTCHA-Solver
2•ishqdehlvi•13m ago•0 comments

Italy Denies US Aircraft Access to Military Base

https://www.bloomberg.com/news/articles/2026-03-31/italy-denies-us-aircraft-access-to-military-ba...
2•vrganj•17m ago•1 comments

Ask HN: Dean of studies at a French CS school – what should we teach?

4•fdeage•18m ago•2 comments

Show HN: Livestream Robot Cooking

https://huggingface.co/spaces/haixuantao/openarm
1•HaixuanTao•21m ago•0 comments

Let the Commits Tell the Story

https://chrismaiorana.com/git-commits-tell-the-story/
1•swq115•27m ago•0 comments

Axios NPM Package Compromised: Supply Chain Attack Delivers Cross-Platform Rat

https://snyk.io/blog/axios-npm-package-compromised-supply-chain-attack-delivers-cross-platform/
2•jruohonen•29m ago•1 comments

Claude Code full source code leaked on NPM

https://github.com/chatgptprojects/claude-code
27•dheerajmp•30m ago•1 comments

Damn Claude, that's a lot of commits

https://aifoc.us/damn-claude-thats-a-lot-of-commits/
2•twapi•30m ago•0 comments

Another Starlink satellite has inexplicably exploded

https://www.theverge.com/science/903906/another-starlink-satellite-has-inexplicably-exploded
3•ColinWright•31m ago•0 comments

Super technical engineers and managers suck at explaining their thoughts

https://newsletter.manager.dev/p/explaining-understanding-and-data-compression
2•AntonZ234•33m ago•0 comments

Orca – Executable skills and capabilities for AI agent workflows

https://github.com/gfernandf/agent-skills
3•gfernandf•36m ago•0 comments

I built 5 AI agents that scrape every platform 24/7 to find dev tools you'd miss

https://claudecodetools.dev
4•Rredlegit•37m ago•0 comments

Playing in the Mac App Sandbox

https://troz.net/post/2026/playing_mac_sandbox/
2•ingve•38m ago•0 comments

Why the US Navy Won't Blast the Iranians and 'Open' Strait of Hormuz

https://responsiblestatecraft.org/iran-strait-of-hormuz/
4•KoftaBob•40m ago•1 comments

Semlib: Semantic Data Processing

https://anishathalye.com/semlib/
1•vismit2000•42m ago•0 comments

I built an O(1) physics engine to stop LLM hallucinations in construction

https://flooring-ai-matrix.streamlit.app/
1•svid•46m ago•0 comments

"An Endless Stream of AI Slop"

https://arxiv.org/abs/2603.27249
2•jruohonen•52m ago•0 comments

Cursor rules that prevent AI from hallucinating bad Next.js code

https://github.com/vibestackdev/vibe-stack
1•vibestackdev•53m ago•0 comments

Positron Flux: from DORA dashboards to explaining what changed

https://sklivvz.com/posts/introducing-positron-flux
5•sklivvz1971•54m ago•0 comments