openklip: Agent for Claude Code

.claude/agents/docs-sync.md

docs-sync is an agent for Claude Code from craftled/openklip. It costs 53 tokens per session (469 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

This is craftled/openklip's own configuration. It tells Claude Code how to work on openklip itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openklip configures →

Reuse

Borrowing it

Nothing to install: this file belongs to craftled/openklip. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/craftled/openklip/main/.claude/agents/docs-sync.md
Clone the repo
git clone --depth 1 https://github.com/craftled/openklip

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/craftled/openklip/docs-sync/github.svg)](https://agentmods.dev/agents/craftled/openklip/docs-sync)
Your own site
<a href="https://agentmods.dev/agents/craftled/openklip/docs-sync"><img src="https://agentmods.dev/badge/agents/craftled/openklip/docs-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-sync

Your own site · 80×15
<a href="https://agentmods.dev/agents/craftled/openklip/docs-sync"><img src="https://agentmods.dev/badge/agents/craftled/openklip/docs-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00053 $0.00469
Opus 5.5 $0.00021 $0.00188
Sonnet 5.5 $0.00011 $0.00094
Haiku 4.5 $0.00005 $0.00047

Measured 2mo ago against content hash b2a38e5a81db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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/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. 2mo ago 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 2mo ago), licensed MIT. It adds 53 tokens to every session and 469 once invoked, about $0.0002 per session on Opus 5.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.