Unison
$ unison Community High RiskUnison 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.
brew install unison High-volume bidirectional file synchronization over local disk or SSH belongs directly in unison rather than an MCP bridge.
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 headless automation via -batch, -auto, -terse, and -silent, though output is plain text with no --json mode.
- Non-interactive
-batch -autoflags avoid TTY prompts - No structured
--jsonoutput format
State-tracked sync skips conflicts under -batch, yet bidirectional propagation can delete files across replicas if misconfigured or forced.
- Built-in
-confirmbigdelsafeguard against mass deletion - Bidirectional writes can remove files on both endpoints
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
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
Long-standing academic and community OSS project (bcpierce00/unison) with steady maintenance releases.
- Actively maintained on GitHub under GPL-3.0-or-later
Thorough reference manual and -doc all built-in documentation covering every preference flag.
- Embedded
-doctopics and official GitHub wiki
Security, Auth & Guardrails
Uses local profile files in ~/.unison/*.prf and standard SSH keys (~/.ssh/) for remote replicas.
100% free, offline/SSH, and open-source (GPL-3.0-or-later).
# 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
unison -version
Prints the local unison version so agents can verify compatibility with remote SSH hosts before syncing.
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
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.
- +
-batchand-autoprevent interactive stalls while leaving conflicting files untouched.
Caveats & Pitfalls
- ! No
--jsonoutput; agents must parse plain-text status lines. - ! Client and remote SSH server must run matching
unisonprotocol versions.