Visual and snapshot testing for AI agents
VisualCI checks the PDFs, screenshots and snapshots your tests produce. Changes don’t fail the build. Your agent reads each one over MCP, checks it against the code, then approves it. Or it fixes the code and pushes again.
$ export VISUALCI_BUILD_ID=$(visualci build create)
Build #2 for pdf-acceptance: https://app.visualci.com/…/builds/2
$ visualci upload spec/artifacts/pdfs
98 snapshots, 1 uploaded
$ visualci upload --from auto src tests
412 snapshots, 2 uploaded
$ visualci build finalize --wait
Build #2 (pdf-acceptance): completed changes, waiting for review
changed language_tests
changed invoice_api.json
https://app.visualci.com/…/builds/2Integrates with any CI provider:
- GitHub Actions
- CircleCI
- Buildkite
- Blacksmith
- Depot
- GitLab CI
- Jenkins
- Bitbucket
- Semaphore
- TeamCity
- Bitrise
- Travis CI
Built for AI agents
When a snapshot changes, nobody has to open a screenshot. Your agent lists the changed snapshots, looks at the base, head and diff images, and reads the text and JSON diffs. Then it decides: approve the change as the new baseline, or fix the code and push again.
Every approval is recorded on the build, so you can see what your agent accepted.
See a demo build, no sign-in needed.
→ get_build pdf-acceptance #215
2 changes: invoice_typical, invoice_api.json
→ get_snapshot invoice_typical
page 1: 2 changed regions, text − Scan to pay
# The QR code went missing. Restore it, push.
→ get_snapshot invoice_api.json
$.tax_breakdown added
# Expected: this branch adds tax breakdowns.
→ review approve invoice_api.json
→ get_build pdf-acceptance #216
unchanged, check passedBrowser screenshots, compared on every pull request
Upload the screenshots your Playwright, Cypress or Capybara tests already take, or any image. VisualCI shows every region that changed since the approved baseline. Look at it side by side, as a diff or with a slider, then approve it or fix the code.
visualci upload --platform chrome-linux tmp/screenshots


Stop failing builds on snapshots
CI is the bottleneck for many teams. Every failed build sends your agent back into the queue and slows down deploys.
VisualCI keeps snapshots out of the build. CI stays green, and your agent approves each change from the diff, without another commit or CI run. Works with Jest, Vitest, insta, syrupy and rspec snapshots.
visualci upload --from auto src tests
invoice_api.json 3 changes
$.line_items[2].price1200 → 1250$.total4800 → 4850$.tax_breakdownadded {…}
$.generated_at changed too, and is ignored by the project’s rules.
PDFs, page by page
A PDF gets the same review, one page at a time. Pages are matched by content, not position, so a document that gains a page shows one inserted page, not every later page changed.


Inserted and removed pages
Shown next to an empty slot on the other side, so a new page reads as new.
A text diff for every page
The renderer extracts each page’s text. You see the lines that were added and removed, not only the pixels.
Lines that moved to another page
The clearest sign of a page-break bug: the same line, now one page later.
- Item 45: Replacement filter cartridgepage 2 → page 3
- Subtotalpage 2 → page 3
The same pixels everywhere
A Mac and a Linux CI machine rasterize the same PDF differently, so VisualCI renders PDFs itself, with one pinned renderer and its fonts. A run on your laptop and a run in CI get the same baseline.
One upload for everything your tests produce
Browser screenshots, mobile app screenshots from iOS, Android, React Native and Flutter tests, PDFs, plain images, and JSON, HTML or text snapshots go into the same build. The CLI fingerprints each file first, so anything VisualCI has already seen is never uploaded again.
- Input
- PDFs, PNG, JPEG and WebP screenshots and images, JSON, HTML and plain text
- Renderers
- PDFBox or mutool, pinned in one Linux image with its fonts
- Resolution
- Set per project, from 36 to 600 dpi
- Screenshots
- Browser and mobile screenshots carry a platform tag, so each platform keeps its own baseline
- Matching
- Exact by default for documents. A colour threshold is there for screenshots.
Screenshots for your own site
Publish your approved screenshots as a gallery and use them on your homepage and in your docs. When you approve a change, the image on your site updates.
Publish a gallery, or see ours and Fleetlayer’s.


Checks that wait for a decision
VisualCI reports a GitHub check on every commit. When something changed, the check stays pending until your agent approves the change, or fixes the code and pushes again. Approved snapshots become the baseline for that branch.
- review
- The default. CI passes, and the check blocks the merge until your agent approves the change.
- strict
- CI fails on any change nobody has approved. Useful for parity suites, where a change is a bug.
- wait
- The CI job waits for your agent to approve or reject, then passes or fails.
Priced for the size of your test suite
Builds use credits: 1 for each snapshot checked, 5 for a text diff, 10 for an image diff and 20 for a PDF page drawn. Pages VisualCI has drawn before are never drawn again, and in a large run each group of snapshots that didn't change costs 1 credit.
Free: 25,000 credits a month. Team: $29 a month for 1,000,000 credits. More credits cost $15 for 500,000.
Free for open source: 1,000,000 credits a month for public open source projects.
Open source and self-hostable
The server, the CLI and the fingerprint library are open source under Apache-2.0, in one repository. Self-hosting needs Postgres, an S3-compatible bucket, and a machine for the renderers, which run sandboxed with no network access.