check

A command for checking whether files managed by Chezmoi, a dotfile manager, have local changes and whether the related Git repository is up to date.

In plain words
What is it for?
Use it to check dotfiles status and remote sync state. It is not for checking project code or general Git status.
Why use it?
It shows whether your configuration files differ from the managed version or the remote repository, so you know what needs syncing, committing, or pushing.

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/check
Clone the repo
git clone --depth 1 https://github.com/signalcompose/claude-tools
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 438 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.00010 $0.00438
Opus 5 $0.00005 $0.00219
Sonnet 5 $0.00002 $0.00088
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

check 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/check.md · 59 lines

What it actually says

Chezmoi Status Check

Overview

Check dotfiles status including local changes, remote sync state, and shell sync checker status.

Capabilities:

  • Detects local changes in managed dotfiles
  • Checks remote repository sync state (ahead/behind)
  • Verifies shell sync checker status
  • Provides actionable next steps

Use when: "check dotfiles", "dotfiles status", "chezmoi status", "verify sync", "dotfiles確認", "同期状態チェック", "ステータス確認"

Don't use for: Project code status, general git status checks

Execution

以下のBashコマンドを即座に実行してください:

bash ${CLAUDE_PLUGIN_ROOT}/scripts/chezmoi-check.sh

After execution, report the results to the user.

Reference: Script Behavior

The check script performs three steps:

Step 1: Local Changes Detection

  • Runs chezmoi status to detect modified files
  • Reports files that differ between source state and target state

Step 2: Git Sync Status

  • Fetches latest from origin/main
  • Shows branch status (ahead/behind)
  • Provides actionable next steps:
    • If local changes + behind: sync first, then commit
    • If local changes only: commit and push
    • If behind only: sync to pull latest
    • If ahead only: push commits
    • If up-to-date: no action needed

Step 3: Shell Sync Checker Migration

  • Checks for old embedded sync checker code in .zshrc
  • Warns if outdated version detected (has macOS timeout bug)
  • Suggests running /chezmoi:shell-sync-setup to migrate

Error Handling

  • Exits with error if chezmoi is not installed
  • Provides installation instructions (brew install chezmoi)
  • Detects if chezmoi source directory is not a git repository
  • Suggests running /chezmoi:setup for initial configuration
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 · 59 lines · 10 tokens per session scan A 49f47f5f2cea

Subscribe to this mod's changes

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