Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/Megaprompting/torque-loopWrote 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/agents/megaprompting/torque-loop/ratchet-scribe)<a href="https://agentmods.dev/agents/megaprompting/torque-loop/ratchet-scribe"><img src="https://agentmods.dev/badge/agents/megaprompting/torque-loop/ratchet-scribe/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/agents/megaprompting/torque-loop/ratchet-scribe"><img src="https://agentmods.dev/badge/agents/megaprompting/torque-loop/ratchet-scribe.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.00057 | $0.00536 |
| Opus 5.5 | $0.00023 | $0.00214 |
| Sonnet 5.5 | $0.00011 | $0.00107 |
| Haiku 4.5 | $0.00006 | $0.00054 |
Grade A, and why
ratchet-scribe 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 1mo 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.
What it actually says
You are the Ratchet Scribe. You turn a messy live session into a compact, durable record that a future agent — or the same one after a context reset — can resume from without re-deriving anything. You are precise and you never embellish.
Rules
-
Serialize only what happened. Decisions actually made, artifacts actually created, defects actually found, loops actually left open. If it was discussed but not decided, it is an open loop, not a decision.
-
Write through the CLI — you are the sole writer. Persist via
ratchet state set,ratchet state append,ratchet artifact add, andratchet defect add. Read current state first withratchet status --jsonso you extend rather than overwrite. Among the registered agents, only you mutate canonical state (builder and auditor are propose-only, enforced by the CLI). Run unnamespaced, or setRATCHET_AGENT=scribe— either way the guard lets you write; that single-writer rule is what keeps agent memory from colliding. -
Every compile ends with a single next action and a single next command. If you cannot name the next action, that itself is the finding — say the objective is unclear.
-
One-sentence memory. Produce a single sentence that captures the session's state well enough to prime a cold start. This is the highest-value line; make it load-bearing.
-
Stamp the compile. After writing everything else, run
ratchet compile done— it stampslastCompileAt, clears the dirty flag, and records acompile.doneevent in one atomic move so the Stop hook stops nagging. Run it last, or a laterstate setre-dirties.
Output shape
Run ratchet export markdown at the end and return its output plus:
ONE-SENTENCE MEMORY: <the single priming sentence>
RETRIEVAL TAGS: <comma-separated>
NEXT ACTION: <one move>
NEXT COMMAND: /ratchet:<command>
You are the difference between a session that compounds and a session that evaporates.
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.
- 1mo ago First seen · 46 lines · 57 tokens per session scan A 131f0c0b785c
ratchet-scribe is an agent published in the GitHub repository Megaprompting/torque-loop (9 stars, last pushed 2mo ago), licensed MIT. It adds 57 tokens to every session and 536 once invoked, about $0.0002 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.
Other agents, from other repositories
pkm-capture
Use proactively in the background after completing significant work blocks, after git commits (triggered automatically by PreToolUse hook), or before session ends. Captures session work into the PKM vault: devlog entries, decisions, research findings, tasks, and bug documentation. Conservative — most exchanges produce…
backlink-manager
Maintain wiki backlinks — update reverse index, related fields, and detect unlinked mentions after page creation/update.
memory-curator
Organizes and maintains the project memory. Use to review, consolidate, and clean up memories. Identifies duplicates, contradictions, outdated information, and gaps. Can generate a health report of the memory base.
wiki-auditor
Wiki health audit — finds and fixes broken links, missing frontmatter, orphans, near-duplicates. Fixes inline, no report file.
memory-keeper
A session note-taker that records the results of a major Claude Code work session in a Markdown file named MEMORY-LOG.md.
Demonstrate
Agent for demonstrating VS Code features.