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://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://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.
claude mcp add --transport http visualci \ https://visualci.com/mcp \ --header "Authorization: Bearer $VISUALCI_TOKEN"
→ 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 passedStop 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.
Diffs that understand pages
Each page is fingerprinted, so pages are matched by content instead of by position. 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
Changed regions, highlighted
Side by side, the diff image, or a slider between base and head. Every changed area is boxed, down to a single ticked checkbox.
PDFs, screenshots and snapshots
Send PDFs, browser screenshots, mobile app screenshots or plain images. The CLI fingerprints each file first, so anything VisualCI has already seen is never uploaded again.
PDFs get one extra step. 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 pixels and the same baseline.
- 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. Perceptual thresholds are there for browsers.
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.
Free: 25,000 credits a month, plenty for a small project. Team: $29 a month for 1,000,000, then $15 packs of 500,000. Other tools bill every screenshot in every build.
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.