Borrowing it
Nothing to install: this file belongs to bredmond1019/claude-sdk-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bredmond1019/claude-sdk-rs/main/.claude/commands/sync-global-commands.mdgit clone --depth 1 https://github.com/bredmond1019/claude-sdk-rsWrote 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/bredmond1019/claude-sdk-rs/sync-global-commands)<a href="https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/sync-global-commands"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/sync-global-commands/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/bredmond1019/claude-sdk-rs/sync-global-commands"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/sync-global-commands.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.00034 | $0.00911 |
| Opus 5.5 | $0.00014 | $0.00364 |
| Sonnet 5.5 | $0.00007 | $0.00182 |
| Haiku 4.5 | $0.00003 | $0.00091 |
Grade A, and why
sync-global-commands 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 11d 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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
sync-global-commands — Sync harness commands to global install
Installs all harness commands from .claude/commands/ into ~/.claude/commands/,
excluding the brain/ reference directory.
Instructions
-
Guard — confirm you are in the base-template root.
Run:
test -f .claude/workflows/sdlc-flow.js && echo "Guard: OK — running from base-template root" || echo "ABORT: .claude/workflows/sdlc-flow.js not found. Run this command from the base-template root."If the guard fails (file not found), stop immediately and tell the user:
"sync-global-commands must be run from the base-template root directory (the directory that contains
.claude/workflows/sdlc-flow.js). Please cd to that directory and try again." -
Count before — record current state of
~/.claude/commands/.Run:
COUNT_BEFORE=$(find ~/.claude/commands -name "*.md" 2>/dev/null | wc -l | tr -d ' ') echo "Before: $COUNT_BEFORE .md files in ~/.claude/commands/" -
Sync — install commands globally.
Run:
rsync -av --delete --exclude='brain/' .claude/commands/ ~/.claude/commands/This:
- Copies the contents of
.claude/commands/(trailing slash) into~/.claude/commands/. --deletepropagates removals and renames (stale files are removed from global).--exclude='brain/'ensures brain-scoped reference commands are never installed globally.
- Copies the contents of
-
Verify — confirm sync is complete (dry run shows nothing to do).
Run:
LEFTOVER=$(rsync -n --delete --exclude='brain/' .claude/commands/ ~/.claude/commands/ 2>&1) if echo "$LEFTOVER" | grep -qE '^(deleting |>f)'; then echo "WARN: dry run reports pending changes — sync may not be complete:" echo "$LEFTOVER" else echo "Verify: OK — dry run reports nothing to do" fi -
Report — show before/after counts and confirm brain/ is absent from global.
Run:
COUNT_AFTER=$(find ~/.claude/commands -name "*.md" 2>/dev/null | wc -l | tr -d ' ') echo "After: $COUNT_AFTER .md files in ~/.claude/commands/" if [ -d ~/.claude/commands/brain ]; then echo "FAIL: brain/ is present in ~/.claude/commands/ — it should not be there." else echo "brain/ not in global: OK" fi echo "" echo "Sync complete. Before: $COUNT_BEFORE After: $COUNT_AFTER"
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.
- 11d ago First seen · 92 lines · 34 tokens per session scan A c816242c9c17
sync-global-commands is a command published in the GitHub repository bredmond1019/claude-sdk-rs (23 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 911 once invoked, about $0.0001 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-10-26.
sync-global-commands compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-global-commandsbredmond1019/claude-sdk-rs | Command | 23 | 1mo ago | Apache-2.0 | A | 34 | Claude Code |
| synccygaco/master-console | Command | 111 | 17d ago | AGPL-3.0 | A | 26 | Claude Code |
| opsx-apply-resumehmj1026/dhpk | Command | 2 | yesterday | MIT | A | 65 | Claude Code |
| cleanOWWZO/ai-agent | Command | 206 | 18d ago | none | A | 14 | Claude Code |
| configOWWZO/ai-agent | Command | 206 | 18d ago | none | A | 29 | Claude Code |
| accessibility-setupgonzalezpazmonica/savia | Command | 49 | today | MIT | A | 21 | Claude Code |
| context-defergonzalezpazmonica/savia | Command | 49 | today | MIT | A | 25 | Claude Code |