Check what your coding agent changed before you push
Coding agents finish the way they were told to: tests green, task marked done. Ship Check reads everything you have not pushed yet and tells you, in plain words, what a passing run hides, from deleted assertions to a migration that breaks the version of your app that is still running, and what to do before you deploy.
npx intentiaiRuns on your machine and never uploads a line of your code. intentiai check is the same command under its older name. Works after any agent, or any person.
What it looks like
$ npx intentiai
3 files · +118 −4 · 5 functions · touches 2 settings
Reviewed: your work that is not pushed yet
This change has 2 things to fix before you push.
What to fix:
• Fix now: Anyone can fake a payment and get the pro plan free
Check that each payment message really comes from Stripe
before acting on it.
Also breaks your check: Payment events are trusted only
after Stripe's signature is checked
• Fix now: 3 checks were removed from the payment tests
Put the checks back, or say why they no longer apply.
• Fix soon: A scheduled job now runs 288 times more often
Confirm the new schedule is intended.
Before you push: 2 things to do
- Add STRIPE_WEBHOOK_SECRET in Vercel: Project → Settings →
Environment Variables (Production and Preview).
- Run the database change in 0007_add_plans.sql on your
live database before you deploy.
Your checks: 1 failed, 1 passed
- Failed: Payment events are trusted only after Stripe's
signature is checked. See: Anyone can fake a payment
- Passed: Every new API route checks the user's plan
Reviewed by your Claude Code in 95s.
Fix these before you push. Full report: .intentiai/report.html
Example output. Open a full sample report.
What it checks
- Tests weakened to get a green runTests deleted, skipped, narrowed with .only, stripped of assertions, loosened in place, or propped up with a sleep; coverage gates lowered.
- Migration that locks a table or breaks a live deploySchema changes that lock or rewrite a table, or drop something the running app still reads.
- Command that deletes or overwrites dataRecursive deletes, dropped databases, truncates, unfiltered bulk deletes, force pushes.
- New endpoint with no visible auth checkA new endpoint with no visible auth, or a webhook that does not check the sender's signature.
- Permission or validation check deletedA validation, permission or rate-limit call deleted without a replacement.
- API key or credential committedCredentials committed in the change. Masked in every output.
- Untrusted input reaching SQL, HTML, a shell or evalUntrusted data reaching SQL, HTML, a shell, eval or an outbound URL.
- Issue or PR text interpolated into CIIssue or PR text interpolated into a CI script or an AI action.
- Settings the change needs, or one it removedA new setting the code reads goes on the Before you push list; a setting removed while code still reads it is an issue.
- Import of a package nothing installsAn import with no matching installed package: the offline sign of a hallucinated dependency.
- Dependency bumped across a major versionA dependency moved across a breaking version boundary.
- Exported function changed while callers still use itA public function or export removed or re-signed while other code still calls it.
- AI model that is retired or about to beThe change names an AI model its provider has retired, or will retire within 90 days.
- Schedule, retry or timeout change that multiplies loadSchedules run more often, retries added without backoff, timeouts raised, CI concurrency that does nothing.
- Database or API call inside a loopA database, HTTP or model call made once per loop iteration.
- Async call with no awaitAn async call whose result, and whose failure, is dropped.
- File, socket or timer opened and never closedA file, socket, cursor or interval opened and never released.
- Error caught and silently discardedAn empty catch, except or rescue; an error assigned to _ in Go.
- Type or lint error silenced instead of fixedType or lint errors silenced without a stated reason.
- TODOs and stubs left in finished workTODOs, stubs and placeholder values left in the change.
- Debug prints and debugger statements left inDebugger statements and stray debug prints in application code.
- Change reaches CI, infrastructure or build outputCI, infrastructure or generated files touched, or a change too large to review.
- Supabase table without row level securityA new table in the public schema with row level security never turned on in the same change.
- Secret setting sent to the browserA secret-looking setting given a browser prefix (NEXT_PUBLIC_, VITE_...), or a secret read in client code.
- Certificate checks switched offrejectUnauthorized: false, NODE_TLS_REJECT_UNAUTHORIZED=0, strictSSL: false, verify=False and the like, added outside tests.
- Sign-in token decoded but never verifiedjwt.decode, jwtDecode or a hand-made base64 decode whose user id decides access, with no verify in the same function.
- Any website allowed to call with the visitor's sign-inA wildcard origin, origin: true, or the request's own Origin echoed back, together with credentials.
- Redirect to an address taken from the requestredirect, res.redirect or NextResponse.redirect to a value from the query string or body with no allow-list.
Your own agent as a second reviewer
When Claude Code, Codex or Gemini CLI is installed, every run hands the change and the findings to it, read-only. It confirms or disputes each finding with a reason (a disputed one stays on the list), reports problems the deterministic checks cannot see, and adds to the list of what to do before you push. Add --fast for the checks alone. --thorough adds a second pass over the existing code the change can break and runs your project’s own tests, and intentiai new also reviews a new feature’s design and gives you prompts to improve it. See the docs for every mode, supported agents and running it automatically after every task.
Modes and time limits
| Mode | What it does | Time limit |
|---|---|---|
Fast --fast | Built-in checks and cost rules only, no AI review. Takes seconds. | 1 min |
| Normal | Built-in checks, cost rules, the app map and one AI review of the change. | 6 min |
Thorough --thorough | Everything in normal, plus a second AI pass over the existing code this change can break, every AI call in the repository, and your project's own tests. | 15 min |
New feature new | Everything in thorough, plus a feature review: does it fit the codebase, is the database design sound, is there a better way to build it. | 20 min |
The time limit is hard, and it is the same number --help prints and the report shows. Each step gets what is left of it. A step that would not fit is skipped, and the report lists what was skipped and why. The report and the terminal say how long it took, for example “Took 3 min 58 s of its 20 min limit”.
Thorough and new mode also build your app once when it fits in the time left, and record each page’s size (the JavaScript each visitor downloads for it) so the next run can compare. When the build ran and passed and the tests ran and passed, the report shows a “Built and tested” badge. When the build would not fit in the time left, it is skipped and the report says why.
Before you push
Every report ends with a list of what the change needs outside the code: migrations to run in every environment, rows the code now looks up, new environment variables, webhooks and sign-in providers to register, scheduled jobs and storage buckets your host must know about, and a lockfile to commit. Each item says where to do it: when your project is on Vercel, Netlify, Fly.io, Render or Railway, it names the settings page there. The fixed checks write the list; your agent adds what they cannot see.
Your own checks
Put one plain-language check per line in .intentiai/checks.md, or run npx intentiai remember "Every new API route checks the user's plan". Your coding agent checks each one on every run and reports it as passed, failed or not applicable. When a failed check is about the same code as an issue, it is shown on that issue as “Also breaks your check”, so you fix it once. See the docs.
How it stays honest
It is built to be right when it speaks, and to say plainly when a check could not run. Every finding quotes the real line it is about, in the report on your computer. Anything your agent adds is kept only if the line it quotes exists where it says, and is labelled as found by your agent.
Questions
Which coding agents does Ship Check work with?
Any of them. It reads the git diff, not the agent, so it works the same after Claude Code, Codex, Cursor, Copilot or a human. It can also run automatically when an agent finishes a task.
Does it use an LLM?
Yes, your own. The checks themselves are deterministic and run offline. Then, if Claude Code, Codex or Gemini CLI is installed, it reviews the change read-only (on a subscription this costs nothing extra; with an API key it uses your API credits): it confirms or disputes each finding, adds what the checks cannot see, and fills in what to do before you push. Add --fast for the checks alone, or --thorough for a second pass over the existing code the change can break, plus your own tests.
What does it review?
Everything not yet pushed, committed or not: the commits your remote does not have yet, plus staged, unstaged and new files. With no remote, it reviews what changed since your last commit. --base main compares against a branch instead, and --base HEAD reviews uncommitted work only.
Does my code leave my machine?
No lines of your code are uploaded. Each run sends its result to your free account, grouped by project: names, file paths, line numbers, plain sentences and counts. The code each finding quotes, the output of your tests and the values of your settings stay in the HTML report on your machine, and whole files, the diff and your git history are never sent. --private replaces every name from your project with a made-up one before upload; --local uploads nothing. The AI review runs in your own coding agent, which sends the change to its provider (Anthropic, OpenAI or Google) under your account, as it does whenever you code with it. --no-agent turns that off.
What can it not catch?
Mistakes about meaning, such as a condition applied to the wrong users or a subtly wrong default. A model reviewer catches more of those, which is why your coding agent reviews every run by default.