Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

chezmoi

$ chezmoi Community Med Risk
Tom Payne · Files & Search · MIT · macos / linux / windows

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

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install chezmoi
CLI vs MCP Decision CLI Preferred vs MCP

Dotfile diffing, template data inspection, and dry-run applies run locally via chezmoi with zero MCP latency.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

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=off flags
  • Built-in chezmoi doctor and chezmoi status diagnostics
Trust & Safety 21 / 25

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-run and chezmoi diff prevent blind home-directory edits
  • Source state templates can invoke external secret managers or scripts
Setup & Portability 15 / 15

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
Utility & Efficiency 14 / 15

Handles multi-OS templates, encrypted dotfiles, and external archives in one unified workflow.

  • Replaces ad-hoc symlink scripts with declarative state diffing
Maintenance & Lineage 9 / 10

Actively maintained MIT-licensed Go project (twpayne/chezmoi) with consistent releases.

  • Mature, frequently updated GitHub repository
Docs & Verifiability 9 / 10

Exceptional official documentation at chezmoi.io covering every command, template function, and secret backend.

  • Comprehensive user guide and reference manual

Security, Auth & Guardrails

Auth Modes
No Auth Config File OS Keychain
Credential Storage

Stores config in ~/.config/chezmoi/chezmoi.toml and delegates secrets to external password managers (1Password, Bitwarden, age, GPG, OS keychain).

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

100% free, offline-capable, and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect template context variables as JSON
chezmoi data --format=json

Outputs OS, hostname, architecture, and custom template variables as structured JSON.

Preview pending dotfile changes without applying
chezmoi diff --no-pager --color=off

Shows exact unified diffs between the source state and $HOME targets without modifying any file.

Controlled Writes & Previews

Simulate dotfile apply with dry-run
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, and chezmoi data --format=json make 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 during chezmoi apply.
  • ! Applying without --force or --no-tty can prompt on modified destination files.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI