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

dyff

$ dyff Community Low Risk
Homeport · Database & Data · MIT · macos / linux / windows

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

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

Produces exact path-level YAML/JSON diffs (dyff between -o json) locally, far cleaner than line-based diff -u.

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 -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 off and --omit-header
Trust & Safety 25 / 25

Strictly read-only diff and format-inspection utility (between, yaml, json) with no in-place file mutation.

  • Read-only comparison and conversion CLI
Setup & Portability 15 / 15

Single static Go binary distributed via Homebrew, go install, and GitHub Releases across macOS, Linux, and Windows.

  • Static Go binary (brew install dyff)
Utility & Efficiency 12 / 15

Ideal for Kubernetes/Helm manifest diffs (-k) and multi-document YAML comparisons where text diff fails.

  • Multi-doc YAML and Kubernetes-aware structural diffing
Maintenance & Lineage 8 / 10

Maintained under the Homeport organization (homeport/dyff) with MIT license.

  • homeport/dyff repository under MIT
Docs & Verifiability 8 / 10

Clear README and subcommand --help examples, including KUBECTL_EXTERNAL_DIFF integration.

  • Clear README usage and --help output

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates purely on local YAML/JSON files and stdin/stdout.

Side Effects
Read-Only
Cost & Quotas

MIT open-source CLI; completely free.

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

Diff two YAML or JSON files as structured JSON
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.

Diff Kubernetes manifests ignoring list order
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 json produces exact structural path diffs across multi-document YAML and JSON.
  • + --kubernetes (-k) and --ignore-order-changes eliminate noisy Helm/K8s diff chatter.
  • + Strictly read-only single Go binary.

Caveats & Pitfalls

  • ! Multi-document YAML files without Kubernetes metadata.name identifiers can still yield positional list diffs.
  • ! Diffing only—cannot apply patches back (use jd -p for JSON Patch application).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI