sync

A command that pulls dotfiles—configuration files such as shell settings—from a remote repository and applies them to the local computer.

In plain words
What is it for?
Use it to update dotfiles from the remote repository, apply those updates locally, and see which files changed.
Why use it?
It keeps the computer’s configuration up to date without manually fetching and applying each change. It also reports merge conflicts and errors.

Command

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 commands/signalcompose/claude-tools/sync
Clone the repo
git clone --depth 1 https://github.com/signalcompose/claude-tools
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
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.00009 $0.00518
Opus 5 $0.00005 $0.00259
Sonnet 5 $0.00002 $0.00104
Haiku 4.5 $0.00001 $0.00052

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

Security

Grade A, and why

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

plugins/chezmoi/commands/sync.md · 87 lines

What it actually says

Chezmoi Sync

Overview

Sync dotfiles from remote repository and apply changes.

Capabilities:

  • Fetches latest dotfiles from remote repository
  • Applies changes to local system
  • Handles merge conflicts and errors

Use when: "sync dotfiles", "pull dotfiles", "update dotfiles", "fetch dotfiles", "apply changes", "dotfiles同期", "リモートから取得", "変更を適用"

Don't use for: Committing local changes, initial setup, checking status

Execution

Step 1: Fetch and Apply

chezmoi update で git pull + apply を自動実行。以下のBashコマンドを即座に実行してください:

chezmoi update -v

Step 2: Report Results

適用されたファイルをユーザーに報告。

Reference: Diff Interpretation

Important: chezmoi diff shows "what would happen if you run chezmoi apply".

  • - lines = Current local file content (destination)
  • + lines = Chezmoi source content (what would be applied)

Example

-    "plugin-x": true,
-    "plugin-y": true
+    "plugin-x": true

Interpretation: Local has plugin-y, but chezmoi source does not.

Situation Action
Local has changes you want to keep Run /chezmoi:commit to push to source
Source has updates you want Run chezmoi apply to apply to local

Reference: Error Handling

Network Error

Cannot reach github.com

Please check your internet connection and try again.

Git Conflict

Git conflict detected!

You have local changes that conflict with remote changes. Resolve conflicts manually:

  1. cd ~/.local/share/chezmoi
  2. git status
  3. Resolve conflicts
  4. git add .
  5. git commit
  6. chezmoi apply

Notes

  • chezmoi update automatically runs git pull and chezmoi apply
  • If there are uncommitted local changes, an error may occur
  • In that case, run /chezmoi:commit first
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 · 87 lines · 9 tokens per session scan A 8be75869526b

Subscribe to this mod's changes

sync is a command published in the GitHub repository signalcompose/claude-tools (4 stars, last pushed 5d ago), licensed MIT. It adds 9 tokens to every session and 518 once invoked, about $0.0000 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.