update-docs

A command for bringing human-written documentation in line with the current code. It finds documentation related to recent changes or topics you specify, then updates the relevant Markdown files.

In plain words
What is it for?
Use it after code or configuration changes to identify and update affected README files and other project documentation.
Why use it?
It reduces the risk that documentation describes old behavior, outdated files, or features the project no longer has.

Command

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 commands/manhua-man/harness-coding-protocol/update-docs
Clone the repo
git clone --depth 1 https://github.com/manhua-man/harness-coding-protocol
Per session 1 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,443 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.00001 $0.01443
Opus 5 $0.00000 $0.00722
Sonnet 5 $0.00000 $0.00289
Haiku 4.5 $0.00000 $0.00144

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

Security

Grade A, and why

update-docs 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 2d 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.

ai-ide/commands/update-docs.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Documentation Update

Sync human documentation with implementation reality: $ARGUMENTS

Two jobs:

  1. Discovery — By default, infer candidate markdown from recent git changes; when the user names a topic or paths, follow the user first.
  2. Writing — For each file in scope, apply document types, layout, and doc-governance rules below.

Not in scope: replacing AGENTS.md / CLAUDE.md (use /revise-ai-docs or /project-ai-docs-steward). No spec-kit phase percentages or specs/ trees unless the repo actually uses them.

Change discovery (default on)

Priority: user $ARGUMENTS (topic, paths, module names) over git inference below.

  1. Git signals — Recent commits touching *.md; unstaged/staged git diff --name-only for markdown and for code/config that may invalidate docs.
  2. Direct hits — Any .md already in the diff goes on the candidate list.
  3. Path association — When code under a directory changed, check human docs that usually describe that area (nearby README, related docs/ pages, package-level readme). Do not blind find of every markdown file. An optional local mapping table in the target repo (e.g. steering/docs-path-map.md or a project copy of this command) may narrow this step — mapping tables stay in the app repo, not in this protocol command.
  4. Keyword search (narrow) — From changed files, extract module names, endpoints, env vars, script names; search only docs/** and mapped doc paths with rg/grep. Skip repo-wide sweeps when the user narrowed scope.
  5. Fact check — Commands, ports, paths against AGENTS.md and the live tree; human docs do not override AI truth.

If the user named specific files or a topic, skip broadening search beyond that scope plus obvious cross-links.

Human docs/** and README.md are background; they do not override AGENTS.md / CLAUDE.md.

Doc layers (typical repo — skip missing paths)

Layer Common path Role
AI truth · Facts AGENTS.md Facts; one-line link only when adding a new entry point
AI truth · Protocol CLAUDE.md Protocol; not bulk-edited here
Scoped overrides steering/**, .kiro/steering/**, etc. When present
Human long-form docs/** Architecture, modules, runbooks
Entry README.md Navigation; no duplicating AGENTS.md tables

Read the full file on GitHub · 94 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. 2d ago First seen · 94 lines · 0 tokens per session scan A 32e0f79ecf58

Subscribe to this mod's changes

update-docs is a command published in the GitHub repository manhua-man/harness-coding-protocol (5 stars, last pushed 2d ago), licensed MIT. It adds 1 tokens to every session and 1,443 once invoked, about $0.0000 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.