AGENT SKILL

rotifer-evolve

Rank an Agent's Rotifer Genes against the Arena and swap in stronger ones. Invoked explicitly via /evolve — scan local capabilities, compare Genes, inspect fitness scores, and replace weak ones with user approval. Not for capabilities outside Rotifer.

License 许可
Apache-2.0
最近更新
2026-11-12
Stars
★ 6
Forks
1

01 前言 Front Matter

name
rotifer-evolve
author
rotifer-protocol
version
0.9.13
description
Rank an Agent's Rotifer Genes against the Arena and swap in stronger ones. Invoked explicitly via /evolve — scan local capabilities, compare Genes, inspect fitness scores, and replace weak ones with user approval. Not for capabilities outside Rotifer.

03 SKILL.md 正文

Rotifer Self Evolving Agent

Your Agent gets stronger by competing, not by configuring. Scan capabilities, benchmark against Arena rankings, and upgrade to fitter alternatives — driven by objective performance data, not opinions.

Runtime Integration

This plugin declares the Rotifer MCP server for you:

npx -y @rotifer/mcp-server@0.20.0 --tools=evolve

--tools=evolve is not decoration. Left undeclared, the server offers 31 tools and 7 resources, publish_gene, login and arena_submit among them. Declared, it offers 10 tools and 4 resources. The rest are not listed and are refused if called, so nothing here can publish on your behalf or log you in.

Resources travel with the tools they duplicate — rotifer://developers/{name} returns what get_developer_profile returns, so it goes when that tool goes. A restriction with an unlisted way around it is not a restriction.

The launch line also omits --allow, so the sandbox escapes (no_sandbox, trust_unsigned) are refused.

Quick Start

Evolve Your Agent

Scan your Agent's current setup and get upgrade recommendations:

/evolve

This analyzes your local Agent configuration, identifies capabilities below Arena median, and recommends higher-performing replacements.

Check Agent Status

/evolve status

Shows all installed capabilities, their fitness scores, and overall Agent health.

Upgrade a Capability

/evolve upgrade <name>

Finds the top-ranked alternative in the same domain, shows you the swap, and installs it only after you approve. This is the one command that changes what is installed: it replaces a Gene in the project's genes/ directory with third-party code from the marketplace, which changes what your Agent does at runtime.

Genes are project files, not global ones. Install into the project the user is in, and say which directory the Gene is going into when you propose the swap.

An overwrite is undoable. Replacing a Gene moves the old copy into <genes>/.snapshots/ first. Tell the user the two ways back: rollback_gene here, or rotifer rollback <name> in a terminal. One snapshot per Gene — the next overwrite supersedes it and a rollback consumes it, so this undoes the last upgrade rather than a history.

Discovery & Comparison

Discover Capabilities

/evolve discover web scraping
/evolve discover --domain code.format
/evolve discover --fidelity Native

Compare Candidates

/evolve compare <id-1> <id-2>

Arena Rankings

/evolve arena search.web
/evolve arena code.format

How it Works

Under the hood, Rotifer uses Genes — atomic, transferable AI capabilities that compete in an Arena. The fittest Genes (measured by the fitness function F(g)) rise to the top of the rankings automatically. Ranking is the automatic part; putting a Gene on your machine is not.

F(g) = S_r · log₂(1 + C_util) · (1 + R_rob)/2 · L_score · Cost_score

Each of the five factors lies in [0, 1], so F(g) does too: a perfect score is 1.

No voting, no human preference — pure runtime performance metrics determine which capabilities win.

Security & Transparency

Runtime dependency

The MCP server is fetched from npm on first use and cached. That is a standard pattern, but it means you are trusting remote code — review the source, or check npm view @rotifer/mcp-server@0.20.0 dist.integrity, before use.

What leaves your machine

Gene and Arena queries go to the public Rotifer API. Beyond that the server makes one npm version check per day.

Usage reporting. When you are signed in, each tool call is reported to Rotifer Cloud: the tool's name, the Gene id it acted on, whether it succeeded, its latency, and your user id. Running a Gene while signed in records that too.

Signed out, no usage record is sent — but installing a Gene bumps that Gene's public install counter either way, one request carrying the Gene id and no identity. ROTIFER_TELEMETRY=0 (or false/off) stops all three.

Not sent: the arguments you pass, file contents, your environment variables, or your local configuration.

What changes on disk

  • Genes into the project's genes/, and the copy an overwrite replaces into genes/.snapshots/
  • Agent definitions into .rotifer/agents/ in the current project, plus a fitness file when you run one
  • A run log at ~/.rotifer/run-logs/<gene>.jsonl when an Agent runs — local, never transmitted
  • An update-check cache at ~/.config/rotifer/update-check.json

Nothing else on disk is modified, and no Gene is installed, replaced or removed without explicit confirmation. Removing this plugin does not uninstall Genes it installed; rotifer uninstall <name> removes one, and that is undoable through the same snapshot.

Credentials

Public Gene and Arena data needs no login. This Skill cannot sign you in — login is not in its tool set. If you signed in elsewhere, that token lives in ~/.rotifer/credentials.json with 0600 permissions and is sent only to the Rotifer API. Being signed in is what turns usage reporting on.

Links

04 同仓库更多 Skills

rotifer-protocol
rotifer-protocol/rotifer-playground

fixture-skill

A synthetic ClawHub skill for wrap --from-clawhub tests

★ 6
rotifer-protocol
rotifer-protocol/rotifer-playground

rotifer-self-evolving-agent

Rank an Agent's Rotifer Genes against the Arena and swap in stronger ones, and create and run the local Agents built from those Genes. Invoked explicitly via /evolve — scan local capabilities, compare Genes, inspect fitness scores, replace weak ones with user approval (each replacement can be rolled back), write an Agent definition into the project (/evolve create-agent), and execute a local Agent's Genes in the WASM sandbox (/evolve run-agent). Not for capabilities outside Rotifer.

★ 6
rotifer-protocol
rotifer-protocol/rotifer-playground

rotifer-guide

Entry point for Rotifer Protocol. Onboards a user to Rotifer Genes, scaffolds a Gene from a description, diagnoses a Gene's F(g) score or compile failure, searches the Rotifer Gene registry, upgrades a Gene's fidelity from Wrapped to Native, and submits a Gene to the Arena and follows its ranking. It works by proposing `rotifer` CLI commands; the ones that install software, send work to Rotifer's servers, publish a Gene or overwrite files wait for the user's approval. Meant to be invoked explicitly when working with Rotifer, or when unsure which Rotifer capability fits. Its scope is Rotifer Genes and the Rotifer CLI; onboarding, tutorials, troubleshooting or search for anything else are outside it.

★ 6
rotifer-protocol
rotifer-protocol/rotifer-playground

rotifer-gene

The Gene manual for Rotifer Protocol — write a Gene's express function and phenotype schema, run the four-layer security audit before publishing, and migrate a Gene's fidelity from Wrapped to Hybrid or Native. Invoke explicitly when building, auditing, or upgrading a Rotifer Gene. Do NOT use for general code review, dependency auditing, or framework migration — every procedure here operates on Rotifer Genes, their phenotype schemas, and the Rotifer CLI, and nothing else.

★ 6
rotifer-protocol
rotifer-protocol/rotifer-playground

rotifer-arena

Benchmark Rotifer Genes against each other in the Arena — import from ClawHub / local / scratch, compile, match opponents, run Arena evaluation, and produce a Markdown report with F(g) fitness and V(g) security grades. Invoke explicitly to compare or benchmark Rotifer Genes. Do NOT use for general benchmarking, load testing, or comparing anything that is not a Rotifer Gene or Agent.

★ 6
rotifer-protocol
rotifer-protocol/rotifer-playground

rotifer-agent

Build a Rotifer Agent from Genes — decompose intent into capability units, pick Genes by Arena F(g), compose a Rotifer Genome, create the Agent and test it. Use when the user is working with Rotifer specifically: "Rotifer Agent", "compose Genes", "Rotifer Genome", "Gene composition", "rotifer agent create". Do NOT use for general agent frameworks, or when the words Seq / Par / Cond / Try appear as ordinary programming terms — in Rotifer those name Genome composition strategies, and this Skill applies only when the user is composing Rotifer Genes.

★ 6