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.

ci.sh
$ 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/2

Integrates 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.

Set it up with one prompt to your agent:
Fetch https://visualci.com/install.md and follow it

See a demo build, no sign-in needed.

Agent session, VisualCI over MCP
→ 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 passed

Browser 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
VisualCI's review of a changed dashboard screenshot: a box shows the button that turned from blue to green, in the baseline and in this buildThe same review in dark mode
A dashboard’s button changed colour, and VisualCI shows a box in both versions. This screenshot comes from VisualCI’s own public gallery.

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.

VisualCI's review of a changed receipt: a box on page 2's total line in both versions, its text diff, and an inserted page 3The same review in dark mode
A new build of a receipt: the total on page 2 changed, and a tax page was added. This screenshot comes from VisualCI’s own public gallery.

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.

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.

Start with your own tests