# Evolver

> Stores agent experience as auditable Genes and Capsules instead of ad hoc prompt tweaks

- Category: Agents & Automation / Agent Memory
- Language: JavaScript
- Licence: GPL-3.0-or-later
- Repository: https://github.com/EvoMap/evolver
- Website: https://evomap.ai
- Canonical page: https://ai-tldr.dev/tools/evolver/

## In short

Evolver is a self-evolution engine for AI agents: instead of leaving what an agent learned in a growing pile of prompt edits, it encodes experience as compact Genes and Capsules under the project's GEP protocol, and records every change as an auditable event. It sits in the Agent Memory category of the Agents & Automation tools and is open-source, written in JavaScript and licensed GPL-3.0-or-later.

## Overview

Evolver is a self-evolution engine for AI agents: instead of leaving what an agent learned in a growing pile of prompt edits, it encodes experience as compact Genes and Capsules under the project's GEP protocol, and records every change as an auditable event. Each run scans the local `./memory/` directory for logs and signals, selects a matching Gene or Capsule from its asset pool, prints a GEP prompt to stdout — that prompt is the artifact — and writes an `EvolutionEvent` back to `./memory/` for the audit trail.

The design rests on a published comparison rather than taste. The project's paper, "From Procedural Skills to Strategy Genes: Towards Experience-Driven Test-Time Evolution" (arXiv:2604.15097), reports 4,590 controlled trials across 45 scientific code-solving scenarios, finding that documentation-style skill packages give a sparse and unstable control signal while a compact Gene representation performs best and survives structural perturbation; on CritPt, gene-evolved systems lifted their paired base models from 9.1% to 18.57% and from 17.7% to 27.14%. Evolver is the engine that implements that result.

It runs as a Node CLI inside a git repository — git is required, since Evolver uses it for rollback and blast-radius calculation — and works fully offline. Hooks wire it into Cursor, Claude Code, Codex, Kiro and opencode so evolution fires on session start, file edit or stop; OpenClaw needs no setup because it interprets the directives Evolver emits. Connecting to the EvoMap hub is optional and only unlocks network features such as skill sharing and leaderboards. Note the licensing trajectory: releases were MIT from the first release on 2026-02-01 and GPL-3.0-or-later since 2026-04-09, and the project has announced that future releases will move from fully open source to source-available, with already-published versions remaining usable under their original terms.

## What it does

- Encodes agent experience as Genes and Capsules under the GEP protocol rather than as accumulated prompt text
- Every run writes an EvolutionEvent to ./memory/, so what changed and why is auditable after the fact
- Uses git for rollback and blast-radius calculation — it refuses to run outside a git repository
- Three run shapes: a single pass, `--review` for human confirmation before applying, and `--loop` as a background daemon
- `setup-hooks` integrations for Cursor, Claude Code, Codex, Kiro and opencode; OpenClaw needs no setup
- Runs fully offline; the EvoMap hub connection is optional and only adds sharing, worker pool and leaderboards

## Getting started

Evolver needs Node.js 18 or newer and git. Install the CLI globally, then run it from inside a git-initialised project — a run that produces no GEP prompt almost always means you are not in a git repository.

1. Install the CLI

   Install globally from npm and confirm it is on your PATH.

```bash
npm install -g @evomap/evolver
evolver --help
```

2. Run it in a project

   From inside a git repository, run evolver. It prints the detected strategy preset, scans ./memory/ (creating it if missing), selects a Gene or Capsule, prints a GEP prompt and records an EvolutionEvent.

```bash
# single evolution run
evolver

# pause for human confirmation before applying
evolver --review

# run continuously as a background daemon
evolver --loop
```

3. Wire it into your agent runtime

   setup-hooks registers Evolver with a host's hook system so evolution fires automatically. Run it once per platform; most hosts need a restart afterwards.

```bash
evolver setup-hooks --platform=cursor
evolver setup-hooks --platform=claude-code
evolver setup-hooks --platform=codex
evolver setup-hooks --platform=kiro
evolver setup-hooks --platform=opencode
```

4. Optionally join the EvoMap network

   Evolver is fully functional offline. To enable sharing and leaderboards, put a .env in the directory you run evolver from — it is read from the current working directory on each run, so each project can have its own.

```bash
A2A_HUB_URL=https://evomap.ai
A2A_NODE_ID=your_node_id_here
```

## When to use it

- Keep what a coding agent learned about a repository as versioned assets rather than an ever-growing instructions file
- Review each proposed change to an agent's behaviour before it applies, with git-backed rollback if it regresses
- Run evolution automatically on session start and file edits through a host's hook system
- Audit how an agent's behaviour drifted over time by reading the recorded evolution events
