chezmoi
$ chezmoi Community Med Riskchezmoi manages dotfiles across macOS, Linux, and Windows using Go templates and integrations with 1Password, Bitwarden, age, and GPG. Agents benefit from native --dry-run, --no-tty, --color=off, and chezmoi data --format=json introspection before applying changes.
brew install chezmoi Dotfile diffing, template data inspection, and dry-run applies run locally via chezmoi with zero MCP latency.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports chezmoi data --format=json, --dry-run, --no-tty, --no-pager, and --color=off, making headless inspection and simulation highly reliable.
- Native
--format=json,--no-tty,--no-pager, and--color=offflags - Built-in
chezmoi doctorandchezmoi statusdiagnostics
First-class diff and --dry-run preview before touching $HOME, though apply can run user-defined hooks (run_once_ scripts) and overwrite target files.
--dry-runandchezmoi diffprevent blind home-directory edits- Source state templates can invoke external secret managers or scripts
Single static Go binary available via Homebrew, Winget, Scoop, apt, and official GitHub releases across macOS, Linux, and Windows.
- Zero-dependency static binary on all three major OSes
Handles multi-OS templates, encrypted dotfiles, and external archives in one unified workflow.
- Replaces ad-hoc symlink scripts with declarative state diffing
Actively maintained MIT-licensed Go project (twpayne/chezmoi) with consistent releases.
- Mature, frequently updated GitHub repository
Exceptional official documentation at chezmoi.io covering every command, template function, and secret backend.
- Comprehensive user guide and reference manual
Security, Auth & Guardrails
Stores config in ~/.config/chezmoi/chezmoi.toml and delegates secrets to external password managers (1Password, Bitwarden, age, GPG, OS keychain).
100% free, offline-capable, and open-source (MIT).
# chezmoi Agent Rules - ALWAYS run `chezmoi diff --color=off` and `chezmoi apply --dry-run --verbose --no-tty` before applying dotfile changes. - Pass `--no-tty` on automated runs and never execute `chezmoi purge` or `chezmoi destroy` without user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
chezmoi data --format=json
Outputs OS, hostname, architecture, and custom template variables as structured JSON.
chezmoi diff --no-pager --color=off
Shows exact unified diffs between the source state and $HOME targets without modifying any file.
Controlled Writes & Previews
chezmoi apply --dry-run --verbose --no-tty
Simulates every file write, script, and permission change via --dry-run before running real chezmoi apply.
Strengths for Agents
- +
--dry-run,--no-tty,--color=off, andchezmoi data --format=jsonmake automation deterministic. - + Integrates cleanly with 1Password, Bitwarden, age, and GPG without storing plaintext secrets in git.
Caveats & Pitfalls
- !
run_scripts inside a dotfile repo execute shell commands duringchezmoi apply. - ! Applying without
--forceor--no-ttycan prompt on modified destination files.