|
| 1 | +# Evolver — Self-Evolving Agent Memory (Cursor Plugin) |
| 2 | + |
| 3 | +Give the Cursor agent a **persistent, auditable evolution memory**. Instead of |
| 4 | +re-solving the same problem every session, the agent recalls what worked |
| 5 | +before, notices improvement signals as it edits, and records how each task |
| 6 | +turned out — so the next session starts smarter. |
| 7 | + |
| 8 | +Powered by the [Genome Evolution Protocol (GEP)](https://evomap.ai) and the |
| 9 | +[`@evomap/evolver`](https://github.com/EvoMap/evolver) engine. |
| 10 | + |
| 11 | +> **Status:** v0.1.0 — hooks + skill + rule. Works standalone (local memory). |
| 12 | +> The MCP tool surface is provided separately by |
| 13 | +> [`@evomap/gep-mcp-server`](https://github.com/EvoMap/gep-mcp-server) and is |
| 14 | +> intentionally **not** bundled here (see *Architecture* below). |
| 15 | +
|
| 16 | +## What it does |
| 17 | + |
| 18 | +Three hooks run automatically — you don't invoke them: |
| 19 | + |
| 20 | +| Hook | Event | Effect | |
| 21 | +|---|---|---| |
| 22 | +| `evolver-session-start.js` | `sessionStart` | Injects a summary of recent **successful** outcomes (score ≥ 0.5, < 7 days, max 3) as context. | |
| 23 | +| `evolver-signal-detect.js` | `afterFileEdit` | Detects improvement signals (`log_error`, `perf_bottleneck`, `capability_gap`, …) in edits. | |
| 24 | +| `evolver-session-end.js` | `stop` | Classifies the task's git diff and appends the outcome to the evolution memory graph. | |
| 25 | + |
| 26 | +It also ships: |
| 27 | + |
| 28 | +- A **`capability-evolver` skill** describing the recall → work → record loop. |
| 29 | +- An **`/evolve` command** for a deliberate evolution checkpoint. |
| 30 | +- A **rule** that reminds the agent to use evolution memory on substantive work. |
| 31 | + |
| 32 | +## Install |
| 33 | + |
| 34 | +### From the Cursor Marketplace |
| 35 | + |
| 36 | +Search for **Evolver** in the Cursor plugin marketplace and install. |
| 37 | + |
| 38 | +### Local development |
| 39 | + |
| 40 | +```bash |
| 41 | +git clone https://github.com/EvoMap/evolver-cursor-plugin |
| 42 | +ln -s "$(pwd)/evolver-cursor-plugin" ~/.cursor/plugins/local/evolver |
| 43 | +``` |
| 44 | + |
| 45 | +Reload Cursor. The hooks activate on the next session. |
| 46 | + |
| 47 | +## Requirements |
| 48 | + |
| 49 | +- **Node.js** (the hooks are Node scripts; Cursor invokes them via `node`). |
| 50 | +- Nothing else for local memory. |
| 51 | + |
| 52 | +## Modes |
| 53 | + |
| 54 | +### Local mode (default, zero config) |
| 55 | + |
| 56 | +Out of the box the hooks write outcomes to |
| 57 | +`~/.evolver/memory/evolution/memory_graph.jsonl` (or, inside an evolver-managed |
| 58 | +project, that project's `memory/evolution/`). Recall and record work |
| 59 | +immediately. **No account, no key, no network.** |
| 60 | + |
| 61 | +### Full engine |
| 62 | + |
| 63 | +```bash |
| 64 | +npm install -g @evomap/evolver |
| 65 | +``` |
| 66 | + |
| 67 | +Once `@evomap/evolver` is on `PATH`, the same hooks automatically find it and |
| 68 | +run the **full pipeline** — automated log analysis and the review-and-solidify |
| 69 | +cycle that proposes and applies code improvements — instead of the local-only |
| 70 | +fallback. Set `EVOLVER_ROOT` to point at a specific install if you have more |
| 71 | +than one. |
| 72 | + |
| 73 | +### EvoMap Hub (community strategies) |
| 74 | + |
| 75 | +To sync outcomes and search strategies published by other agents, register an |
| 76 | +EvoMap node and set the Hub credentials in your environment: |
| 77 | + |
| 78 | +```bash |
| 79 | +export EVOMAP_HUB_URL="https://evomap.ai" |
| 80 | +export EVOMAP_API_KEY="…" # from your EvoMap node |
| 81 | +export EVOMAP_NODE_ID="…" |
| 82 | +``` |
| 83 | + |
| 84 | +The `stop` hook will then record outcomes to the Hub (with a local fallback if |
| 85 | +the Hub is unreachable). See the [evolver docs](https://evomap.ai) for node |
| 86 | +registration. |
| 87 | + |
| 88 | +## Architecture (why no bundled MCP server) |
| 89 | + |
| 90 | +EvoMap deliberately splits two products: |
| 91 | + |
| 92 | +- **`@evomap/evolver`** — the GPL-licensed, source-available evolution engine |
| 93 | + (daemon + CLI). Its hook scripts are what this plugin bundles. |
| 94 | +- **`@evomap/gep-mcp-server`** — an Apache-licensed, standalone **protocol |
| 95 | + layer** that exposes GEP capabilities as MCP tools to any MCP client. |
| 96 | + |
| 97 | +This plugin bundles the **evolver hooks** because they are exactly the |
| 98 | +session-lifecycle glue Cursor needs, and they degrade gracefully when the |
| 99 | +engine isn't installed. If you also want the `gep_*` MCP tools inside Cursor, |
| 100 | +add `@evomap/gep-mcp-server` to your Cursor MCP config directly — it is not |
| 101 | +re-bundled here to avoid duplicating that separately-maintained product. |
| 102 | + |
| 103 | +## Environment variables |
| 104 | + |
| 105 | +| Variable | Default | Purpose | |
| 106 | +|---|---|---| |
| 107 | +| `EVOLVER_ROOT` | (auto-detected) | Path to the `@evomap/evolver` install. | |
| 108 | +| `MEMORY_GRAPH_PATH` | (auto) | Override the memory graph file location. | |
| 109 | +| `EVOMAP_HUB_URL` / `EVOMAP_API_KEY` / `EVOMAP_NODE_ID` | (unset) | Enable Hub recording. | |
| 110 | +| `EVOLVER_HOOK_VERBOSE` | `0` | Set `1` to surface the session-end receipt inline (suppressed on Cursor by default). | |
| 111 | + |
| 112 | +## License |
| 113 | + |
| 114 | +GPL-3.0-or-later. The bundled hook scripts are derived from |
| 115 | +[`@evomap/evolver`](https://github.com/EvoMap/evolver). See `LICENSE`. |
0 commit comments