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.01898 |
| Opus 5.5 | $0.00020 | $0.00759 |
| Sonnet 5.5 | $0.00010 | $0.00380 |
| Haiku 4.5 | $0.00005 | $0.00190 |
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 6d 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 — 126 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.
Step 2: Verify stale-file cleanup
sync.py prunes orphans: any file under a synced root
(commands/, agents/, skills/, hooks/, mods/, claude-scripts/) whose live
source has disappeared is deleted on a real run (reported on --dry-run) and listed under
the ── Orphans ── section of the output. Common cases: renamed agents (e.g.,
old architect.md after rename to troubleshooter.md), deleted commands,
removed skills, retired hooks.
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.
- 6d ago Changed 480c6fc1c00a
- 12d ago Changed · +2 lines de21fec13141
- 21d ago Changed · +5 lines 982728c27cd8
- 22d ago Changed c3bffc740692
- 1mo ago Changed 9b7a826f1b5a
- 1mo 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 (2 stars, last pushed 3d ago), licensed MIT. It adds 51 tokens to every session and 1,898 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.
Other commands, from other repositories
loop
Autonomous execution loop. Runs the TDD cycle repeatedly until all tasks in an epic are complete, with circuit breaker protection and PR workflow.
execute
Execute the next available tracked task with TDD, pre-commit validation, PR creation, AI code review, and issue tracker bridge sync.
audit-agents-skills
Audit quality of agents, skills, and commands in a Claude Code project.
land-and-deploy
Merge PR, wait for CI, verify deploy, run canary — the complete landing pipeline.
dashboard
Compact visual progress dashboard with progress bar, task table, dependency graph, and active/blocked/next status.
check-cache-bugs
Audit Claude Code setup for cache bugs (CC#40524) — sentinel, --resume/--continue, attribution header + ArkNill B3/B4/B5.