Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/w2ur/claude-code-setupnpx agentmods add commands/w2ur/claude-code-setup/sync-setupWrote 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.
[](https://agentmods.dev/commands/w2ur/claude-code-setup/sync-setup)<a href="https://agentmods.dev/commands/w2ur/claude-code-setup/sync-setup"><img src="https://agentmods.dev/badge/commands/w2ur/claude-code-setup/sync-setup/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.
<a href="https://agentmods.dev/commands/w2ur/claude-code-setup/sync-setup"><img src="https://agentmods.dev/badge/commands/w2ur/claude-code-setup/sync-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.02016 |
| Opus 5.5 | $0.00020 | $0.00806 |
| Sonnet 5.5 | $0.00010 | $0.00403 |
| Haiku 4.5 | $0.00005 | $0.00202 |
Grade A, and why
sync-setup 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.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sync the claude-code-setup repo from the live ~/.claude/ configuration.
The rule that governs every step below
The arrow only points one way: ~/.claude/ → the repo. Everything under
commands/, agents/, skills/, hooks/, mods/ and claude-scripts/ is generated,
so fixing something by editing the repo's copy accomplishes nothing — the next
sync reverts it. sync.py refuses
(exit 2) when a destination matches neither the incoming content nor HEAD,
which is what a hand edit looks like; --allow-dirty discards them on purpose.
The same applies to the SYNC-PRIVATE markers (the BEGIN / END pair), which
drop a private section from the published copy: they belong in the live
file, never in the repo. Every run reports how many regions it removed and
from where — if that count drops unexpectedly, a marker was lost in an edit to
the live source. Note this file deliberately never spells the pair out
contiguously: it is a sync SOURCE, so a literal marker here would be read as a
real one. scripts/README.md in the repo is owner-maintained, never synced, and
carries the full syntax.
Owner-maintained files are the exception and are never synced: README.md,
docs/, hooks/README.md, claude-scripts/README.md, root-level files.
Step 1: Run sync.py
cd ~/Dev/claude-code-setup && ./scripts/sync.py $0
If $0 is --dry-run or --audit-only, stop after this step.
If it exits 2 refusing to overwrite hand edits, do not reach for
--allow-dirty first. Read the named files: the change they carry is usually
one that belongs in ~/.claude/, and porting it there is the fix.
If it exits 1, the audit gate found a pattern that must not be published, and
nothing gets committed. A hit in the would-be output means nothing was
written; a hit after writing prints DO NOT COMMIT. Fix the live source (a
private region, a replacement or a skip entry in the gitignored config) and
re-run. --dry-run runs the same audit, so it exits 1 on a hit too. Never
reach for --allow-audit-warnings without reading every hit with the owner.
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.
- 2d ago Changed f4c8121ed58d
- 24d ago Changed 43747d79bc63
- 1mo ago Changed · +7 lines 3c763bfb03ad
- 1mo ago Changed · -1 lines ccebbc4ce73b
- 1mo ago Changed 480c6fc1c00a
- 1mo ago Changed · +2 lines de21fec13141
- 2mo ago Changed · +5 lines 982728c27cd8
- 2mo ago Changed c3bffc740692
- 2mo ago Changed 9b7a826f1b5a
- 3mo ago First seen · 119 lines · 51 tokens per session scan A 2e333f18fb70
sync-setup is a command published in the GitHub repository w2ur/claude-code-setup (1 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 2,016 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.
sync-setup compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-setupw2ur/claude-code-setup | Command | 1 | yesterday | MIT | A | 51 | Claude Code |
| costsFlorianBruniaux/claude-code-plugins | Command | 47 | yesterday | MIT | A | 11 | Claude Code |
| dashboardFlorianBruniaux/claude-code-plugins | Command | 47 | yesterday | MIT | A | 11 | Claude Code |
| webFlorianBruniaux/claude-code-plugins | Command | 47 | yesterday | MIT | A | 6 | Claude Code |
| loopskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 28 | Claude Code |
| executeskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 28 | Claude Code |
| dashboardskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 22 | Claude Code |