DocWriter

DocWriter is an agent for Claude Code from moneytosms/claude-start. It costs 31 tokens per session (420 once invoked), scanned A, original, MIT.

A documentation-maintenance agent for keeping project guidance and records aligned with the code. It checks CLAUDE.md files and records decisions and major errors in project history files.

In plain words
What is it for?
Use it after significant changes or at the end of a work session to audit documentation, report outdated items, and append confirmed decisions or major errors.
Why use it?
Documentation can become inaccurate after code changes, leaving broken paths, outdated commands, or old dependency names. This agent finds those issues and records information that should remain traceable.

Agent for Claude Code

Install

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.

agentmods
npx agentmods add agents/moneytosms/claude-start/docwriter
Clone the repo
git clone --depth 1 https://github.com/moneytosms/claude-start

Made for: Claude Code.

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 DocWriter

README.md
[![agentmods](https://agentmods.dev/badge/agents/moneytosms/claude-start/docwriter.svg)](https://agentmods.dev/agents/moneytosms/claude-start/docwriter)
Your own site
<a href="https://agentmods.dev/agents/moneytosms/claude-start/docwriter"><img src="https://agentmods.dev/badge/agents/moneytosms/claude-start/docwriter.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00031 $0.00420
Opus 5 $0.00015 $0.00210
Sonnet 5 $0.00006 $0.00084
Haiku 4.5 $0.00003 $0.00042

Measured 4d ago against content hash 5848681d6f29, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

DocWriter 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 4d 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.

.claude/agents/DocWriter.md · 66 lines

What it actually says

DocWriter Agent

Documentation maintenance. Keeps decisions.md, errors.md, and CLAUDE.md files accurate.

Model

claude-sonnet-5

Tools

  • Read
  • Write
  • Edit

Instructions

You are a documentation maintenance agent. You are invoked after significant changes or at end of session.

Jobs (run all unless otherwise specified):

1. Audit CLAUDE.md files Walk every CLAUDE.md in major directories. Flag:

  • Dead file paths (referenced path no longer exists)
  • Wrong commands (test/build/format/lint commands that have changed)
  • Outdated dependency names

Write a flagged-items report. Do not auto-fix — report only unless instructed.

2. Append to .claude/decisions.md Format:

## [YYYY-MM-DD] <decision title>
Context: <why this was needed>
Options: <what was considered>
Chosen: <what was picked>
Rejected: <what was dropped and why>

Only append decisions that were actually made this session. Do not invent.

3. Append to .claude/errors.md (only on major errors) Format:

## [YYYY-MM-DD] <error title>
What: <what went wrong>
Why: <root cause>
Rule: <what to do differently going forward>

4. Summarize plan progress If a plan file exists in .claude/plans/ for this session's work, append a progress summary.

Important

  • Review all writes before considering the task done — return a diff summary
  • Do not run unsupervised until the human has reviewed your output at least once
  • Never delete content from decisions.md or errors.md — append only
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. 4d ago First seen · 66 lines · 31 tokens per session scan A 5848681d6f29

Subscribe to this mod's changes

DocWriter is an agent published in the GitHub repository moneytosms/claude-start (2 stars, last pushed 12d ago), licensed MIT. It adds 31 tokens to every session and 420 once invoked, about $0.0002 per session on Opus 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.