dyff
$ dyff Community Low Riskdyff compares YAML and JSON documents by semantic path rather than text lines, offering dyff between with -o json, -o yaml, -o github, -o tap, --kubernetes, and --ignore-order-changes for clean CI and agent diffs.
brew install dyff Produces exact path-level YAML/JSON diffs (dyff between -o json) locally, far cleaner than line-based diff -u.
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 -o json, -o yaml, -o github, -o tap, --omit-header, --color off, and --set-exit-code.
- Supports
-o json,-o yaml, and-o github - Supports
--color offand--omit-header
Strictly read-only diff and format-inspection utility (between, yaml, json) with no in-place file mutation.
- Read-only comparison and conversion CLI
Single static Go binary distributed via Homebrew, go install, and GitHub Releases across macOS, Linux, and Windows.
- Static Go binary (
brew install dyff)
Ideal for Kubernetes/Helm manifest diffs (-k) and multi-document YAML comparisons where text diff fails.
- Multi-doc YAML and Kubernetes-aware structural diffing
Maintained under the Homeport organization (homeport/dyff) with MIT license.
homeport/dyffrepository under MIT
Clear README and subcommand --help examples, including KUBECTL_EXTERNAL_DIFF integration.
- Clear README usage and
--helpoutput
Security, Auth & Guardrails
None; operates purely on local YAML/JSON files and stdin/stdout.
MIT open-source CLI; completely free.
# dyff Agent Rules - Always pass `-o json` (or `-o yaml` / `-o github`) and `--omit-header` for concise structured diffs. - Use `--set-exit-code` (`1` when diffs exist, `0` when equal) only when exit-status gating is desired.
Agent-Ready Command Recipes
Safe Read-Only Queries
dyff between old.yaml new.yaml -o json --omit-header
Emits a machine-readable JSON diff report with exact YAML paths and before/after values.
dyff between -k --ignore-order-changes old.yaml new.yaml -o github
Compares Kubernetes resources cleanly in GitHub-style concise diff format.
Strengths for Agents
- +
dyff between -o jsonproduces exact structural path diffs across multi-document YAML and JSON. - +
--kubernetes(-k) and--ignore-order-changeseliminate noisy Helm/K8s diff chatter. - + Strictly read-only single Go binary.
Caveats & Pitfalls
- ! Multi-document YAML files without Kubernetes
metadata.nameidentifiers can still yield positional list diffs. - ! Diffing only—cannot apply patches back (use
jd -pfor JSON Patch application).