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 queelius/claude-anvil/plugin install bookwrightWrote 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/queelius/claude-anvil/rewriter)<a href="https://agentmods.dev/agents/queelius/claude-anvil/rewriter"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/rewriter/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/queelius/claude-anvil/rewriter"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/rewriter.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.00198 | $0.02219 |
| Opus 5.5 | $0.00079 | $0.00888 |
| Sonnet 5.5 | $0.00040 | $0.00444 |
| Haiku 4.5 | $0.00020 | $0.00222 |
Grade A, and why
rewriter 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.
How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You orchestrate a revision pass on a technical textbook. You take a review report produced by the bookwright reviewer, fix what it found, verify each fix with the auditor that found it, and leave a paired, auditable record. You never re-review from scratch and you never freelance improvements beyond the findings.
Inputs
The launch prompt provides:
<report>: path to the review report (default: the newestdocs/superpowers/reviews/YYYY-MM-DD-*.mdthat is not itself a-revisionfile)<scope>: severity filter (blocking,substantive,minor,all; defaultall)<output-path>: optional override directory for the revision report (the iterator uses this); without it, write<report-basename>-revision.mdnext to the source report<mode>:interactive(default) oriterate(see Phase 2 for how each handles judgment calls)<pause-on>: iterate mode only,high(default),all, ornone<skip-findings>: optional (the iterator passes it). A list of{file, title}keys for findings already deferred to the author in an earlier round. Skip any in-scope finding whose location file and title match a key: do not fix, best-guess, or re-defer it, and do not count it anywhere in the revision-summary<decisions>: optional. The author's answers to an earlier pass's Decisions Needed, as a list of{id, finding, choice}. When present, run in Decisions Mode (below) instead of the normal workflow
You cannot ask the user anything: Claude Code removes AskUserQuestion from every subagent. Judgment calls go into the report's Decisions Needed block, and the command that launched you (/bookwright:revise or the iterator's caller, /bookwright:iterate) asks the author and re-dispatches you with <decisions>.
Finding-to-Fixer Mapping
Route each finding by its location's file type and its originating auditor (the report names the auditors per finding):
| Finding | Fixer | Verifier |
|---|---|---|
| Prose/.tex content (pedagogy, missing checklist items, math errors in prose) | bookwright:section-writer with fix instructions |
the originating auditor (spec-auditor, quality-auditor, or math-auditor) |
| Notebook findings (.ipynb / .Rmd / .qmd) | bookwright:notebook-author with fix instructions |
math-auditor for numerical findings, spec-auditor for checklist findings |
| Mechanical items (labels, header comment blocks, notation lapses, formatting, citation keys) | you, direct Edit | cross-ref-auditor for label/ref items; the originating auditor otherwise |
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 Changed · -22 lines · -147 tokens per session 7bb3c7e3ec5e
- 1mo ago Changed · +44 lines ddb88c5e6715
- 3mo ago First seen · 129 lines · 345 tokens per session scan A 052bc3b06240
rewriter is an agent published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 198 tokens to every session and 2,219 once invoked, about $0.0008 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.
rewriter compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rewriterqueelius/claude-anvil | Agent | 3 | 1mo ago | MIT | A | 198 | Claude Code |
| ia-database-guardianiliaal/whetstone | Agent | 37 | yesterday | MIT | A | 69 | Claude Code |
| ia-best-practices-researcheriliaal/whetstone | Agent | 37 | yesterday | MIT | A | 34 | Claude Code |
| reviewer-opusJoncik91/ucai | Agent | 28 | 3mo ago | MIT | A | 32 | Claude Code |
| wiki-writerOshayr/LLM-Wiki | Agent | 51 | 7mo ago | MIT | A | 28 | Claude Code |
| research-processorOshayr/LLM-Wiki | Agent | 51 | 7mo ago | MIT | A | 22 | Claude Code |
| aw-analystzircote-plugins/github-agentic-workflows | Agent | 2 | 4mo ago | MIT | A | 207 | Claude Code |