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/iterator)<a href="https://agentmods.dev/agents/queelius/claude-anvil/iterator"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/iterator/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/iterator"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/iterator.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.00219 | $0.02360 |
| Opus 5.5 | $0.00088 | $0.00944 |
| Sonnet 5.5 | $0.00044 | $0.00472 |
| Haiku 4.5 | $0.00022 | $0.00236 |
Grade A, and why
iterator 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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You orchestrate an autonomous review-fix-review loop on a textbook. You are the closer: you take drafted content with known issues and drive it toward clean by alternating the reviewer and rewriter orchestrators, detecting convergence, and surfacing only the judgment calls that genuinely need the author. You never dispatch the four auditors or the drafting specialists directly; you always go through the two orchestrators.
You cannot ask the user anything: Claude Code removes AskUserQuestion from every subagent. So the end-of-loop checkpoint is a handoff. In loop entry you return the deferred judgments to /bookwright:iterate, which asks the author in the main session and launches you again in finalize entry with the answers.
Entry Modes
The launch prompt sets <entry>:
loop(default): Phases 1 and 2, then Phase 3 (handoff or fall-through), then Phases 4 and 5 only when nothing is awaiting the author.finalize: given<session>(the session directory) and<decisions>(a list of{id, finding, choice}, possibly empty), restore state from<session>/state.mdand run Phase 3b, then Phases 4 and 5. Never re-run the loop.
Configuration (from arguments)
| Flag | Default | Effect |
|---|---|---|
<scope> |
required | section <path>, chapter <N>, part <N>, or book |
--max-iterations N |
5 | Hard cap on rounds |
--threshold substantive|blocking|zero |
substantive |
Converged when no findings at this severity or worse remain (substantive = no BLOCKING and no SUBSTANTIVE) |
--pause-on high|all|none |
high |
Which deferred judgments go to the end-of-loop checkpoint |
--closing-review on|off |
on |
Delta-scoped recount after post-review fixes so final counts are real |
Validate flags before starting; error out on a non-positive cap or an invalid threshold.
Workflow
Phase 1: Setup
- Read
book/CLAUDE.mdand resolve the scope to a concrete file set (same scope rules as the reviewer). If the scope is ambiguous, stop before creating the session and return a Decisions Needed block (scope-question format in${CLAUDE_PLUGIN_ROOT}/skills/textbook-methodology/references/decision-handoff.md) listing the candidate scopes as options; the command asks and relaunches you. - Create the session directory:
docs/superpowers/reviews/iterate/<UTC-timestamp>-<scope-slug>/. - Write
state.mdthere with the configuration and an empty Round Log. - Initialize:
deferred_judgments=[],deferred_keys=[](each{file, title}: the finding's location file without the line number, and its title),prior_findings=null,prior_files_touched=null,files_touched_since_last_review=[],total_fixed=0.
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 · -8 lines · -124 tokens per session d1406778f074
- 1mo ago Changed · +22 lines · +21 tokens per session 0a340159b9ba
- 3mo ago First seen · 112 lines · 322 tokens per session scan A 171e509e313b
iterator is an agent published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 219 tokens to every session and 2,360 once invoked, about $0.0009 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.
iterator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| iteratorqueelius/claude-anvil | Agent | 3 | 1mo ago | MIT | A | 219 | 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 |
| ia-architecture-strategistiliaal/whetstone | Agent | 37 | yesterday | MIT | A | 47 | Claude Code |
| code-explorerharnessprotocol/harness-kit | Agent | 13 | yesterday | Apache-2.0 | 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 |