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.

How I Work

https://www3.nccu.edu.tw/~jthuang/krugman.html
1•jruohonen•29s ago•0 comments

Kagi Small Web

https://github.com/kagisearch/smallweb
1•dgellow•30s ago•0 comments

A Single Cobalt Shock Could Trigger Global EV Battery Supply Chaos

https://www.sciencedaily.com/releases/2026/06/260619101402.htm
1•karakoram•3m ago•0 comments

The frontier is open-source today

https://www.southbridge.ai/blog/offmute-v2-glm-vs-opus
2•hrishi•7m ago•0 comments

Hand-powered LLM (YouTube) [video]

https://www.youtube.com/watch?v=HSapdLYpmWY
2•mcchen51•7m ago•0 comments

Every DFU Button Is a Failure

https://umi.engineering/blogs/engineering/every-dfu-button-is-a-failure
2•liamkinne•10m ago•0 comments

Palmier-pro: macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
2•nateb2022•10m ago•0 comments

Venice proposes hiking entry fee to €50

https://www.euronews.com/travel/2026/06/19/would-you-pay-50-to-visit-venice-new-mayor-is-pushing-...
2•Markoff•13m ago•0 comments

Show HN: Lil Apps

https://lilapp.us/
2•marcuskaz•16m ago•0 comments

Evaluation order and nontermination in query languages

https://www.rntz.net/post/2026-06-11-datalog-nontermination.html
2•g0xA52A2A•16m ago•0 comments

Claude is your insider threat now – Dan Tentler – Security Fest 2026 [video]

https://www.youtube.com/watch?v=yvJYw2gR0cU
3•_____k•17m ago•0 comments

Do Elite Universities Overpay Their Faculty?

https://direct.mit.edu/rest/article-abstract/doi/10.1162/REST.a.1817/137257/Do-Elite-Universities...
3•paulpauper•20m ago•1 comments

Cuba to Privatize State Companies

https://www.miamiherald.com/news/nation-world/world/americas/cuba/article316195766.html#storylink...
2•paulpauper•20m ago•0 comments

Do weird corporate governance structures work well?

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6697999
2•paulpauper•20m ago•0 comments

Let an Agent run the apps on your computer

https://lapu.ai/
2•xAdamx•21m ago•0 comments

Iran says it's closing Strait of Hormuz, accusing Israel, US of violating truce

https://www.cnn.com/2026/06/20/world/live-news/iran-war-trump-israel-lebanon
6•MilnerRoute•21m ago•0 comments

Ribbie, Live Baseball in Pixels

https://ribbie.tv
2•zdw•22m ago•0 comments

Letheo – a Cognitive Runtime for agent memory in Rust (forgetting by physics)

https://github.com/Abick91/letheo
2•abick91•23m ago•0 comments

Homo Agenticus

https://www.strangeloopcanon.com/p/homo-agenticus
2•kiyanwang•24m ago•0 comments

How to Lose a Global AI Monopoly in One Afternoon [video]

https://www.youtube.com/watch?v=0RxMj0L0-fY
2•Topfi•24m ago•0 comments

Tesla's self-driving safeguards fooled by $30 doll heads

https://electrek.co/2026/06/15/chinese-drivers-plastic-heads-fool-tesla-autopilot-camera/
4•zdw•25m ago•0 comments

Eliya – a compliance-focused OpenJDK 25 distribution (Phase 1 of a JVM platform)

https://root.asymm.systems/product/eliya
2•fahimfarookme•26m ago•1 comments

Cotect – a fast code inspector for the agent era

https://cotect.dev/
3•grzracz•29m ago•0 comments

FCC Seeks Comment on Enhanced Know-Your-Customer Requirements

https://www.fcc.gov/document/fcc-seeks-comment-enhanced-know-your-customer-requirements
2•dredmorbius•32m ago•1 comments

Epidurals Are a Miracle Technology

https://worksinprogress.co/issue/the-wonder-of-epidurals/
3•karakoram•35m ago•0 comments

Write a Letter to Your Future Self

https://www.futureme.org/
3•karakoram•35m ago•0 comments

Sinceerly, AI to undo your AI writing

https://sinceerly.com
2•zdw•36m ago•1 comments

Granta stops publishing short story award winners over AI controversy

https://www.theguardian.com/books/2026/jun/20/granta-magazine-commonwealth-short-story-prize-ai
5•ilreb•36m ago•0 comments

Show HN: Video on the map marketplace 1 year – still bad traction

2•cromlehg•36m ago•0 comments

Hyperia 0.12.7 is released: an agentic terminal for agents and humans

https://github.com/DeepBlueDynamics/hyperia/releases
2•kordlessagain•39m ago•0 comments