Sync CLAUDE.md

Repository instructions for Sync, a system that watches the outside APIs a codebase uses and opens verified pull requests when those APIs change, fail, or cost more than necessary.

In plain words
What is it for?
Use them when adding detectors, findings, remediation steps, tests, or other changes related to tracking and maintaining third-party API dependencies.
Why use it?
They keep work centered on the project’s API dependency graph, which connects vendor calls in the code with vendor changes and runtime data.

Instructions file

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 instructions/stroland02/sync/claude-md
Clone the repo
git clone --depth 1 https://github.com/stroland02/Sync
Per session 2,084 This file is loaded in full into every session.
When invoked 2,084 The same file — it is already loaded in full.
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.02084 $0.02084
Opus 5 $0.01042 $0.01042
Sonnet 5 $0.00417 $0.00417
Haiku 4.5 $0.00208 $0.00208

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

Security

Grade A, and why

Sync CLAUDE.md 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.

CLAUDE.md · 156 lines

How it starts

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

Sync

Sync watches the third-party APIs a codebase calls and opens verified pull requests when one breaks, drifts, or wastes money.

The binding is the product. The API Dependency Graph — static call sites joined against vendor changes and runtime telemetry — is what customers pay for. Repair is a feature that proves the binding was right, not the spine. Detectors query the graph and all emit one Finding into one remediation pipeline. Building something that neither reads nor writes that graph? Question it.

Design: docs/superpowers/specs/2026-07-25-sync-self-maintaining-apis-design.md. Positioning: specs/2026-07-25-sync-positioning-and-open-core.md.

The governing principle

Encode a rule where it fails, not where it is read. A rule in prose is enforced by whoever remembers it; a rule in a test, type, lint, schema constraint or hook is enforced always.

Measured in this repository: the conventions that held were machine-enforced. The ones that decayed were prose — seven of twenty-four "protected" console sentences cited deleted files and nothing noticed for two weeks. If you are about to write a paragraph asking the next agent to remember something, write the check instead.

Environment — these will break your session

Python 3.12. The interpreter is python. Never python3 — a Microsoft Store shim that will not run.
Packages uv only. Poetry is not installed.
Database Postgres 16 on port 5433. No admin rights: Docker and WSL2 are unavailable. Embedded cluster at ~/.sync-postgresnpm run no-admin starts it. Does not survive a reboot (B191).
Shell Snippets are POSIX for Git Bash. PowerShell 5.1 has no && — chain with ; if ($?) { }.
GitHub gh, already authenticated.
TypeScript via npx. No vendored compiler.

Never git stash when another worktree may be active. refs/stash is one ref shared across every worktree — two agents each popped the other's stash (2026-08-16). Use git diff or a scratch branch.

Read the full file on GitHub · 156 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 · 156 lines · 2,084 tokens per session scan A 84b602da2a0b

Subscribe to this mod's changes

Sync CLAUDE.md is an instructions file published in the GitHub repository stroland02/Sync (5 stars, last pushed 6d ago), licensed Apache-2.0. It adds 2,084 tokens to every session, about $0.0104 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 instructions, from other repositories