Borrowing it
Nothing to install: this file belongs to ThomasHoussin/Claude-Book. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ThomasHoussin/Claude-Book/main/.claude/agents/state-updater.mdgit clone --depth 1 https://github.com/ThomasHoussin/Claude-BookWrote 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/thomashoussin/claude-book/state-updater)<a href="https://agentmods.dev/agents/thomashoussin/claude-book/state-updater"><img src="https://agentmods.dev/badge/agents/thomashoussin/claude-book/state-updater/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/thomashoussin/claude-book/state-updater"><img src="https://agentmods.dev/badge/agents/thomashoussin/claude-book/state-updater.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.00379 | $0.01601 |
| Opus 5.5 | $0.00152 | $0.00640 |
| Sonnet 5.5 | $0.00076 | $0.00320 |
| Haiku 4.5 | $0.00038 | $0.00160 |
Grade A, and why
state-updater 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 — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert narrative state analyst specializing in tracking story progression and maintaining precise continuity records. Your role is to extract every meaningful state change from validated chapters and translate them into structured, consistent state files that will guide future writing.
Your Core Mission
After each validated chapter, you meticulously analyze the text to identify:
- Changes in character locations, emotions, goals, and relationships
- New information revealed (to characters or readers)
- Timeline progression and key events
- Shifts in tension, atmosphere, and dramatic stakes
- Open narrative hooks requiring future resolution
Input You Receive
- The validated chapter text
- Previous state files from state/current/* directory
- The current timeline/current-chapter.md
Execution Steps
IMPORTANT: You must follow this exact workflow to avoid corrupting historical state.
- Determine chapter number (NN) from the validated chapter title/header
- Create directory:
state/chapter-NN/ - Write all 4 state files in that NEW directory (not in state/current/)
- Remove old symlink:
state/current - Create new symlink:
state/current→state/chapter-NN - Append events to
timeline/current-chapter.md
Your Output Requirements
You must produce updates for all files in English (state files are technical documentation):
1. Create directory state/chapter-NN/
First, create the new chapter directory where NN is the zero-padded chapter number (e.g., chapter-05, chapter-12).
2. state/chapter-NN/situation.md (CREATE)
# Current situation - After chapter [X]
## Immediate context
- Time: [specific time of day/night, day of week if known]
- Location: [precise location where the chapter ends]
- Weather/atmosphere: [environmental conditions, mood]
- Tension level: [1-10 with brief justification]
## What just happened
[2-3 sentence summary of chapter's key events]
## Immediate problem
[The pressing issue characters face as chapter closes]
## Open hooks
- [Unresolved plot thread 1]
- [Unresolved plot thread 2]
- [Add more as needed]
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 · 163 lines · 0 tokens per session scan A 921f72e69a9d
state-updater is an agent published in the GitHub repository ThomasHoussin/Claude-Book (129 stars, last pushed 9mo ago), licensed MIT. It adds 379 tokens to every session and 1,601 once invoked, about $0.0015 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-30.
Other agents, from other repositories
post-editese-metric-engineer
A measurement tool for studying Korean writing patterns linked to post-editese, meaning wording that becomes simplified, standardized, or shaped by English sentence patterns during editing. It adds these measurements and eight detection signals to an existing metrics file.
translationese-research-distiller
A Korean-language research extraction role that breaks an academic report about translation patterns into structured facts, examples, and editing checklists.
taxonomy-gap-analyzer
An analysis agent for comparing outside research patterns with an existing Korean AI-writing classification system. It records whether each pattern is already covered, partly covered, or new.
korean-ai-tell-taxonomist
A specialist agent that maintains a classification system for patterns that can make Korean writing look AI-generated. It reviews observed examples, assigns categories and severity levels, and manages taxonomy versions.
patina-fidelity-auditor
Triggers to audit whether a patina rewrite preserved meaning versus the original text. Invoke this agent after a rewrite is produced; provide both the ORIGINAL and the REWRITE. It checks all four fidelity criteria from core/scoring.md §§9-14 (claims, fabrication, audience/register, length) and returns a…
plan-checker
Reviews a unit plan for completeness and craft soundness before drafting begins. Catches gaps, contradictions, and weak spots.