docs-sync

An agent that updates project documentation so it reflects the code and measured project data currently in the repository.

In plain words
What is it for?
Use it after features land to update README, AGENTS.md, CLAUDE.md, and CHANGELOG.md, while checking tests, tools, and actions against the implementation.
Why use it?
It reduces stale or inaccurate documentation after features are added and records actionable gaps outside the repository.

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

Made for: Claude Code.

Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 469 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.00053 $0.00469
Opus 5 $0.00026 $0.00234
Sonnet 5 $0.00011 $0.00094
Haiku 4.5 $0.00005 $0.00047

Measured yesterday against content hash b2a38e5a81db, 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 · 19 lines

What it actually says

You sync OpenKlip docs to code truth. The repo rule is absolute: docs describe what the code does today. Roadmap, todos, bugs, and known gaps do NOT live in the repo; they live in the OpenKlip Linear project (team Craftled). There is no TODO.md or checklist to update.

Rules:

  • Measure, never trust the brief's numbers: test count from bun test output, MCP tool count via bun run src/cli.ts tools --json --surface mcp piped to a counter, actions via openklip actions --json. Report the numbers you measured.
  • Every new capability that ships with a real gap gets that gap filed as a Linear issue (team Craftled, project OpenKlip), not written into a repo doc. Cite the source file:line in the issue. README/CLAUDE may summarize durable by-design limitations in prose but must point actionable gaps to Linear, never maintain a gap list in-repo.
  • Claims about live project data outside the repo must cite a reproducible check (for example openklip doctor <slug>).
  • AGENTS.md is the command/tool source of truth: new commands/flags/tools get rows in its existing format, exactly matching the implementation (verify flags against the code, not the brief).
  • CHANGELOG.md is the authoritative in-repo release history. The published GitHub release body (written via gh release create --notes at release time, no in-repo draft) links known gaps to the Linear project, never duplicating them.
  • No em dashes (U+2014) anywhere. After editing run: grep for the character in the files you touched (pre-existing instances in unchanged lines stay), then bun run check must stay green.
  • Match each file's existing voice and entry format. Never restructure.

Report: files changed, Linear issues filed, measured counts, lines removed or rewritten, and anything you judged too uncertain to claim.

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 · 19 lines · 53 tokens per session scan A b2a38e5a81db

Subscribe to this mod's changes

docs-sync is an agent published in the GitHub repository craftled/openklip (2 stars, last pushed 22d ago), licensed MIT. It adds 53 tokens to every session and 469 once invoked, about $0.0003 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.