sync-docs

sync-docs is a command for Claude Code, OpenCode from juliusz-cwiakalski/agentic-delivery-os. It costs 10 tokens per session (8,709 once invoked), scanned A, original, MIT.

A command that updates the system’s current specification documents after an accepted software change has been implemented.

In plain words
What is it for?
Use it to extract delivered features, finalized interfaces, system-wide requirements, decisions, and supporting evidence into the current documentation.
Why use it?
It keeps the main documentation aligned with the system that actually exists, so readers do not need to reconstruct the result from old change folders.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: agent in frontmatter; positional $N argument; mentions OpenCode.

Good fit Use it to extract delivered features, finalized interfaces, system-wide requirements, decisions, and supporting evidence into the current documentation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juliusz-cwiakalski/agentic-delivery-os/sync-docs
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.

Clone the repo
git clone --depth 1 https://github.com/juliusz-cwiakalski/agentic-delivery-os

Made for: Claude Code, OpenCode.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/juliusz-cwiakalski/agentic-delivery-os/sync-docs.svg)](https://agentmods.dev/commands/juliusz-cwiakalski/agentic-delivery-os/sync-docs)
Your own site
<a href="https://agentmods.dev/commands/juliusz-cwiakalski/agentic-delivery-os/sync-docs"><img src="https://agentmods.dev/badge/commands/juliusz-cwiakalski/agentic-delivery-os/sync-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,709 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.00010 $0.08709
Opus 5 $0.00005 $0.04355
Sonnet 5 $0.00002 $0.01742
Haiku 4.5 $0.00001 $0.00871

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

Security

Grade A, and why

sync-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 today.

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.

.opencode/command/sync-docs.md · 877 lines

How it starts

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

You are a world-class technical documentation writer that ensures current system specification is up to date after change implementation.

Success: A reader can understand the current system from doc/spec/** without needing the change folder.

<discovery_rules> Locate change folder: search doc/changes/**/*--<workItemRef>--*/ If not found, search: doc/changes/**/chg-<workItemRef>-spec.md Spec file: chg-<workItemRef>-spec.md; derive slug & change.type from frontmatter. Plan file: chg-<workItemRef>-plan.md Folder pattern: doc/changes/YYYY-MM/YYYY-MM-DD--<workItemRef>--<slug>/ </discovery_rules>

<source_extraction> From the change documentation folder for this change (at minimum the change spec and implementation plan, and when present the per-change test plan, execution notes, and examples.json):

  • Functional capabilities (F-#) actually delivered (cross-check against acceptance criteria evidence AC-* PASSED lines).
  • Interfaces (API-#, EVT-#, DM-#) with finalized contracts (omit speculative ones lacking acceptance evidence).
  • NFRs (NFR-#) that modify or add system-wide thresholds.
  • Decision log entries (DEC-#) that affect enduring architecture (copy into ADR if not already recorded; ensure ADR references present).
  • Data model changes (DM-#) confirmed by implementation steps.
  • Telemetry additions (logs, metrics) that become part of observability baseline.
  • Security/privacy changes.

<target_updates> System documentation areas potentially updated:

  1. /doc/spec/features/ — Each enduring behavior mapped to a feature spec file (create or update). File naming: feature-<slug-or-domain>-<short>.md.
  2. /doc/spec/api/ — Update endpoint descriptions. Synchronize with OpenAPI under /doc/contracts/rest/openapi.yaml.
  3. /doc/spec/nonfunctional.md — Merge new/updated NFR thresholds.
  4. /doc/contracts/rest/openapi.yaml & /doc/contracts/events/asyncapi.yaml — Add/modify operations/events.
  5. /doc/contracts/events/schemas/ — Add new payload schema files if events created.
  6. /doc/domain/events-catalog.md — Insert or update domain event descriptions.
  7. /doc/quality/test-specs/ — Ensure test spec entries exist for each acceptance criterion referencing workItemRef.
  8. Cross-links: Update front matter with links.related_changes: ["<workItemRef>"] and link ADRs.

<front_matter_update_rules>

Read the full file on GitHub · 877 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. today First seen · 877 lines · 10 tokens per session scan A c01e9d264259

Subscribe to this mod's changes

sync-docs is a command published in the GitHub repository juliusz-cwiakalski/agentic-delivery-os (37 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 8,709 once invoked, about $0.0001 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-09-07.