GEPA review
GEPA is a Python framework that optimizes prompts, code, and other text parameters using LLM-based reflection and Pareto-efficient evolutionary search.
TL;DR
GEPA (Genetic-Pareto) optimizes any system with textual parameters against an evaluation metric. GEPA is for developers tuning prompts, agents, code, or configurations. GEPA does not collapse execution traces into a single scalar reward. An LLM reads full traces, such as errors and reasoning logs, to diagnose failures and propose targeted fixes.
- 7.4kGitHub stars
- +102new stars, week of Nov 8
- 2.7Mdownloads a week, +9% vs 4-week avg
- #7in Agent frameworks this week
GEPA at a glance
- Category
- Agent frameworks
- Maintained by
- GEPA (organization, @gepa-ai on GitHub)
- License
- MIT
- Language
- Jupyter Notebook, Python, HTML
- Repository
- github.com/gepa-ai/gepa
- Website
- gepa-ai.github.io/gepa
- PyPI package
- gepa 0.1.4
- Latest release
- v0.1.4 on GitHub, Jul 15, 2026
- First published
- Aug 5, 2025
What GEPA does
- GEPA optimizes system prompts against a metric using training and validation sets through gepa.optimize.
- GEPA's optimize_anything API optimizes any text artifact, such as code, agent architectures, configurations, or SVGs, given an evaluator you write.
- GEPA runs inside DSPy as dspy.GEPA to optimize DSPy programs.
- GEPA ships built-in adapters for RAG, MCP tool descriptions, LangChain pipelines, classification confidence, and full DSPy programs.
- GEPA can merge two Pareto-optimal candidates that excel on different tasks.
- GEPA generates an interactive HTML lineage tree of explored candidates and logs it to WandB and MLflow.
- GEPA ships as an Agent Skill so coding agents like Claude Code can drive optimize_anything.
How it works
GEPA runs as a Python library. Each iteration selects a candidate from the Pareto frontier and executes it on a minibatch while capturing traces. A reflection LLM then diagnoses failures, GEPA mutates the candidate, and it accepts improvements. Evaluators return diagnostic feedback called Actionable Side Information. GEPA connects to your system through the GEPAAdapter interface, where you implement evaluate and make_reflective_dataset.
How to install and start using GEPA
With pip
pip install gepaLatest from main
pip install git+https://github.com/gepa-ai/gepa.gitWith LangChain adapter
pip install "gepa[langchain]"Requirements
- Python 3.10 or later, below 3.15.
- Access to LLMs for the task model and the reflection model, for example OpenAI models in the README examples.
- An evaluation metric or evaluator function for your system.
First steps
- Install GEPA with pip and import gepa in Python.
- Define a seed candidate, such as a dictionary holding your starting system prompt.
- Call gepa.optimize with trainset, valset, a task_lm, a reflection_lm, and max_metric_calls as the budget.
- Read the optimized prompt from result.best_candidate.
Who GEPA is for
- Developers optimizing prompts in DSPy, LangChain, or LangGraph pipelines.
- Teams tuning agent architectures, code, or configurations against a measurable score.
- Users of coding agents who want to learn repository-specific skills automatically.
- RAG and MCP tool builders who want to optimize retrieval or tool descriptions.
Limitations to know
- GEPA requires a measurable evaluation metric. Without a metric or evaluator, GEPA has nothing to optimize against.
- GEPA calls LLMs for both task execution and reflection, so each optimization run consumes model calls.
- Version 0.1.4 includes a breaking change, so check the upgrade notes before upgrading.
- GEPA connects to custom systems only through an adapter, which you must implement if no built-in adapter fits.
Is GEPA growing? Usage data
In the week of Nov 8–14, 2026, GEPA ranked #77 on the Devtoolwatch Board and #7 in Agent frameworks, with a momentum score of 71 out of 100. Its main package had 2.7M downloads that week, +9% against its own 4-week average.
Show the weekly numbers
| Week of | New stars |
|---|---|
| Aug 23, 2026 | 97 |
| Aug 30, 2026 | 132 |
| Sep 6, 2026 | 117 |
| Sep 13, 2026 | 110 |
| Sep 20, 2026 | 112 |
| Sep 27, 2026 | 111 |
| Oct 4, 2026 | 79 |
| Oct 11, 2026 | 93 |
| Oct 18, 2026 | 112 |
| Oct 25, 2026 | 92 |
| Nov 1, 2026 | 111 |
| Nov 8, 2026 | 102 |
On Hacker News
- Show HN: Optimize_anything: A Universal API for Optimizing Any Text Parameter, 8 points and 0 comments (Feb 20, 2026)
- Learning, Fast and Slow: LLMs That Adapt Continually, 6 points and 1 comments (May 13, 2026)
The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.
GEPA alternatives
Other AI agent frameworks on the Board in the week of Nov 8–14, 2026, by momentum:
| Rank | Tool | Stars | Downloads/wk |
|---|---|---|---|
| #1 | pixelfxpixelfx is a JavaScript library of code-based pixel art effects and animations, plus a Claude Code skill for making new ones. | 7.5k | – |
| #2 | SwitchSwitch is an open-source, self-hosted system that brings AI agents into Slack, Teams, Discord, Telegram and Mattermost channels as… | 4.5k | – |
| #3 | Harness²Harness² is a Python framework from Google Research for recursive agent harnessing, refining an agent's prompts, tools, memory and… | 23.9k | – |
| #4 | AG-UIAG-UI is an open, event-based protocol that standardizes how AI agents connect to user-facing frontend applications. | 17.4k | 6.1M |
| #5 | AgentScopeAgentScope is a Python agent framework with an SDK for building ReAct agents and an agent service backend with a web UI. | 36k | 143.6k |
| #6 | HyperFramesHyperFrames is an open-source framework that turns HTML, CSS, media, and seekable animations into deterministic MP4 videos, built for AI… | 84.3k | 1.3M |
Recent GEPA releases
GEPA FAQ
Is GEPA free and open source?
Yes. GEPA's source code is on GitHub (gepa-ai/gepa) under the MIT license, so you can use it for free.
How do I install GEPA?
Run pip install gepa. The gepa package needs Python 3.10 or newer, below 3.15. The install section above has the other options from the project's README.
Is GEPA still maintained?
Yes. The gepa-ai/gepa repository was last updated on Nov 7, 2026, and the latest release, v0.1.4 on GitHub, came out on Jul 15, 2026.
How popular is GEPA?
GEPA has 7.4k GitHub stars as of Nov 15, 2026. It gained 102 new stars in the week of Nov 8–14, 2026, against a 12-week average of 106 a week. Its main package had 2.7M downloads that week, +9% against its own 4-week average. That made it #7 among AI agent frameworks on the Devtoolwatch Board.
GEPA vs DSPy: how do they compare?
GEPA and DSPy are both tracked by Devtoolwatch as AI agent frameworks. GEPA has 7.4k GitHub stars and DSPy has 39.1k. In the week of Nov 8–14, 2026, GEPA's main package had 2.7M downloads and DSPy's had 1.4M. DSPy review.
GEPA vs SkillOpt: how do they compare?
GEPA and SkillOpt are both tracked by Devtoolwatch as AI agent frameworks. GEPA has 7.4k GitHub stars and SkillOpt has 19.1k. In the week of Nov 8–14, 2026, GEPA's main package had 2.7M downloads and SkillOpt's had 1.7k. SkillOpt is a Python text-space optimizer that trains reusable natural-language skill documents for frozen LLM agents without changing model weights. SkillOpt review.
What are the best alternatives to GEPA?
Other AI agent frameworks on the Devtoolwatch Board in the week of Nov 8–14, 2026, by momentum: pixelfx (#1), Switch (#2), Harness² (#3), AG-UI (#4), AgentScope (#5). The alternatives table above has their numbers.
Does GEPA work with DSPy?
Yes. GEPA is available inside DSPy as dspy.GEPA. The README recommends that route for AI pipelines. You pass a metric, a budget, and a reflection LM, then compile your program.
How is GEPA different from RL methods like GRPO?
GEPA uses LLMs to read full execution traces and diagnose why a candidate failed. RL methods collapse those traces into a scalar reward. The README reports 100–500 evaluations for GEPA versus 5,000–25,000+ for GRPO.
Can GEPA optimize things other than prompts?
Yes. The optimize_anything API optimizes any text artifact, including code, agent architectures, configurations, and SVGs. You provide an evaluator that returns a score, and GEPA handles the search.
Does GEPA work with coding agents?
Yes. GEPA ships as an Agent Skill that Claude Code and agents reading .claude/skills/ can discover. It installs as a plugin from the repo's marketplace.
What is Actionable Side Information in GEPA?
Actionable Side Information is diagnostic feedback that evaluators return, such as output and error logs. GEPA feeds it into reflection, where it acts as the text-optimization analogue of a gradient.
Sources
- gepa-ai/gepa on GitHub
- GEPA README
- gepa on PyPI
- GEPA website
- Release v0.1.4 (Jul 15, 2026)
- Release v0.1.3 (Jul 14, 2026)
- Release v0.1.2 (Jul 14, 2026)
- Hacker News: Show HN: Optimize_anything: A Universal API for Optimizing Any Text Parameter
- Hacker News: Learning, Fast and Slow: LLMs That Adapt Continually
- Devtoolwatch Board, the week of Nov 8–14, 2026
GEPA README badge
Maintainers can show the tool's weekly Board rank in their README:
[](https://index.devtoolwatch.com/tools/gepa-ai-gepa/)How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].