OpenEvolve

Normal
GitHub Python Apache-2.0

Description

The open-source implementation of AlphaEvolve - an LLM-driven evolutionary coding agent that autonomously discovers new algorithms and optimizes existing code.

Key Features

  • Evolutionary code search - LLM-driven island model that evolves code variants in parallel
  • Multi-objective Pareto optimization - jointly optimizes speed, memory, and correctness
  • Real-hardware speedups - 2-3x faster GPU kernels, matrix multiplications, and circle packings
  • Reproducible experiments - full evaluation pipelines with research-grade metrics
  • Model agnostic - works with OpenAI, Anthropic, Gemini, and any LLM backend
  • HTML visualization - inspect the full solution tree and per-step code in a browser

Use Cases

💡 Auto-optimize performance-critical code - GPU kernels, serializers, math libraries
💡 Search for top-scoring solutions on Kaggle / MLE-bench-style ML competitions
💡 Discover new algorithmic approaches to heuristics, approximation, and combinatorial problems
💡 Use as a reproducible baseline for AlphaEvolve-style research
💡 Wire LLMs into CI for an automated code-optimization pipeline

Strengths & Limitations

Strengths

  • High community interest (7.3k stars)
  • Permissive open-source license (Apache-2.0)

Quick Start

pip install -U openevolve
export OPENAI_API_KEY=<your-key>
# Run a built-in example: circle packing
python -m openevolve examples/circle_packing/initial_program.py \
  examples/circle_packing/evaluator.py \
  --iterations 100
# Open logs/<run>/tree.html to inspect the evolution tree

Related Projects

Aider

48.7k · Python
Stale B

AI pair programming in your terminal. Collaborate with LLMs to edit code, manage Git, and refactor across multiple files with deep developer workflow integration.

pair-programmingcoding-agentterminal +2
  • · Codebase map — Automatically builds structural map of entire codebase helping LLMs locate and understand context in large projects
  • · Deep Git integration — Auto-generates meaningful commit messages for every change with git diff and version management support
  • · 100+ programming languages — Compatible with Python, JavaScript, Rust, Go, C++, PHP, HTML/CSS and dozens more

AgenticSeek

27.1k · Python
Active A+

Fully local Manus AI alternative that autonomously browses the web, writes code, and interacts via voice, with no API costs

browser-agentcoding-agentlocal-ai +3
  • · Fully Local Execution — All data stays on-device with zero API costs and no cloud dependency
  • · Autonomous Web Browsing — Automatically searches, reads, extracts info, and fills web forms
  • · Coding Assistant — Supports writing and debugging in Python, C, Go, Java, and more

OpenCodeInterpreter

1.8k · Python
Stale C

Open-source code generation system that integrates code synthesis, dynamic execution, and iterative refinement, comparable to GPT-4 Code Interpreter.

coding-agentcode-generationllm +1
  • · Closed-loop code generation and execution — LLM writes code, sandbox runs it, errors feed back to the model
  • · Iterative refinement — model self-fixes based on execution errors until tests pass
  • · Multi-language support — code generation and execution for Python, JavaScript, Shell, and more

Goose

53.9k · Rust
Active A+

Open-source extensible AI coding agent that goes beyond code suggestions — install, execute, edit, and test with any LLM.

coding-agentextensibledeveloper-tools +2
  • · Native desktop app — Native support for macOS, Linux, Windows desktop with full CLI and API interfaces
  • · 15+ model providers — Supports Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock and more
  • · MCP extension ecosystem — Connect 70+ extensions via Model Context Protocol with custom tool support