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

oasdiff

$ oasdiff Official Low Risk
oasdiff · Design & Docs · Apache-2.0 · macos / linux / windows

oasdiff compares two OpenAPI 3 specifications to detect breaking changes, generate structured changelogs, or compute full structural diffs. With native --format json across breaking, changelog, and diff, plus zero filesystem writes, it is an ideal contract-safety gate for API agents.

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

Direct oasdiff breaking --format json gives deterministic semantic OpenAPI diffs locally without sending full specs into an LLM or MCP tool.

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

Supports --format json and yaml across breaking, changelog, and diff, deterministic exit codes (--fail-on), and zero interactive prompts.

  • Native --format json across breaking, changelog, and diff
  • Deterministic non-interactive comparison
Trust & Safety 25 / 25

Strictly read-only OpenAPI comparison tool with zero file writes, mutations, or credentials.

  • 100% read-only operation
Setup & Portability 15 / 15

Single static Go binary installable via Homebrew, go install, Docker, or GitHub releases across macOS, Linux, and Windows.

  • brew install oasdiff and single binary releases
Utility & Efficiency 14 / 15

Far more reliable and token-efficient for agents than manually diffing raw YAML files to spot subtle OpenAPI compatibility regressions.

  • Semantic OpenAPI 3 breaking-change detection out of the box
Maintenance & Lineage 9 / 10

Official oasdiff/oasdiff repository actively maintained under Apache-2.0.

  • Official oasdiff/oasdiff GitHub repository
Docs & Verifiability 8 / 10

Clear documentation and examples on oasdiff.com and GitHub README.

  • Official docs at oasdiff.com/documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; compares local or HTTP-fetched OpenAPI specification files.

Side Effects
Read-Only
Cost & Quotas

Core CLI is free and Apache-2.0 open-source; optional commercial PR-approval features exist.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# oasdiff Agent Rules
- Always pass `--format json` when inspecting `breaking`, `changelog`, or `diff` results.
- Use `oasdiff breaking base.yaml rev.yaml --fail-on ERR` in CI/pre-commit checks to catch client-breaking API edits.

Agent-Ready Command Recipes

Safe Read-Only Queries

Detect breaking OpenAPI changes as JSON
oasdiff breaking base.yaml rev.yaml --format json

Compares base.yaml against rev.yaml read-only and outputs structured JSON breaking-change entries.

Generate a machine-readable API changelog
oasdiff changelog base.yaml rev.yaml --format json

Emits all breaking and non-breaking consumer-facing changes as JSON.

Strengths for Agents

  • + Strictly read-only with native --format json across breaking, changelog, and diff.
  • + Catches subtle semantic OpenAPI breaking changes that line-based git diff misses.
  • + Fast single Go binary with zero runtime dependencies.

Caveats & Pitfalls

  • ! Targets OpenAPI 3.x specifications (Swagger 2.0 specs must be converted to OpenAPI 3 first).
  • ! Enterprise PR sign-off workflow features sit outside the open-source CLI.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI