evolving-ai-agents
What it does
This skill explains how to automatically improve an AI agent's prompts, skills and memory using repeated tests against a benchmark. It is for teams who want their agent to get better without hand-tuning every change.
When to use it
- βWhen you want to optimize an agent's prompts or skills against a measurable test.
- βWhen you want an agent that improves through repeated test and revise cycles.
- βWhen you need a history of every change so you can review or undo it.
Skill link
https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/14-agents/a-evolve/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you set up an automatic improvement loop for my support agent against our test set and keep a history of every change?β
5 new skills a week. 1 minute to read.
How it works
The agent stores the agent's settings as files, runs it on the benchmark, reviews what went wrong, and proposes changes. Changes that do not improve results are rolled back, and each change is versioned in git.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Evolving AI Agents with A-Evolve
Overview
A-Evolve is universal infrastructure for evolving any AI agent across any domain using any evolution algorithm with zero manual engineering. It represents all evolvable agent state as files (prompts, skills, memory, tools), runs iterative solve-observe-evolve cycles against benchmarks, and uses LLM-driven mutation to improve agent performance automatically.
Benchmark results (Claude Opus 4.6):
- MCP-Atlas: 79.4% (#1)
- SWE-bench Verified: 76.8% (~#5)
- Terminal-Bench 2.0: 76.5% (~#7)
- SkillsBench: 34.9% (#2)
When to Use A-Evolve
Use A-Evolve when:
- Optimizing agent prompts, skills, or memory against a measurable benchmark
- Building self-improving agents with automated gating and rollback
- Evolving domain-specific tool usage and procedures through LLM-driven mutation
- Running iterative solve-observe-evolve loops to maximize agent performance
- Needing reproducible, git-versioned evolution history for every change
Key differentiator: Other frameworks build agents; A-Evolve optimizes them. It sits on top of any agent framework and makes it better through automated evolution.
Do NOT use A-Evolve for:
- Building multi-agent orchestration from scratch (use CrewAI, LangGraph)
- One-shot agent tasks with no iteration needed (use LangChain, LlamaIndex)
- RAG pipeline optimization (use LlamaIndex, Chroma)
- Prompt-only optimization without skill/memory evolution (use DSPy)
Quick Start
Installation
pip install a-evolve # Core
pip install a-evolve[anthropic] # With Claude support
pip install a-evolve[all] # All providers
Three-Line Evolution
import agent_evolve as ae
evolver = ae.Evolver(agent="swe", benchmark="swe-verified")
results = evolver.run(cycles=10)
print(f"Final score: {results.final_score}")
This copies the built-in SWE seed workspace, runs 10 evolution cycles against SWE-bench Verified, and returns the optimized agent.
Core Concepts
The Agent Workspace
All evolvable state lives as files in a workspace directory:
my-agent/
βββ manifest.yaml # Metadata + entrypoint
βββ prompts/
β βββ system.md # Main system prompt (evolved)
β βββ fragments/ # Modular prompt pieces
βββ skills/
β βββ skill-name/
β βββ SKILL.md # Reusable procedure with frontmatter
βββ memory/
β βββ episodic.jsonl # Lessons from failures
β βββ semantic.jsonl # General knowledge
βββ tools/
β βββ registry.yaml # Tool manifest
β βββ tool_name.py # Tool implementations
βββ evolution/ # Managed by engine (metrics, history)
The Evolution Loop
Each cycle follows five phases:
- Solve β Agent processes a batch of tasks from the benchmark
- Observe β Benchmark evaluates trajectories, producing (task, trajectory, feedback) triples
- Evolve β Evolution engine mutates workspace files based on observations
- Gate β Validate mutations (git snapshot before/after for rollback)
- Reload β Agent reinitializes from evolved filesystem state
Three Pluggable Interfaces
# 1. Agent β implements solve()
class MyAgent(ae.BaseAgent):
def solve(self, task: ae.Task) -> ae.Trajectory:
# Domain-specific solving logic
return ae.Trajectory(task_id=task.id, output=result, steps=steps)
# 2. Benchmark β implements get_tasks() and evaluate()
class MyBenchmark(ae.BenchmarkAdapter):
def get_tasks(self, split="train", limit=None) -> list[ae.Task]:
return [ae.Task(id="1", input="...")]
def evaluate(self, task: ae.Task, trajectory: ae.Trajectory) -> ae.Feedback:
return ae.Feedback(success=True, score=0.95, detail="Passed")
# 3. Engine β implements step()
class MyEngine(ae.EvolutionEngine):
def step(self, workspace, observations, history, trial):
# Mutate workspace based on observations
return ae.StepResult(mutated=True, summary="Updated prompts")
Workflow 1: Evolve an Existing Agent
Use when: You have a working agent and want to optimize it against a benchmark.
Critical Requirements:
- Agent implements
BaseAgent.solve()returningTrajectory - Benchmark implements
BenchmarkAdapterwithget_tasks()andevaluate() - Seed workspace has
manifest.yamlwith entrypoint and evolvable layers - System prompt exists at
prompts/system.md - Workspace is a git repo (run `git init && g
FAQ
Is this for building agents from scratch?
No. It improves an existing agent and sits on top of agent frameworks.
Does it need a benchmark?
Yes. It needs a measurable benchmark to score each version of the agent.
When should I not use it?
For building multi-agent systems from scratch, or for one-off tasks that need no iteration.
Details
Original description by the author
Provides guidance for automatically evolving and optimizing AI agents across any domain using LLM-driven evolution algorithms. Use when building self-improving agents, optimizing agent prompts and skills against benchmarks, or implementing automated agent evaluation loops.
Popularity
- GitHub stars
- 14k
- Ranking position
- #11164
- License
- MIT
- Updated
- 10/10/2026
Comments
- β¦
More skills from this repository
autoresearch
14kGuides your agent through a full AI research project, from literature review to experiments and writing, with a repeating cycle of testing and review.
prompt-guard
14kLets your agent screen text for prompt injection and jailbreak attempts before it reaches your AI app, using Meta's small classifier.
pytorch-fsdp2
14kShows your agent how to add PyTorch FSDP2 to a training script so large models are split across GPUs and saved correctly.
ml-training-recipes
14kGives your agent proven training recipes for neural networks, covering model choice, optimizers, learning rates and fixing loss spikes.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.