Omniscio

OmniscioSubagent examplesDocs writer

A docs writer subagent

Stale documentation is rarely one wrong sentence. It is five pages that all describe the old flag, and the reason nobody fixes them is that finding all five is the expensive part. That search is exactly what a subagent absorbs: it reads the repository, lists the pages, and returns the list of files it changed.

The file below is written to keep the agent on that job and off the code. Its description names the trigger — a command, flag or behaviour that users will notice — so it is not delegated for internal refactors that no reader would ever see.

Checked against Anthropic's Claude Code documentation on November 25, 2026. By the Omniscio team. Updated .

When Claude delegates to it

Claude matches your request and the conversation against the description. The version below uses the boundary that matters for documentation: something a user will notice. A change to an internal helper does not match; a renamed flag does, because the descriptions say so.

Ask for it explicitly when you know the docs are affected: "use the docs-writer subagent, I renamed --out to --output". The transcript shows the delegation and a report of the files changed.

Do not expect it to catch every drift on its own. Automatic delegation is a judgement, so a check that fails when documentation and code disagree is the reliable half, and the agent is what you run when the check points at something.

The file

Save this as .claude/agents/docs-writer.md in the project's .claude/agents/ folder. If your docs live somewhere other than the paths named in the first step of the body, change those lines — they are the difference between an agent that finds every page and one that finds the README.

---
name: docs-writer
description: Updates the README, guide pages and command reference when a command, flag or public behaviour changes, in the repository's existing voice. Use after a change users will notice, not for internal refactors.
tools: Read, Write, Edit, Grep, Glob
model: sonnet
---

You update documentation. You do not change code.

1. Find every page that describes the thing that changed: README.md, docs/, and any command
   reference. Grep for the old name, the old flag and the old example.
2. Read each page in full before editing it. Match the voice, the tense and the heading style that
   are already there. A page that suddenly sounds like a press release is a new problem.
3. Use Edit, never a rewrite. Leave every paragraph you did not need to change exactly as it was.
4. Every command you write must exist in the source, or in the file that defines your scripts. Never add a command you have
   not seen, and never add a claim about performance, cost or support that the code does not show.
5. If a page describes behaviour you cannot find, do not guess: list it in your report as
   unverified, with the page and the claim.
6. Report: the files changed, one line each on what changed and why, and anything you could not
   verify.

What each field does

name

The identifier Claude delegates to, up to 256 characters and without a colon. Hooks receive it as agent_type, so a rule that matches on it follows the name you choose here.

description

The routing rule, and the one line that keeps a writing agent out of code work. It names what it writes, when it applies, and — the useful part — what does not qualify. Descriptions load at every session start, so the excluded case earns its space.

tools

Read, Grep and Glob to find the pages, then Write and Edit to change them. Leaving Bash out keeps the agent from running commands, at the cost of one check: it can confirm a command exists in the task file, but not that it succeeds.

Add Bash if you want it to run each documented command once. That is a real improvement in accuracy and a real widening of what the agent can do, so decide which you want rather than adding it by default.

model

sonnet is a fixed choice: documentation quality is mostly judgement about voice, which a mid-tier model does well, and the cost stays the same whatever model the session is on. Use inherit instead if you run the session on a stronger model and want the writing to match it.

Project file or user file

This is a project agent in almost every case. The paths in the body, the doc layout and the house voice all belong to one repository, and a user-level copy would carry the wrong paths into every other project you open.

  • .claude/agents/ is scoped to the project and is usually committed, which is what you want for a shared writing standard.
  • A project definition outranks a user definition of the same name.
  • Both directories are scanned recursively, and duplicate names in one directory mean only one file loads; /doctor reports it.

Confirm Claude picked it up

  1. No restart needed. Both directories are watched and an edit is picked up within seconds; the exceptions are a folder added with --add-dir and a session started with --disable-slash-commands.
  2. Ask for it by name with the change described in the request, since the agent cannot see what you just did.
  3. /tasks shows the run and its model, which confirms the model line (v2.1.242 or later).
  4. /agents prints a reminder to manage subagents through Claude or by editing the folders; on v2.1.197 and earlier it opened a wizard.
  5. The transcript shows one delegation row, and the report lists the files it changed.

When it goes wrong

  • It rewrites files. A model given Write will use it. The instruction to use Edit and leave untouched paragraphs alone is what keeps a documentation change reviewable; without it, the diff is the whole file.
  • It invents a command or a claim. The rule in step 4 is the guard: every command must exist in the task file or the source, and no performance, cost or support claim the code does not show.
  • It drifts into code. Give it no reason to open a source file for editing, and keep the description narrow. If it does change code, that is a prompt problem you can fix in one line.
  • It asks what changed. It starts fresh with no conversation history: its system prompt, the delegation message, your CLAUDE.md files, a git status snapshot and any skills it preloads. Say what changed in the request.
  • It never launches. A tools list where no entry resolves is usually refused with an error naming the entries.

Adapting it to your repository

  1. List your real doc locations in step 1. The README, the guides folder, the changelog, the example directory — and the one place people forget, the error messages users will search for.
  2. Add a voice rule you actually enforce: second person, no exclamation marks, the product name capitalised. One concrete rule beats "match our style".
  3. Keep the "unverified" list. It is the difference between a writing agent and a confident one.
  4. Pair it with a check that fails when the command reference and the CLI disagree. That turns documentation from a chore into a build failure, and the agent then fixes what the check found.

The other four files are on the subagent examples page. If you want documentation written as a reusable procedure rather than a delegated job, the skills guide covers the other mechanism.

Sources

  • Anthropic's Create custom subagents, for the file format, the frontmatter reference, the tool and model rules, and what a subagent receives at startup, read November 25, 2026.
  • Anthropic's error reference, for the zero-tools refusal, read November 25, 2026.
  • Anthropic's commands reference, for /agents and /tasks, read November 25, 2026.

The file and its rules were written for this site. The fields and their behaviour are Anthropic's and were read from the pages above on the same day. The agent was not run against a live repository here.

Common questions

What should a docs writer subagent have access to?

Read and search tools to find the code and the existing docs, and Write or Edit to change them. Add Bash only if it should run commands to confirm they work; without it the agent can check that a command exists, not that it succeeds.

Why does my docs agent rewrite whole files?

Writing a file is easier than editing one, and a model takes the easy path unless the prompt forbids it. Tell it to use Edit for anything that already exists, keep the voice, and leave untouched paragraphs exactly as they were.

Can a docs writer subagent keep documentation in sync automatically?

It can be asked to, which is not the same as being guaranteed. Delegation is a judgement against the description, so a change that looks like a refactor may never reach the agent. The dependable half is a check that fails when docs and code disagree; the agent fixes what the check found.

Which model should a docs agent use?

One strong enough to match your house voice. sonnet is a reasonable fixed choice if you want documentation to cost the same whatever the session runs on; inherit follows the session instead.

Docs that keep up with the code

Omniscio is a desktop app for running Claude Code and other coding agents side by side, with one list of sessions and one inbox, so an agent only interrupts you when a decision needs you.

The features page lists what is in it today, pricing covers the plans, and you can download it for Windows, macOS or Linux.