Know what your upgrade will break, before it does.
MigraSutra AI reads your repository, flags risky database and dependency changes with file and line, rehearses the change safely, and writes a report a human can approve. No API key. No cloud. Nothing executed.
npx migrasutra audit --root . --out report$ migrasutra audit --root . --out report audit completed: report (audit.json, audit.md, audit.html) Verdict: REVIEW_REQUIRED (high 0, medium 2, low 1) MEDIUM SQL_NOT_NULL_NO_DEFAULT migrations/022_add_region.sql:1 LOW SQL_INDEX_NOT_CONCURRENT migrations/022_add_region.sql:2 MEDIUM SQL_RENAME migrations/022_add_region.sql:3 exit code: 0
Five steps, each leaving evidence
Every hop carries a content hash. Change a file halfway and the flow stops.
scan.json
Findings with file, line, rule ID and a SHA-256 of each source.
plan.json
One field change, its baseline hash, prerequisites and rollback notes.
rehearsal.json
Before and after hashes. Tests and rollback are marked as not run.
gate.json
NO_GO or REVIEW_REQUIRED with every reason listed.
Situations you will recognise
Each one shows output produced by the real CLI when this site was built.
The Friday cleanup
A column and a table are about to be dropped.
Read moreThe required column
NOT NULL, a blocking index and a rename.
Read moreThe major upgrade
Rehearse a framework bump without touching source.
Read moreThe stale approval
The plan is refused because the file changed.
Read moreThe CI gate
A truncate blocks the merge with exit code 1.
Read moreThe proven fix
Compare before and after, finding by finding.
Read moreNo automatic green light
The tool cannot see your test results, so it never says safe.
One command, three formats
JSON for machines, Markdown for pull requests, HTML for people.
Your code stays on your machine
Files are read, never executed. Nothing is sent anywhere.
The tool does
- Read allow-listed filesmanifests, Dockerfile, SQL migrations
- Hash and matchdeterministic rules, stable evidence IDs
- Write reportsonly where you point --out
- Rehearse in a temp folderdeleted afterwards
The tool never
- Runs your codeno installs, scripts, tests or migrations
- Calls the internetno cloud, no telemetry, no keys
- Edits your sourcetests compare bytes before and after
- Reads .env filesunlisted files are ignored
Evidence you can reproduce
Self-assessed, not third-party certified. Run the commands yourself.
What it does not do
- It does not run your tests, builds, installs or migrations.
- SQL checks are heuristics, not a dialect parser. Dynamic SQL inside
$$bodies is missed. - Only root-level manifests and common migration folders are read.
- Sandbox execution, codemods and a database restore lab are roadmap items.
- Skills were not verified inside live IDE hosts.
Everything in one place
Pick the page that matches your role.
MigraSutra AI Documentation
MigraSutra AI is an offline, deterministic, read-only CLI plus 20 portable agent skills. It audits a repositor
User Guide
Requires Node.js 22 or newer.
Real-world scenarios
Seven situations teams meet every week. Each terminal below is produced by the real CLI on a small sample proj
How it works
MigraSutra turns a repository into reviewable evidence in five steps. Nothing from your project is ever execut
Executive Summary
Upgrades fail when teams cannot say what is changing, what could break, what was tested and how to recover. Pl
Functional Specification
Targets: npm:package@1.2.3 or node:22. Anything else is refused.
Architecture
The CLI calls a read-only core. The core reads allow-listed files, writes only to a temp folder during rehears
Technical Specification
Runtime: Node.js 22 or newer, ES modules, zero runtime dependencies.
Security, Privacy and Legal
This is engineering documentation, not legal advice. Have counsel review before commercial redistribution.
Independent Audit and Evidence
This is a self-audit prepared with an AI coding assistant during the 0.2.0 release. It is not a third-party ce
Test results (observed)
Command: node --test tests/.test.mjs
FAQ and glossary
Short answers in plain language.