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.
/plugin marketplace add Megaprompting/torque-loop/plugin install ratchetWrote 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.
[](https://agentmods.dev/skills/megaprompting/torque-loop/evolve)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 3mo ago First seen · 170 lines · 97 tokens per session scan A 6d22cdc2b82b
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.
evolve compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| evolveMegaprompting/torque-loop | Skill | 10 | 20d ago | MIT | A | 97 | Claude Code |
| ctxagentis-tools/ctx | Skill | 13 | yesterday | Apache-2.0 | A | 60 | Claude Code |
| ctxagentis-tools/ctx | Skill | 13 | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 18 | Claude Code |
| omh-rustrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 19 | Claude Code |
| comet-githubrpamis/comet | Skill | 3.3k | today | MIT | A | 72 | Claude Code, Codex |
| redteam-web-detail-packNetw0rkNoob/VulnClaw | Skill | 4.0k | 1mo ago | MIT | A | 38 | Claude Code, Codex |