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

Unison

$ unison Community High Risk
Benjamin Pierce · Files & Search · GPL-3.0-or-later · macos / linux / windows

Unison maintains archive metadata on both replicas to reconcile changes in either direction across local directories or SSH remotes. Using -batch and -auto enables non-interactive sync of non-conflicting updates, while skipping conflicts instead of prompting on TTY.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install unison
CLI vs MCP Decision CLI Only

High-volume bidirectional file synchronization over local disk or SSH belongs directly in unison rather than an MCP bridge.

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 15 / 25

Supports headless automation via -batch, -auto, -terse, and -silent, though output is plain text with no --json mode.

  • Non-interactive -batch -auto flags avoid TTY prompts
  • No structured --json output format
Trust & Safety 16 / 25

State-tracked sync skips conflicts under -batch, yet bidirectional propagation can delete files across replicas if misconfigured or forced.

  • Built-in -confirmbigdel safeguard against mass deletion
  • Bidirectional writes can remove files on both endpoints
Setup & Portability 12 / 15

Available on macOS, Linux, and Windows via Homebrew and GitHub releases, but remote SSH endpoints require a matching Unison version.

  • Cross-platform binaries with strict client/server version matching
Utility & Efficiency 13 / 15

Unique stateful two-way sync capability that complements one-way tools like rsync when edits occur on both hosts.

  • Persistent archive state detects conflicts and bi-directional edits
Maintenance & Lineage 8 / 10

Long-standing academic and community OSS project (bcpierce00/unison) with steady maintenance releases.

  • Actively maintained on GitHub under GPL-3.0-or-later
Docs & Verifiability 8 / 10

Thorough reference manual and -doc all built-in documentation covering every preference flag.

  • Embedded -doc topics and official GitHub wiki

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Uses local profile files in ~/.unison/*.prf and standard SSH keys (~/.ssh/) for remote replicas.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% free, offline/SSH, and open-source (GPL-3.0-or-later).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Unison Agent Rules
- ALWAYS verify `unison -version` matches on both local and remote SSH hosts before running a sync.
- Always pass `-batch` to prevent interactive TTY prompts, and avoid `-force` or `-confirmbigdel=false` without explicit approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check Unison version and protocol compatibility
unison -version

Prints the local unison version so agents can verify compatibility with remote SSH hosts before syncing.

Inspect synchronization diffs without modifying files
unison ./src ./dst -batch -terse -noupdate ./src -noupdate ./dst

Runs comparison with -noupdate on both roots to preview pending propagation actions without writing either replica.

Controlled Writes & Previews

Run non-interactive bidirectional sync skipping conflicts
unison ./src ./dst -batch -auto -terse -confirmbigdel=true

Synchronizes non-conflicting updates automatically via -batch -auto while guarding against mass deletions with -confirmbigdel=true.

Strengths for Agents

  • + True stateful bidirectional synchronization across local paths and SSH remotes.
  • + -batch and -auto prevent interactive stalls while leaving conflicting files untouched.

Caveats & Pitfalls

  • ! No --json output; agents must parse plain-text status lines.
  • ! Client and remote SSH server must run matching unison protocol versions.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI