Image 1 of 2: MigrationPilot site with a migration and its findings, including a lock_timeout fix
Parses migrations with PostgreSQL's own parser (libpg-query in WASM), classifies the lock each statement takes, checks 112 rules and scores the risk, with a safe alternative per finding and a 20-rule auto-fixer. Runs as a CLI, a GitHub Action and an MCP server with a pass/fail gate for agents.
- 93.9%Hazards caught (33)
- 5.9%False positives (17)
Trade-offs
- Without a database connection the risk score is capped at lock severity;
--database-urlopens one read-only connection topg_classandpg_stat_*to weigh table size and traffic. - The Claude Code hook fails open on purpose: a missing install, unparseable SQL or a timeout lets the call through, because a guardrail that breaks the workflow gets uninstalled.
- Hazards it doesn't catch stay in the benchmark corpus and are listed: unbatched backfills and DDL plus backfill in one transaction are caught by no tool tested.
Q&A2
On 56 labelled migration files from a corpus built for it, with Squawk and pgfence pinned: 31 of 33 hazards caught against 20 and 25, and 1 false positive in 17 safe files. The corpus is the project's own, and the run is reproducible from the repo.
Through the MCP server's
check_before_apply tool, a pass/fail gate called before writing or running DDL. It resolves .migrationpilotrc.yml exactly as the CLI does, so its verdict matches CI's.Links
- Live(opens in a new tab)migrationpilot.dev
- GitHub(opens in a new tab)github.com/mickelsamuel/migrationpilot
- npm(opens in a new tab)npmjs.com/package/migrationpilot
- Benchmark(opens in a new tab)github.com/mickelsamuel/migrationpilot/blob/main/bench/RESULTS.md
- Playground(opens in a new tab)migrationpilot.dev/playground
Built by
Reviews
Loading reviews
More in Migrations
See all 7 →
PaganelData migration engine that verifies the destination down to the row- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
- FlydbVersioned database migrations with a local GUI, a CLI and agent hand-off
pgmoldPostgreSQL schema-as-code in plain SQL, with safety linting and drift checks- dbconformFinds and repairs drift between a SQL database and its SQLAlchemy models
- terradbDeclarative schema management for PostgreSQL and SQLite
More in Postgres
See all 25 →
SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
arbiterPostgreSQL job queue for Haskell, with no broker and no leader- StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
go-ledgerMulti-tenant double-entry payment ledger API in Go, built in public- RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
- pgledgerDouble-entry ledger implemented entirely in PostgreSQL functions and views
More in Linters & formatters
See all 19 →
polyOne Rust binary that lints and formats about 30 languages
augurPolicy-based linter for OpenTelemetry Collector configurations
alintLinter for repository structure, files and config values
jev-specCLI that fails the build when code drifts from its Markdown spec
codehoundPython static analyzer for async and correctness bugs that pass review
CatalystOpsEditor extension that catches PySpark performance problems before they run