Skip to content
Skillpedia
Agents14k Β· #11164

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.md

Copy 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

Use this skill to help me: https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/14-agents/a-evolve/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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:

  1. Solve β€” Agent processes a batch of tasks from the benchmark
  2. Observe β€” Benchmark evaluates trajectories, producing (task, trajectory, feedback) triples
  3. Evolve β€” Evolution engine mutates workspace files based on observations
  4. Gate β€” Validate mutations (git snapshot before/after for rollback)
  5. 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() returning Trajectory
  • Benchmark implements BenchmarkAdapter with get_tasks() and evaluate()
  • Seed workspace has manifest.yaml with 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.

repo: Orchestra-Research/AI-Research-SKILLs

Popularity

GitHub stars
14k
Ranking position
#11164
License
MIT
Updated
10/10/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills