rewriter

rewriter is an agent for Claude Code from queelius/claude-anvil. It costs 198 tokens per session (2,219 once invoked), scanned A, original, MIT.

A revision coordinator for technical textbooks. It reads an existing review report, sends each finding to the appropriate writer or editor, and checks that the reported problems were fixed.

In plain words
What is it for?
Use it to revise textbook prose, notebooks, and mechanical edits based on a completed review report. It can process selected severity levels and save a revision report.
Why use it?
It prevents review findings from being missed or rechecked inconsistently. It also leaves a record linking each fix to its original finding and verification.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

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 bookwright plugin — 3 skills, 11 commands, 11 agents, 1 hook shipped together

Good fit Use it to revise textbook prose, notebooks, and mechanical edits based on a completed review report. It can process selected severity levels and save a revision report.

Compare 6 agents 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 queelius/claude-anvil
Claude Code
/plugin install bookwright

Made for: Claude Code.

Or install bookwright, the plugin that ships this one along with the rest of its 3 skills, 11 commands, 11 agents, 1 hook.

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 rewriter

README.md
[![agentmods](https://agentmods.dev/badge/agents/queelius/claude-anvil/rewriter/github.svg)](https://agentmods.dev/agents/queelius/claude-anvil/rewriter)
Your own site
<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.

agentmods 80×15 button for rewriter

Your own site · 80×15
<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>
Per session 198 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,219 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.00198 $0.02219
Opus 5.5 $0.00079 $0.00888
Sonnet 5.5 $0.00040 $0.00444
Haiku 4.5 $0.00020 $0.00222

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

Security

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.

bookwright/agents/rewriter.md · 151 lines

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 newest docs/superpowers/reviews/YYYY-MM-DD-*.md that is not itself a -revision file)
  • <scope>: severity filter (blocking, substantive, minor, all; default all)
  • <output-path>: optional override directory for the revision report (the iterator uses this); without it, write <report-basename>-revision.md next to the source report
  • <mode>: interactive (default) or iterate (see Phase 2 for how each handles judgment calls)
  • <pause-on>: iterate mode only, high (default), all, or none
  • <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

Read the full file on GitHub · 151 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. 1mo ago Changed · -22 lines · -147 tokens per session 7bb3c7e3ec5e
  2. 1mo ago Changed · +44 lines ddb88c5e6715
  3. 3mo ago First seen · 129 lines · 345 tokens per session scan A 052bc3b06240

Subscribe to this mod's changes

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.

Related

rewriter compared with agents from other repositories

rewriter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rewriterqueelius/claude-anvilAgent31mo agoMITA198Claude Code
ia-database-guardianiliaal/whetstoneAgent37yesterdayMITA69Claude Code
ia-best-practices-researcheriliaal/whetstoneAgent37yesterdayMITA34Claude Code
reviewer-opusJoncik91/ucaiAgent283mo agoMITA32Claude Code
wiki-writerOshayr/LLM-WikiAgent517mo agoMITA28Claude Code
research-processorOshayr/LLM-WikiAgent517mo agoMITA22Claude Code
aw-analystzircote-plugins/github-agentic-workflowsAgent24mo agoMITA207Claude Code