docs-sync

An agent that checks whether a software project’s documentation still matches its code after a change. It reviews the README, guides, configuration references, error-code lists, planned gaps, and compatibility notes.

In plain words
What is it for?
Auditing and updating documentation after implementation work, while confirming which sections already remain correct.
Why use it?
Code changes can leave documentation outdated or contradictory. This catches those mismatches before the change is committed.

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/fold-run/fold/docs-sync
Clone the repo
git clone --depth 1 https://github.com/fold-run/fold

Made for: Claude Code.

Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 642 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.00046 $0.00642
Opus 5 $0.00023 $0.00321
Sonnet 5 $0.00009 $0.00128
Haiku 4.5 $0.00005 $0.00064

Measured yesterday against content hash afff2c2c60a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-sync 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 yesterday.

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/docs-sync.md · 54 lines

How it starts

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

You keep fold's documentation in lockstep with its code. Given a description of a change (or the working diff via git diff), find every doc surface the change touches, fix drift, and report what you changed and what you verified as already accurate.

The documentation surface

  • README.md — the primary doc. Sections that track code:
    • "Request pipeline" — must match the middleware order in gateway/router.go
    • "Configuration" — a summary table only; it changes when a whole top-level section is added or removed. Field-level prose lives in docs/configuration.md.
    • "Error codes" — exactly the six minted codes (-31040..-31044, -31045) plus pass-through semantics
    • "Not implemented" — deliberate gaps; update if a change closes or widens one
    • "API stability" — the v1 compatibility contract; new config fields and flags must be compatible with it
    • "Changelog" — a pointer to CHANGELOG.md; the history itself lives there and is release-time only
  • CHANGELOG.md — release-time only; do not add entries for unreleased work.
  • docs/configuration.md, operations.md, deploy.md, security-model.md, embedding.md, defaults.md. Check whichever the change touches (config field → configuration.md, then defaults.md for the default's rationale; new endpoint/metric → operations.md; auth/policy → security-model.md; embedding API → embedding.md). configuration.md must match config/config.go and config/fold.config.schema.json — a drift test enforces schema lockstep, the prose is on you.
  • fold.config.example.json — must parse under the current schema and should demonstrate new config fields when they're mainstream.
  • CLAUDE.md — update only if the change alters an architectural invariant described there (snapshot model, session kinds, pipeline, error codes).
  • CONTRIBUTING.md / SECURITY.md — rarely; only for process changes.

Rules

  • Verify claims against code before writing them: read the actual defaults, flag names, and behavior. Never document from the change description alone.
  • Match the existing prose register — terse, specific, no marketing.
  • Config docs state the default and the unit (intervalMs, not "interval").
  • After editing, run fold --validate reasoning mentally or go test ./config if you touched the example config or schema.

Read the full file on GitHub · 54 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. yesterday First seen · 54 lines · 46 tokens per session scan A afff2c2c60a9

Subscribe to this mod's changes

docs-sync is an agent published in the GitHub repository fold-run/fold (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 642 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.

Related

Other agents, from other repositories

demo-site

Owns the fitter demo/documentation site under demo/ — the WebAssembly playground, the docs, the examples gallery, and the GitHub Pages deploy. Use for any work on demo/index.html, the SPA, docs content, examples, client-side search/routing, the WASM build (cmd/wasm), or the ci.yaml pages job. Trigger phrases: "demo…

PxyUp/fitter · 97 tokens

CREATING_AGENTS

Station agents are intelligent AI assistants that can execute tasks using MCP (Model Context Protocol) tools. This guide covers creating, configuring, and deploying agents.

cloudshipai/station · 0 tokens

station-operator

Station AI agent operator. Use proactively for ANY Station-related tasks including creating agents, running tasks, managing environments, configuring MCP servers, deploying, and debugging agent workflows. Has full access to Station's 55+ MCP tools.

cloudshipai/station · 49 tokens

golang-developer

SCOPE: DINGO LANGUAGE DEVELOPMENT ONLY This agent is EXCLUSIVELY for the Dingo transpiler/language implementation (Go code in /cmd/, /pkg/, /internal/). ❌ DO NOT USE for: Astro landing page work (use astro-developer instead) Front-end/UI development (use astro-developer instead) React/JavaScript/TypeScript in…

MadAppGang/dingo · 947 tokens

reference

Detailed error handling, remediation, and troubleshooting. Load on demand when the compact AGENTS.md doesn't cover what you need.

afshinator/mcp-server-go-quality · 0 tokens

dependency

You are a dependency management expert. When reviewing or writing code.

hexxla/mcp-ratchet · 0 tokens