vacuum
$ vacuum Community Low Riskvacuum is an ultra-fast Go OpenAPI 3.0/3.1, Swagger 2.0, and AsyncAPI linter compatible with Spectral rulesets. Agents benefit from native JSON reporting (vacuum spectral-report / vacuum report), --errors and --category filtering, --no-banner, and --fix --dry-run for safe auto-remediation.
brew install vacuum Sub-second local OpenAPI linting and Spectral-compatible JSON reporting with vacuum has zero MCP latency or token bloat.
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
Generates structured JSON snapshots (report, spectral-report), supports -e/--category filtering, --no-banner, and --fix --dry-run with millisecond Go startup.
vacuum reportandvacuum spectral-reportemit structured JSON- Supports
-e(--errors),-c(--category),--no-banner, and--fix --dry-run
Read-only by default; --fix supports both --dry-run previewing and --fix-file non-destructive output.
--dry-runand--fix-fileprotect original spec files
Single static Go binary available via Homebrew, go install, Docker, and GitHub releases on macOS, Linux, and Windows.
- Zero-dependency Go binary across all major platforms
10x–100x faster than Node-based linters on large OpenAPI specs while retaining Spectral ruleset compatibility.
- Drop-in Spectral ruleset compatibility (
-r)
Actively maintained by Quobix (daveshanley/vacuum) under the MIT license.
- Active releases in
daveshanley/vacuum
Extensive official docs at quobix.com/vacuum documenting every command, rule, and flag.
- Official docs at quobix.com/vacuum/commands/
Security, Auth & Guardrails
None required; operates purely on local or fetched OpenAPI spec files.
100% free, offline, and MIT open-source.
# vacuum Agent Rules - Pass `--no-banner` and `-e` (errors only) to keep lint output compact. - Use `vacuum spectral-report` or `vacuum report` when structured JSON output is needed. - Prefer `--fix --dry-run` or `--fix-file <out>` before mutating `openapi.yaml` in place.
Agent-Ready Command Recipes
Safe Read-Only Queries
vacuum lint -d -e --no-banner openapi.yaml
Runs read-only linting showing only errors (-e) and detailed context (-d) without ASCII banner noise.
vacuum spectral-report --no-banner openapi.yaml vacuum-spectral-report.json
Emits machine-readable JSON violations compatible with Spectral CI parsers.
Controlled Writes & Previews
vacuum lint --fix --fix-file openapi.fixed.yaml openapi.yaml
Applies repairable lint fixes into openapi.fixed.yaml without overwriting openapi.yaml.
Strengths for Agents
- + Millisecond Go performance with Spectral ruleset compatibility (
-r). - +
vacuum spectral-reportand--fix --dry-run/--fix-filegive agents both JSON visibility and safe remediation. - + Single zero-dependency binary on macOS, Linux, and Windows.
Caveats & Pitfalls
- !
vacuum reportandspectral-reportwrite JSON report files by default rather than printing pure JSON to stdout. - ! Custom JavaScript Spectral functions are not natively executed in Go without compatible Go/built-in rules.