evolve

evolve is a skill for Claude Code from Megaprompting/torque-loop. It costs 97 tokens per session (1,750 once invoked), scanned A, original, MIT.

A controlled process for improving one file, document, prompt, or workflow through small tested changes. Each change is kept only when evidence shows that it meets the chosen goal.

In plain words
What is it for?
Use it to evolve code, documentation, prompts, or workflows with a baseline, a test, candidate changes, verification, and a recorded next step.
Why use it?
It prevents unfocused improvement attempts and makes it clear whether a change actually helped or should be reverted.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ratchet plugin — 17 skills, 3 agents, 3 hooks shipped together

Good fit Use it to evolve code, documentation, prompts, or workflows with a baseline, a test, candidate changes, verification, and a recorded next step.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Megaprompting/torque-loop
Claude Code
/plugin install ratchet

Made for: Claude Code.

Or install ratchet, the plugin that ships this one along with the rest of its 17 skills, 3 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evolve

README.md
[![agentmods](https://agentmods.dev/badge/skills/megaprompting/torque-loop/evolve/github.svg)](https://agentmods.dev/skills/megaprompting/torque-loop/evolve)
Your own site
<a href="https://agentmods.dev/skills/megaprompting/torque-loop/evolve"><img src="https://agentmods.dev/badge/skills/megaprompting/torque-loop/evolve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evolve

Your own site · 80×15
<a href="https://agentmods.dev/skills/megaprompting/torque-loop/evolve"><img src="https://agentmods.dev/badge/skills/megaprompting/torque-loop/evolve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.01750
Opus 5.5 $0.00039 $0.00700
Sonnet 5.5 $0.00019 $0.00350
Haiku 4.5 $0.00010 $0.00175

Measured 3mo ago against content hash 6d22cdc2b82b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

evolve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/evolve/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ratchet Evolve

Mutate. Test. Keep the delta. Serialize the next edge.

You are running a bounded artifact evolution loop. Your job is not to brainstorm improvements and not to "make this better." Your job is to produce evidence-gated deltas: one target, one pressure, small mutations, a proof gate, and a durable record.

LOCK → SNAPSHOT → PRESSURE → MUTATE → JUDGE → APPLY → VERIFY → KEEP/REVERT/ASK → RECORD → NEXT EDGE

The hard constraint, always:

No proof → no keep.
No keep → no progress claim.
No state → no loop continuity.

Invocation

/ratchet:evolve <target> --goal "<improvement>" [--iterations 2] [--test "<cmd>"] [--mode code|prompt|docs|workflow|auto] [--write]

Parse from $ARGUMENTS: the target artifact, the --goal, --iterations (default 2), an optional --test command, --mode (default auto), and --write (default false — without it, propose patches but do not modify files). If the target or goal is missing, go straight to ASK.

The deterministic helpers live in the ratchet-evolve CLI (call via Bash; fall back to node "<plugin root>/bin/ratchet-evolve" if not on PATH). In Claude Code, <plugin root> is $CLAUDE_PLUGIN_ROOT; in Codex local development, use this repo root or the installed plugin path shown by codex plugin list --json.

The loop

1. LOCK

State, before any edit: the exact target, the desired delta, the proof that the delta worked, and the forbidden scope. Scope drift is the primary failure mode — name what you will not touch.

2. SNAPSHOT

Capture the baseline. No baseline = rewriting, not evolving.

ratchet-evolve snapshot <target> --goal "<goal>" --mode <mode>

Records path, hash, git state, mode, byte/line count. Read the file for real before mutating.

3. PRESSURE

Choose one primary pressure and at most one secondary. Name the pressure you reject and why (usually novelty, because it tempts a rewrite instead of a stronger delta). ratchet-evolve pressure <mode> suggests a starting vector.

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 170 lines · 97 tokens per session scan A 6d22cdc2b82b

Subscribe to this mod's changes

evolve is a skill published in the GitHub repository Megaprompting/torque-loop (10 stars, last pushed 20d ago), licensed MIT. It adds 97 tokens to every session and 1,750 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

evolve compared with skills from other repositories

evolve next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
evolveMegaprompting/torque-loopSkill1020d agoMITA97Claude Code
ctxagentis-tools/ctxSkill13yesterdayApache-2.0A60Claude Code
ctxagentis-tools/ctxSkill13yesterdayApache-2.0A60Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
omh-rustrlaope/oh-my-hermesSkill6.2ktodayMITA19Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
redteam-web-detail-packNetw0rkNoob/VulnClawSkill4.0k1mo agoMITA38Claude Code, Codex