|
| 1 | +--- |
| 2 | +name: evolver |
| 3 | +description: Use Evolver, the official EvoMap GEP-powered self-evolution engine, from Codex Desktop. Trigger when the user asks about Evolver, EvoMap, GEP, Genes, Capsules, EvolutionEvents, agent self-evolution, installing @evomap/evolver, running evolver in a git workspace, or setting up Codex hooks for Evolver. |
| 4 | +--- |
| 5 | + |
| 6 | +# Evolver |
| 7 | + |
| 8 | +Use this skill when a user wants Codex to install, verify, configure, or run the official Evolver open-source engine. |
| 9 | + |
| 10 | +Official sources: |
| 11 | + |
| 12 | +- Repository: https://github.com/EvoMap/evolver |
| 13 | +- Package: `@evomap/evolver` |
| 14 | +- Homepage: https://evomap.ai |
| 15 | +- Docs/wiki: https://evomap.ai/wiki |
| 16 | + |
| 17 | +## Core Model |
| 18 | + |
| 19 | +Evolver is a GEP-powered prompt and evolution-asset generator. It scans workspace memory and signals, selects Genes or Capsules, emits a protocol-bound GEP prompt, and records EvolutionEvents for audit. |
| 20 | + |
| 21 | +Important boundary: |
| 22 | + |
| 23 | +- Evolver itself is not a general code patcher. |
| 24 | +- In standalone mode it prints text output and GEP prompts. |
| 25 | +- Do not apply Evolver output as code changes unless the user explicitly asks Codex to do that. |
| 26 | +- Run Evolver inside a git-initialized workspace. Non-git directories should be initialized or rejected with a clear explanation. |
| 27 | + |
| 28 | +## Before Running |
| 29 | + |
| 30 | +Check prerequisites first: |
| 31 | + |
| 32 | +```bash |
| 33 | +node --version |
| 34 | +git --version |
| 35 | +command -v evolver |
| 36 | +``` |
| 37 | + |
| 38 | +Requirements: |
| 39 | + |
| 40 | +- Node.js 18 or newer. |
| 41 | +- Git. |
| 42 | +- A git workspace for project runs. |
| 43 | +- Network only when installing/updating the npm package or using EvoMap Hub features. |
| 44 | + |
| 45 | +If the CLI is missing, install the official package: |
| 46 | + |
| 47 | +```bash |
| 48 | +npm install -g @evomap/evolver |
| 49 | +``` |
| 50 | + |
| 51 | +Never suggest `sudo npm install -g`. If global npm permissions fail, configure a user-level npm prefix or use the source checkout workflow from the official repository. |
| 52 | + |
| 53 | +## Standard Workflows |
| 54 | + |
| 55 | +From inside a git workspace: |
| 56 | + |
| 57 | +```bash |
| 58 | +evolver |
| 59 | +``` |
| 60 | + |
| 61 | +Human review mode: |
| 62 | + |
| 63 | +```bash |
| 64 | +evolver --review |
| 65 | +``` |
| 66 | + |
| 67 | +Continuous loop: |
| 68 | + |
| 69 | +```bash |
| 70 | +evolver --loop |
| 71 | +``` |
| 72 | + |
| 73 | +Strategy presets: |
| 74 | + |
| 75 | +```bash |
| 76 | +EVOLVE_STRATEGY=balanced evolver |
| 77 | +EVOLVE_STRATEGY=innovate evolver --loop |
| 78 | +EVOLVE_STRATEGY=harden evolver --loop |
| 79 | +EVOLVE_STRATEGY=repair-only evolver --review |
| 80 | +``` |
| 81 | + |
| 82 | +Explain generated GEP output in terms of: |
| 83 | + |
| 84 | +- Selected Gene or Capsule. |
| 85 | +- Input signals and memory evidence. |
| 86 | +- Proposed next action. |
| 87 | +- Validation or review gate. |
| 88 | +- EvolutionEvent/audit trail. |
| 89 | + |
| 90 | +## Codex Desktop Integration |
| 91 | + |
| 92 | +For Codex hook integration, run: |
| 93 | + |
| 94 | +```bash |
| 95 | +evolver setup-hooks --platform=codex |
| 96 | +``` |
| 97 | + |
| 98 | +This may modify Codex hook files under the user's home directory. In Codex Desktop, request approval when the sandbox requires it. After hook setup, ask the user to start a new Codex thread so the updated hooks and plugin context are picked up cleanly. |
| 99 | + |
| 100 | +## Optional EvoMap Hub |
| 101 | + |
| 102 | +Evolver works offline by default. Hub connection enables network features such as node heartbeat, skill store, worker tasks, validation, asset publishing, and evolution circles. |
| 103 | + |
| 104 | +Project-local `.env` example: |
| 105 | + |
| 106 | +```bash |
| 107 | +A2A_HUB_URL=https://evomap.ai |
| 108 | +A2A_NODE_ID=your_node_id_here |
| 109 | +``` |
| 110 | + |
| 111 | +Keep secrets out of transcript output. Do not print tokens or full `.env` files. |
| 112 | + |
| 113 | +## Proxy Mailbox |
| 114 | + |
| 115 | +When proxy mode is enabled, Evolver uses a local proxy mailbox. Codex should treat the proxy as the allowed boundary and should not call EvoMap Hub APIs directly. |
| 116 | + |
| 117 | +Discovery file: |
| 118 | + |
| 119 | +```text |
| 120 | +~/.evolver/settings.json |
| 121 | +``` |
| 122 | + |
| 123 | +Default local base URL: |
| 124 | + |
| 125 | +```text |
| 126 | +http://127.0.0.1:19820 |
| 127 | +``` |
| 128 | + |
| 129 | +Useful local status endpoints: |
| 130 | + |
| 131 | +```text |
| 132 | +GET /proxy/status |
| 133 | +GET /proxy/hub-status |
| 134 | +POST /mailbox/poll |
| 135 | +POST /mailbox/send |
| 136 | +``` |
| 137 | + |
| 138 | +## Local Assets |
| 139 | + |
| 140 | +GEP assets normally live in: |
| 141 | + |
| 142 | +```text |
| 143 | +assets/gep/genes.json |
| 144 | +assets/gep/capsules.json |
| 145 | +assets/gep/events.jsonl |
| 146 | +memory/ |
| 147 | +``` |
| 148 | + |
| 149 | +Treat these as user-owned runtime state. Do not overwrite Genes, Capsules, or EvolutionEvents during setup or upgrades. |
| 150 | + |
| 151 | +## Troubleshooting |
| 152 | + |
| 153 | +If `evolver` prints no GEP prompt, confirm the current directory is a git repo. |
| 154 | + |
| 155 | +If install fails with npm permissions, use a user-level npm prefix instead of `sudo`. |
| 156 | + |
| 157 | +If loop mode appears to print text only, explain that standalone loop mode emits prompts and records audit state; automatic execution depends on a host runtime that interprets the output. |
| 158 | + |
| 159 | +If Hub features do not work, check `A2A_HUB_URL`, `A2A_NODE_ID`, proxy status, and local network access. |
| 160 | + |
| 161 | +## Helper Script |
| 162 | + |
| 163 | +This plugin includes: |
| 164 | + |
| 165 | +```bash |
| 166 | +node ~/plugins/evolver/scripts/evolver-status.js |
| 167 | +``` |
| 168 | + |
| 169 | +Run it from the workspace where the user wants to use Evolver. It reports Node, Git, Evolver CLI, git workspace status, and relevant environment flags without printing secret values. |
0 commit comments