# VisualCI > Visual and snapshot testing for AI agents: PDFs, browser and mobile screenshots, and every other snapshot test (JSON, HTML, plain text, serialized component trees). VisualCI renders every PDF page in one pinned environment, skips anything it has seen before and diffs the rest. A change doesn't fail the build: the pull request's GitHub check waits while a coding agent reads the diff over MCP, then approves it, or fixes the code and pushes again. ## For coding agents: the MCP server - URL: https://visualci.com/mcp (Streamable HTTP) - Sign in with `Authorization: Bearer `: - a personal access token (`vcu_...`, created on https://visualci.com/account): everything its user can do in every organization they belong to; - or a project token (`vci_...`, on a project's Tokens tab): that one project. - Claude Code: `claude mcp add --transport http visualci https://visualci.com/mcp --header "Authorization: Bearer vcu_..."` The tools cover everything the web app and the CI API do, except choosing a plan and paying (a person does that in the web app): - Builds: `list_builds`, `get_build`, `get_snapshot` (base, head and diff images of each changed page, the changed regions and the page's text diff; for text, JSON and HTML snapshots the changes by JSON path and a unified diff), `snapshot_history` - Reviews: `review` (approve or reject a build or some of its snapshots), `review_page` (accept one page as a variant, or ignore one change) - Running a comparison: `create_build`, `upload_snapshots` (PDFs, PNG/JPEG/WebP images, or text, JSON and HTML with an optional `format`, base64), `finalize_build` - Organizations and projects: `whoami`, `list_organizations`, `get_organization` (projects, plan, credits used this month and pack credits), `create_organization`, `create_project`, `get_project`, `update_project` (including `ignore_rules` for text snapshots), `create_project_token`, `delete_project_token` ## Snapshot tests: text, JSON and HTML A changed snapshot doesn't fail CI: the GitHub check waits until the change is approved on VisualCI (by a coding agent over MCP, or in the web app), like a changed screenshot. - Formats: `json` (keys sorted, stable formatting), `html` (attributes sorted, whitespace collapsed, one node per line) and `text`. Taken from the `format` field, else the content type (`application/json`, `text/html`), else the file's extension (`.json`, `.html`). Only real changes count: reordered keys or attributes are unchanged. - Ignore rules per project (Settings tab, or `update_project` with `ignore_rules`): `json_paths` such as `$.generated_at`, `$.items[*].id` or `$..request_id`, and `text_patterns` (regular expressions). Matches are replaced with `[ignored]` before comparing. - Existing snapshot files: `visualci upload --from auto ` splits Jest and Vitest `__snapshots__/*.snap` files (one snapshot per test), insta `.snap` files, syrupy `.ambr` files (one per test) and rspec-snapshot `.snap` files. `--from jest|vitest|insta|syrupy|rspec` forces one framework. - Ruby: `expect_json_to_match_snapshot(name, hash)`, `expect_html_to_match_snapshot`, `expect_text_to_match_snapshot` from `visualci/rspec`. - Credits: 1 per snapshot checked, 5 per text diff (a text, JSON or HTML snapshot that changed). ## Support for agents (Standard Support, level 1) VisualCI implements [Standard Support](https://standardsupport.dev) level 1: one-way feedback from agents about VisualCI itself. - MCP: `support_send` with action `feedback`, and fields `title`, `kind` (bug, crash, wrong_result, confusing, missing_feature, docs, question, other) and `description`, plus the optional fields in the spec (`impact`, `task`, `request_ids`, `tool`, `error`, `suggestion`, `source`, `session`, `agent`, `idempotency_key`). - HTTP: `POST https://visualci.com/api/v1/support/feedback` with the same fields as JSON and the same tokens. - Nobody replies to feedback. Send it when something about VisualCI got in your way, once per problem, and tell the user what you sent. Never include secrets or the user's data. ## CI - Install the CLI (Linux or macOS): `curl -fsSL https://visualci.com/install.sh | sh` - In CI, with `VISUALCI_TOKEN` set to a project token: `export VISUALCI_BUILD_ID=$(visualci build create)`, then `visualci upload ` (and `visualci upload --from auto ` for Jest, Vitest, insta, syrupy or rspec-snapshot files), then `visualci build finalize`. - Parallel jobs share one build with `visualci build create --nonce `; `--subset` carries forward the snapshots of jobs that were skipped. --- # VisualCI docs > Visual and snapshot testing for AI agents. Set up CI, connect your coding agent, and send PDFs, screenshots and snapshot tests. Source: https://visualci.com/docs/ All of VisualCI's documentation: https://visualci.com/llms.txt VisualCI checks the files your tests produce: PDFs, browser and mobile screenshots, and JSON, HTML and text snapshots. It renders every PDF page in one pinned environment, skips anything it has seen before, and diffs the rest. A change doesn't fail the build. The pull request's GitHub check waits while your coding agent reads the diff over MCP and checks it against the code. Then the agent approves the change, or fixes the code and pushes again. ## Start here - [Quick start](https://visualci.com/docs/quick-start.md): install the CLI, create a project and run your first build. - [Coding agents](https://visualci.com/docs/agents.md): connect an agent to the MCP server and let it review builds. - [CI providers](https://visualci.com/docs/ci/github-actions.md): GitHub Actions, CircleCI, Buildkite, GitLab and the rest. ## What you can send - **Snapshot tests** that your test framework already writes: [Jest](https://visualci.com/docs/snapshots/jest.md), [Vitest](https://visualci.com/docs/snapshots/vitest.md), [insta](https://visualci.com/docs/snapshots/insta.md), [syrupy](https://visualci.com/docs/snapshots/syrupy.md) and [rspec-snapshot](https://visualci.com/docs/snapshots/rspec-snapshot.md). - **[Screenshots](https://visualci.com/docs/screenshots.md)** from browsers and mobile apps. - **[PDFs](https://visualci.com/docs/pdfs.md)**, rendered page by page on VisualCI's servers. ## For agents Every page here is also Markdown: add `.md` to its URL without the trailing slash, or request it with `Accept: text/markdown`. [llms.txt](https://visualci.com/llms.txt) lists every page, and [llms-full.txt](https://visualci.com/llms-full.txt) has all of them on one page. --- # Quick start > Install the visualci CLI, create a project and a token, and send your first build from CI. Source: https://visualci.com/docs/quick-start/ All of VisualCI's documentation: https://visualci.com/llms.txt ## 1. Create a project Sign in at [visualci.com](https://visualci.com) with GitHub, create an organization and a project, and create a project token on the project's **Tokens** tab. Project tokens start with `vci_`. A coding agent can do this step for you over MCP, with `create_organization`, `create_project` and `create_project_token`. See [Coding agents](https://visualci.com/docs/agents.md). To get a GitHub check on pull requests, link the project to its repository on the project's **Settings** tab and install the VisualCI GitHub App on that repository. ## 2. Install the CLI On Linux (x86_64 or arm64) or macOS: ```sh curl -fsSL https://visualci.com/install.sh | sh ``` It installs to `/usr/local/bin`, or to `$VISUALCI_INSTALL_DIR`, and checks the download's SHA-256. On Linux x86_64 it downloads from visualci.com, so CI runners don't need to reach GitHub. On Linux arm64 and macOS it downloads the latest [GitHub release](https://github.com/DocSpring/visualci/releases). Anywhere else with Rust, build it from source: ```sh cargo install --git https://github.com/DocSpring/visualci visualci-cli ``` ## 3. Send a build Set `VISUALCI_TOKEN` to the project token in your CI provider's secrets. Then, in the CI job: ```sh export VISUALCI_BUILD_ID=$(visualci build create) # run your tests, then: visualci upload spec/artifacts # PDFs, screenshots, .json, .html and .txt files visualci upload --from auto src tests # snapshot files from Jest, Vitest, insta, syrupy or rspec-snapshot visualci build finalize ``` Snapshot names come from file paths. `visualci build create` reads the commit, branch and pull request from your CI provider's environment, or from git. See [Other CI providers](https://visualci.com/docs/ci/other.md) for the variables. ## 4. Review the changes A build with nothing to compare against is approved automatically and becomes the baseline. After that, each build is compared with the approved build of its nearest ancestor commit, or the default branch's latest approved build. When something changed, the CI job still passes and the GitHub check stays pending. Your agent reads the changes with `get_build` and `get_snapshot`, then approves them with `review`, or fixes the code and pushes again. Approved snapshots become the baseline for later builds on that branch. ## Next - [Set up your CI provider](https://visualci.com/docs/ci/github-actions.md) - [Connect your coding agent](https://visualci.com/docs/agents.md) - [Send your snapshot tests](https://visualci.com/docs/snapshots/jest.md) --- # Coding agents > Connect a coding agent to VisualCI's MCP server, so it can read each change, check it against the code, and approve it or fix it. Source: https://visualci.com/docs/agents/ All of VisualCI's documentation: https://visualci.com/llms.txt Coding agents write most code now, and they fix most CI failures. VisualCI is built so the agent that wrote the code also reviews what it changed. It doesn't need a person to open a screenshot. ## Connect The MCP server is at `https://visualci.com/mcp` (Streamable HTTP). Sign in with `Authorization: Bearer `: - a **personal access token** (`vcu_...`), created on your [account page](https://visualci.com/account): everything you can do, in every organization you belong to; - or a **project token** (`vci_...`), from a project's **Tokens** tab: that one project. With a project token, tools take no `project` argument. Claude Code: ```sh claude mcp add --transport http visualci https://visualci.com/mcp \ --header "Authorization: Bearer $VISUALCI_TOKEN" ``` Other agents take the same URL and header in their MCP settings. ## The review loop 1. CI sends a build and finishes. When something changed, the CI job still passes, and the pull request's VisualCI check stays pending. 2. The agent calls `list_builds` or `get_build` to see what needs attention: changed, added, removed and failed snapshots. 3. For each change, it calls `get_snapshot`. For PDFs and images that returns the base, head and diff images of the changed pages, the changed regions, the page's text diff, and lines that moved to another page. For text, JSON and HTML snapshots it returns the changes by JSON path (`items[3].price: 10 → 12`) and a unified diff. 4. The agent checks each change against the code and the task: - **Intended:** it calls `review` with `approve`. The approved snapshots become the baseline, and the check turns green. No new commit or CI run is needed. - **A bug:** it fixes the code and pushes again. The next build is compared with the same baseline. 5. `snapshot_history` shows one snapshot across recent builds, which helps find when a page started changing. Every review is recorded on the build. A review made with a project token is recorded without a user. Pages that legitimately render two ways can be accepted as a variant with `review_page` and `variant`. A change that should never count again can be ignored with `review_page` and `ignore`. ## Tools **Builds** - `list_builds`: a project's builds, newest first, optionally for one branch. - `get_build`: a build's status and the snapshots that need attention. - `get_snapshot`: one snapshot's comparison, page by page, with images. - `snapshot_history`: one snapshot across recent builds. **Reviews** - `review`: approve or reject a build's changes, or some snapshots' changes. - `review_page`: accept one page as a variant, or ignore one exact change in later builds too. **Running a comparison** - `create_build`, `upload_snapshots` (PDFs, PNG, JPEG and WebP images, or text, JSON and HTML, base64, up to 64 MB per call) and `finalize_build`. An agent can compare files without a CI run. **Organizations and projects** - `whoami`, `list_organizations`, `get_organization` (projects, plan, credits used this month and pack credits). - `create_organization`, `create_project`, `get_project`, `update_project` (settings and [ignore rules](https://visualci.com/docs/reference/api.md#project-settings)), `create_project_token`, `delete_project_token`. **Support** - `support_send`: send feedback about VisualCI itself. See [Support](https://visualci.com/docs/support.md). Choosing a plan and paying stay with a person, in the web app. --- # GitHub Actions > Send VisualCI builds from GitHub Actions, including runners from Blacksmith and Depot, with the right commit and pull request. Source: https://visualci.com/docs/ci/github-actions/ All of VisualCI's documentation: https://visualci.com/llms.txt Add `VISUALCI_TOKEN` (a project token) to the repository's Actions secrets. Then add these steps to the job that runs your tests: ```yaml jobs: test: runs-on: ubuntu-latest env: VISUALCI_TOKEN: ${{ secrets.VISUALCI_TOKEN }} steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 0 # VisualCI finds the baseline through the commit's ancestors - name: Install VisualCI run: | curl -fsSL https://visualci.com/install.sh | VISUALCI_INSTALL_DIR="$RUNNER_TEMP" sh echo "$RUNNER_TEMP" >> "$GITHUB_PATH" - name: Start a VisualCI build run: echo "VISUALCI_BUILD_ID=$(visualci build create)" >> "$GITHUB_ENV" - run: npm test -- -u # write snapshots instead of failing; see the snapshot guides - name: Send snapshots if: always() run: | visualci upload --from auto src tests visualci build finalize ``` ## Commit, branch and pull request On a `pull_request` event, `GITHUB_SHA` is a merge commit GitHub made. The CLI reads the branch's own commit and the pull request number from the event payload (`GITHUB_EVENT_PATH`) instead, so the check lands on the branch's commit. On other events it reads `GITHUB_SHA`. The branch comes from `GITHUB_HEAD_REF` on pull requests and `GITHUB_REF_NAME` otherwise. The checkout step above checks out that same commit, so the history the CLI sends starts from it. `fetch-depth: 0` gives the CLI the commit's history, which it sends so VisualCI can find the nearest approved ancestor. ## Blacksmith, Depot and other runners Blacksmith, Depot and other GitHub Actions runner providers run the same workflow with a different `runs-on`. Nothing else changes. ## Parallel jobs Matrix or sharded jobs can share one build. Each job creates the build with the same nonce, and finalizes its own shard: ```sh export VISUALCI_BUILD_ID=$(visualci build create --nonce "$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT" --shards 4) # ... tests and uploads ... visualci build finalize --shard "$SHARD_INDEX" # 0 to 3 ``` See [Other CI providers](https://visualci.com/docs/ci/other.md#parallel-jobs). --- # CircleCI > Send VisualCI builds from CircleCI, including parallel jobs that share one build. Source: https://visualci.com/docs/ci/circleci/ All of VisualCI's documentation: https://visualci.com/llms.txt Add `VISUALCI_TOKEN` (a project token) to the project's environment variables or a context. The CLI reads the commit from `CIRCLE_SHA1`, the branch from `CIRCLE_BRANCH` and the pull request from `CIRCLE_PULL_REQUEST`. ```yaml jobs: test: docker: - image: cimg/node:lts steps: - checkout - run: name: Install VisualCI command: curl -fsSL https://visualci.com/install.sh | VISUALCI_INSTALL_DIR="$HOME/bin" sh - run: name: Start a VisualCI build command: echo "export VISUALCI_BUILD_ID=$($HOME/bin/visualci build create)" >> "$BASH_ENV" - run: npm test -- -u # write snapshots instead of failing; see the snapshot guides - run: name: Send snapshots when: always command: | $HOME/bin/visualci upload --from auto src tests $HOME/bin/visualci build finalize ``` `$HOME/bin` must exist and be on the `PATH` in your image; adjust `VISUALCI_INSTALL_DIR` if not. ## Parallel jobs With `parallelism`, every container creates the build with the same nonce and gets the same build back. Each finalizes its own shard, numbered from 0: ```sh export VISUALCI_BUILD_ID=$(visualci build create --nonce "$CIRCLE_WORKFLOW_ID-$CIRCLE_JOB" --shards "$CIRCLE_NODE_TOTAL") # ... tests and uploads ... visualci build finalize --shard "$CIRCLE_NODE_INDEX" ``` The build is compared once every shard has finalized. The [Ruby helpers](https://visualci.com/docs/screenshots.md#ruby-and-rspec) upload and finalize their shard at exit, and read `CIRCLE_NODE_INDEX` themselves. If some containers can be skipped (for example, tests split by changed files), add `--subset` when creating the build, so snapshots that weren't sent aren't counted as removed. --- # Buildkite > Send VisualCI builds from Buildkite. The CLI reads the commit, branch and pull request from Buildkite's variables. Source: https://visualci.com/docs/ci/buildkite/ All of VisualCI's documentation: https://visualci.com/llms.txt The CLI reads the commit from `BUILDKITE_COMMIT`, the branch from `BUILDKITE_BRANCH` and the pull request from `BUILDKITE_PULL_REQUEST`. ```yaml steps: - label: ":test_tube: Tests" command: | curl -fsSL https://visualci.com/install.sh | VISUALCI_INSTALL_DIR="$$HOME/bin" sh export PATH="$$HOME/bin:$$PATH" export VISUALCI_BUILD_ID=$$(visualci build create) npm test -- -u visualci upload --from auto src tests visualci build finalize ``` `$$` keeps Buildkite from filling in the variables when the pipeline is uploaded, so the job's shell reads them when it runs. Store `VISUALCI_TOKEN` (a project token) in your secrets manager or agent environment hook. The commit's history helps VisualCI find the nearest approved ancestor. Buildkite's default checkout is a full clone; if you've made it shallow, deepen it before `visualci build create`. ## Parallel jobs For a step with `parallelism`, use the same nonce in every job and finalize each job's shard (in a script the step runs; in pipeline YAML, write `$$` for `$`): ```sh export VISUALCI_BUILD_ID=$(visualci build create --nonce "$BUILDKITE_BUILD_ID-$BUILDKITE_STEP_ID" --shards "$BUILDKITE_PARALLEL_JOB_COUNT") # ... tests and uploads ... visualci build finalize --shard "$BUILDKITE_PARALLEL_JOB" ``` --- # GitLab CI > Send VisualCI builds from GitLab CI. The CLI reads the commit, branch and merge request from GitLab's variables. Source: https://visualci.com/docs/ci/gitlab/ All of VisualCI's documentation: https://visualci.com/llms.txt The CLI reads the commit from `CI_COMMIT_SHA`, the branch from `CI_COMMIT_REF_NAME` and the merge request from `CI_MERGE_REQUEST_IID`. In a merged results pipeline it reports the source branch's commit and name (`CI_MERGE_REQUEST_SOURCE_BRANCH_SHA` and `CI_MERGE_REQUEST_SOURCE_BRANCH_NAME`), not the merge commit. ```yaml visual: image: node:lts variables: GIT_DEPTH: 0 # VisualCI finds the baseline through the commit's ancestors script: - curl -fsSL https://visualci.com/install.sh | VISUALCI_INSTALL_DIR=/usr/local/bin sh - export VISUALCI_BUILD_ID=$(visualci build create) - npm test -- -u - visualci upload --from auto src tests - visualci build finalize --wait ``` Add `VISUALCI_TOKEN` (a project token) as a masked CI/CD variable. ## Reviewing without a GitHub check VisualCI posts its check to GitHub pull requests only. For a GitLab repository, choose how the pipeline learns the result with the project's CI mode (on its **Settings** tab, or `update_project` over MCP): - `wait`: `visualci build finalize --wait` waits until the changes are approved or rejected, then passes or fails. - `strict`: the job fails on any change that hasn't been approved. - `review` (the default): the job passes, and the changes wait on VisualCI for your agent to review. `finalize --wait` exits 0 when CI should pass, 1 when it should fail, and 3 when it timed out (after 900 seconds, or `--timeout`). --- # Other CI providers > Use VisualCI from any CI system. The CLI reads Jenkins, Bitbucket Pipelines, Semaphore and Travis CI's variables, and takes environment variables everywhere else. Source: https://visualci.com/docs/ci/other/ All of VisualCI's documentation: https://visualci.com/llms.txt The CLI runs anywhere it can reach `https://visualci.com`. It needs a project token and three facts about the run: the commit, the branch and, for pull requests, the number. ## Environment variables | Variable | What it is | | --- | --- | | `VISUALCI_TOKEN` | A project token (`vci_...`). Required. | | `VISUALCI_BUILD_ID` | The build that `upload` and `finalize` add to. Set it from `visualci build create`. | | `VISUALCI_COMMIT` | The commit the files come from. Default: your CI provider's variable (below), then `git rev-parse HEAD`. | | `VISUALCI_BRANCH` | The branch. Default: your CI provider's variable, then `git rev-parse --abbrev-ref HEAD`. | | `VISUALCI_PR` | The pull request number. Default: your CI provider's variable. Set it to `false` for no pull request. | | `VISUALCI_API_URL` | The server, for self-hosting. Default: `https://visualci.com`. | ## CI providers the CLI reads The CLI works out which provider it's running on and reads that provider's variables. On a pull request it reports the branch's own commit and name, where the provider gives them, rather than a merge commit and the target branch. | Provider | Commit | Branch | Pull request | | --- | --- | --- | --- | | [CircleCI](https://visualci.com/docs/ci/circleci.md) | `CIRCLE_SHA1` | `CIRCLE_BRANCH` | `CIRCLE_PULL_REQUEST` | | [GitHub Actions](https://visualci.com/docs/ci/github-actions.md) | the event's head commit, or `GITHUB_SHA` | `GITHUB_HEAD_REF`, or `GITHUB_REF_NAME` | the event's number | | [Buildkite](https://visualci.com/docs/ci/buildkite.md) | `BUILDKITE_COMMIT` | `BUILDKITE_BRANCH` | `BUILDKITE_PULL_REQUEST` | | [GitLab CI](https://visualci.com/docs/ci/gitlab.md) | `CI_MERGE_REQUEST_SOURCE_BRANCH_SHA`, or `CI_COMMIT_SHA` | `CI_MERGE_REQUEST_SOURCE_BRANCH_NAME`, or `CI_COMMIT_REF_NAME` | `CI_MERGE_REQUEST_IID` | | Jenkins | `GIT_COMMIT` | `CHANGE_BRANCH`, `BRANCH_NAME`, or `GIT_BRANCH` | `CHANGE_ID` | | Bitbucket Pipelines | `BITBUCKET_COMMIT` | `BITBUCKET_BRANCH` | `BITBUCKET_PR_ID` | | Semaphore | `SEMAPHORE_GIT_PR_SHA`, or `SEMAPHORE_GIT_SHA` | `SEMAPHORE_GIT_PR_BRANCH`, or `SEMAPHORE_GIT_BRANCH` | `SEMAPHORE_GIT_PR_NUMBER` | | Travis CI | `TRAVIS_PULL_REQUEST_SHA`, or `TRAVIS_COMMIT` | `TRAVIS_PULL_REQUEST_BRANCH`, or `TRAVIS_BRANCH` | `TRAVIS_PULL_REQUEST` | On Jenkins, `GIT_COMMIT` and `GIT_BRANCH` come from the Git plugin, and `CHANGE_*` and `BRANCH_NAME` from multibranch pipelines. ## Other providers Elsewhere, set the variables yourself. Most CI systems check out a commit without a branch, so `git rev-parse --abbrev-ref HEAD` prints `HEAD` and the build would record that as its branch. On TeamCity, for example: ```sh export VISUALCI_COMMIT="%build.vcs.number%" export VISUALCI_BRANCH="%teamcity.build.branch%" ``` ## The commit's history `visualci build create` sends up to 100 ancestor commits from `git rev-list`. VisualCI compares the build with the approved build of the nearest one, and falls back to the default branch's latest approved build. A shallow clone has no ancestors to send, so every build compares with the default branch. Fetch enough history before creating the build. ## Parallel jobs Parallel jobs can share one build: - Each job runs `visualci build create --nonce --shards `. The same nonce returns the same build, so pick something all the jobs share, such as the workflow's id plus the job's name. - Each job uploads its files and runs `visualci build finalize --shard `, with shards numbered from 0. - VisualCI compares the build once all `n` shards have finalized. Add `--subset` when some jobs may not run. Snapshots that weren't sent are then carried forward instead of counted as removed. ## Several suites in one project `visualci build create --name ` keeps separate builds, and separate baselines, for suites that run in different jobs, such as `--name rspec` and `--name jest`. ## Waiting for the result `visualci build finalize --wait` waits until VisualCI has compared the build and prints what changed. It exits 0 when CI should pass, 1 when it should fail, and 3 when it timed out. Under the default `review` mode a build with changes still passes: the GitHub check holds the pull request instead. See [GitLab CI](https://visualci.com/docs/ci/gitlab.md#reviewing-without-a-github-check) for the other modes. --- # Jest > Send Jest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build. Source: https://visualci.com/docs/snapshots/jest/ All of VisualCI's documentation: https://visualci.com/llms.txt Jest writes snapshots to `__snapshots__/*.snap` next to each test file. VisualCI reads those files and splits them into one snapshot per test, so a changed snapshot is reviewed on VisualCI instead of failing the build. ## 1. Stop committing snapshot files The baselines live on VisualCI, so the snapshot files don't belong in git. Add them to `.gitignore`: ```gitignore __snapshots__/ ``` Then remove the committed copies (`git rm -r --cached` on those paths). In a new project, the first build has nothing to compare against and becomes the baseline. In a project that already has builds, the snapshots show as added the first time, for your agent to approve once. ## 2. Write snapshots instead of failing Run Jest with `-u` (`--updateSnapshot`), locally and in CI: ```sh npx jest -u ``` With no snapshot files in the checkout, Jest would treat every snapshot as new. In CI, Jest's `--ci` mode fails a test with a new snapshot instead of writing it; `-u` makes Jest write every snapshot, so the run only fails on real test failures. VisualCI does the comparing. ## 3. Upload after the tests In the CI job, after the tests (see [Quick start](https://visualci.com/docs/quick-start.md) for creating the build): ```sh visualci upload --from jest src visualci build finalize ``` Snapshot names are the file's path without `__snapshots__/` and the extension, then the test's name. `--from auto` detects each file's framework, for repositories with several. When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](https://visualci.com/docs/agents.md). ## Ignore volatile values Timestamps, generated IDs and other values that change on every run would show up as changes. Ignore them per project, on the project's **Settings** tab or with `update_project` over MCP: - `json_paths` for JSON snapshots: `$.generated_at`, `$.items[*].id`, `$..request_id`; - `text_patterns`, regular expressions for every text snapshot, such as `\d{4}-\d{2}-\d{2}`. Matching values are replaced with `[ignored]` before comparing. ## Before you push `visualci check` runs the same comparison from your laptop: ```sh npx jest -u && visualci check --from jest src ``` It creates a local build, waits for the result and prints what changed, with a link to the diff. Local builds can be viewed but not approved yet: the change is approved on the CI build of the pushed commit. --- # Vitest > Send Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build. Source: https://visualci.com/docs/snapshots/vitest/ All of VisualCI's documentation: https://visualci.com/llms.txt Vitest writes snapshots to `__snapshots__/*.snap` next to each test file, in the same format as Jest. VisualCI reads those files and splits them into one snapshot per test. ## 1. Stop committing snapshot files The baselines live on VisualCI, so the snapshot files don't belong in git. Add them to `.gitignore`: ```gitignore __snapshots__/ ``` Then remove the committed copies (`git rm -r --cached` on those paths). In a new project, the first build has nothing to compare against and becomes the baseline. In a project that already has builds, the snapshots show as added the first time, for your agent to approve once. ## 2. Write snapshots instead of failing Run Vitest with `-u` (`--update`), locally and in CI: ```sh npx vitest run -u ``` In CI (when `CI` is set), Vitest doesn't write snapshots and fails on missing ones. With no snapshot files in the checkout, every snapshot is missing; `-u` makes Vitest write them all, so the run only fails on real test failures. VisualCI does the comparing. ## 3. Upload after the tests In the CI job, after the tests (see [Quick start](https://visualci.com/docs/quick-start.md) for creating the build): ```sh visualci upload --from vitest src visualci build finalize ``` Snapshot names are the file's path without `__snapshots__/` and the extension, then the test's name. `--from auto` detects each file's framework, for repositories with several. When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](https://visualci.com/docs/agents.md). ## Ignore volatile values Timestamps, generated IDs and other values that change on every run would show up as changes. Ignore them per project, on the project's **Settings** tab or with `update_project` over MCP: - `json_paths` for JSON snapshots: `$.generated_at`, `$.items[*].id`, `$..request_id`; - `text_patterns`, regular expressions for every text snapshot, such as `\d{4}-\d{2}-\d{2}`. Matching values are replaced with `[ignored]` before comparing. ## Before you push `visualci check` runs the same comparison from your laptop: ```sh npx vitest run -u && visualci check --from vitest src ``` It creates a local build, waits for the result and prints what changed, with a link to the diff. Local builds can be viewed but not approved yet: the change is approved on the CI build of the pushed commit. --- # insta (Rust) > Send insta snapshot files to VisualCI, so a changed snapshot waits for review instead of failing cargo test. Source: https://visualci.com/docs/snapshots/insta/ All of VisualCI's documentation: https://visualci.com/llms.txt insta writes `.snap` files, by default to a `snapshots/` directory next to each test file. VisualCI reads them (without insta's header) as one snapshot per file. ## 1. Stop committing snapshot files The baselines live on VisualCI, so the snapshot files don't belong in git. Add them to `.gitignore`: ```gitignore **/snapshots/*.snap **/snapshots/*.snap.new ``` Then remove the committed copies (`git rm -r --cached` on those paths). In a new project, the first build has nothing to compare against and becomes the baseline. In a project that already has builds, the snapshots show as added the first time, for your agent to approve once. ## 2. Write snapshots instead of failing Have insta write every snapshot and let the assertions pass, locally and in CI: ```sh INSTA_UPDATE=always INSTA_FORCE_PASS=1 cargo test ``` By default insta doesn't write snapshots in CI and fails on any mismatch. `INSTA_UPDATE=always` overwrites the `.snap` files in place, and `INSTA_FORCE_PASS=1` keeps a snapshot assertion from failing the test. VisualCI does the comparing. ## 3. Upload after the tests In the CI job, after the tests (see [Quick start](https://visualci.com/docs/quick-start.md) for creating the build): ```sh visualci upload --from insta . visualci build finalize ``` Snapshot names are the file's path without the extension. `--from auto` detects each file's framework, for repositories with several. When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](https://visualci.com/docs/agents.md). ## Ignore volatile values Timestamps, generated IDs and other values that change on every run would show up as changes. Ignore them per project, on the project's **Settings** tab or with `update_project` over MCP: - `json_paths` for JSON snapshots: `$.generated_at`, `$.items[*].id`, `$..request_id`; - `text_patterns`, regular expressions for every text snapshot, such as `\d{4}-\d{2}-\d{2}`. Matching values are replaced with `[ignored]` before comparing. ## Before you push `visualci check` runs the same comparison from your laptop: ```sh INSTA_UPDATE=always INSTA_FORCE_PASS=1 cargo test && visualci check --from insta . ``` It creates a local build, waits for the result and prints what changed, with a link to the diff. Local builds can be viewed but not approved yet: the change is approved on the CI build of the pushed commit. --- # syrupy (pytest) > Send syrupy snapshot files to VisualCI, so a changed snapshot waits for review instead of failing pytest. Source: https://visualci.com/docs/snapshots/syrupy/ All of VisualCI's documentation: https://visualci.com/llms.txt syrupy writes `.ambr` files to a `__snapshots__` directory next to each test file. VisualCI splits them into one snapshot per test. ## 1. Stop committing snapshot files The baselines live on VisualCI, so the snapshot files don't belong in git. Add them to `.gitignore`: ```gitignore __snapshots__/ ``` Then remove the committed copies (`git rm -r --cached` on those paths). In a new project, the first build has nothing to compare against and becomes the baseline. In a project that already has builds, the snapshots show as added the first time, for your agent to approve once. ## 2. Write snapshots instead of failing Run pytest with `--snapshot-update`, locally and in CI: ```sh pytest --snapshot-update ``` syrupy fails a test whose snapshot is missing, and with no snapshot files in the checkout every snapshot is missing. `--snapshot-update` writes them all (and deletes unused ones), so the run only fails on real test failures. VisualCI does the comparing. ## 3. Upload after the tests In the CI job, after the tests (see [Quick start](https://visualci.com/docs/quick-start.md) for creating the build): ```sh visualci upload --from syrupy tests visualci build finalize ``` Snapshot names are the file's path without `__snapshots__/` and the extension, then the test's name. `--from auto` detects each file's framework, for repositories with several. When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](https://visualci.com/docs/agents.md). ## Ignore volatile values Timestamps, generated IDs and other values that change on every run would show up as changes. Ignore them per project, on the project's **Settings** tab or with `update_project` over MCP: - `json_paths` for JSON snapshots: `$.generated_at`, `$.items[*].id`, `$..request_id`; - `text_patterns`, regular expressions for every text snapshot, such as `\d{4}-\d{2}-\d{2}`. Matching values are replaced with `[ignored]` before comparing. ## Before you push `visualci check` runs the same comparison from your laptop: ```sh pytest --snapshot-update && visualci check --from syrupy tests ``` It creates a local build, waits for the result and prints what changed, with a link to the diff. Local builds can be viewed but not approved yet: the change is approved on the CI build of the pushed commit. --- # rspec-snapshot (Ruby) > Send rspec-snapshot files to VisualCI, so a changed snapshot waits for review instead of failing RSpec. Source: https://visualci.com/docs/snapshots/rspec-snapshot/ All of VisualCI's documentation: https://visualci.com/llms.txt rspec-snapshot writes one `.snap` file per snapshot to a `__snapshots__` directory next to each spec file. VisualCI reads each file as one snapshot. ## 1. Stop committing snapshot files The baselines live on VisualCI, so the snapshot files don't belong in git. Add them to `.gitignore`: ```gitignore __snapshots__/ ``` Then remove the committed copies (`git rm -r --cached` on those paths). In a new project, the first build has nothing to compare against and becomes the baseline. In a project that already has builds, the snapshots show as added the first time, for your agent to approve once. ## 2. Write snapshots instead of failing Run RSpec with `UPDATE_SNAPSHOTS=true`, locally and in CI: ```sh UPDATE_SNAPSHOTS=true bundle exec rspec ``` rspec-snapshot writes a snapshot that doesn't exist yet, and `UPDATE_SNAPSHOTS` makes it overwrite existing ones instead of failing, so the run only fails on real test failures. VisualCI does the comparing. The [Ruby helpers](https://visualci.com/docs/screenshots.md#ruby-and-rspec) are another way: `expect_json_to_match_snapshot`, `expect_html_to_match_snapshot` and `expect_text_to_match_snapshot` send values to VisualCI directly, with no snapshot files. ## 3. Upload after the tests In the CI job, after the tests (see [Quick start](https://visualci.com/docs/quick-start.md) for creating the build): ```sh visualci upload --from rspec spec visualci build finalize ``` Snapshot names are the file's path without `__snapshots__/` and the extension. `--from auto` detects each file's framework, for repositories with several. When a snapshot changed, CI still passes and the pull request's check waits. Your coding agent reads the change with `get_snapshot`, which shows text snapshots as a unified diff and JSON as changes by path (`items[3].price: 10 → 12`), then approves it or fixes the code. See [Coding agents](https://visualci.com/docs/agents.md). ## Ignore volatile values Timestamps, generated IDs and other values that change on every run would show up as changes. Ignore them per project, on the project's **Settings** tab or with `update_project` over MCP: - `json_paths` for JSON snapshots: `$.generated_at`, `$.items[*].id`, `$..request_id`; - `text_patterns`, regular expressions for every text snapshot, such as `\d{4}-\d{2}-\d{2}`. Matching values are replaced with `[ignored]` before comparing. ## Before you push `visualci check` runs the same comparison from your laptop: ```sh UPDATE_SNAPSHOTS=true bundle exec rspec && visualci check --from rspec spec ``` It creates a local build, waits for the result and prints what changed, with a link to the diff. Local builds can be viewed but not approved yet: the change is approved on the CI build of the pushed commit. --- # Screenshots > Send browser and mobile screenshots to VisualCI, with a baseline per platform and thresholds for anti-aliasing. Source: https://visualci.com/docs/screenshots/ All of VisualCI's documentation: https://visualci.com/llms.txt VisualCI compares PNG, JPEG and WebP images. Send the screenshots your tests already take, from Playwright, Capybara, Cypress, XCUITest or anything else: ```sh visualci upload tmp/screenshots ``` Each file's path, relative to the directory you upload, without the extension, is its snapshot name. The CLI fingerprints each image by its pixels first, so an image VisualCI has already seen isn't uploaded or diffed again. ## Platforms Screenshots of the same page differ between browsers, operating systems and devices. Give each its own baseline with a platform tag: ```sh visualci upload --platform chrome-linux tmp/screenshots/chrome visualci upload --platform ios-26.1/iphone-16 tmp/screenshots/ios ``` The platform is part of the baseline's key: `signup_form` on `chrome-linux` and `signup_form` on `ios-26.1/iphone-16` are compared separately. Screenshots are taken on the machine that runs the tests, so a laptop's screenshots won't match CI's pixel for pixel. Compare screenshots from CI with each other. ## Thresholds By default every pixel must match. Browsers draw text and edges with anti-aliasing that varies slightly between runs, so browser screenshots usually need a threshold: ```sh visualci upload --threshold 0.1 tmp/screenshots ``` The threshold is the colour difference (0 to 1) below which two pixels count as the same, as in pixelmatch; 0.1 is pixelmatch's default. The project's **Settings** tab has a project-wide threshold, and a setting that skips pixels that look like anti-aliasing (with a threshold above 0). ## Ruby and RSpec The `visualci` gem queues snapshots during an RSpec run and uploads them with the CLI when the run ends: ```ruby # Gemfile gem 'visualci', group: :test ``` ```ruby # spec_helper.rb require 'visualci/rspec' RSpec.configure { |c| c.include VisualCI::RSpec } # in a spec expect_image_to_match_visual('signup_form/dark/1280', screenshot_path, threshold: 0.1) expect_pdf_to_match_visual('invoice_typical', pdf_path) expect_json_to_match_snapshot('api/users/show', JSON.parse(response.body)) expect_html_to_match_snapshot('emails/welcome', mail.html_part.body.to_s) expect_text_to_match_snapshot('reports/monthly', report.to_s) ``` The helpers don't fail the example. Changes are reviewed on VisualCI, where the GitHub check waits; a project in `strict` mode fails the CI step instead, with `visualci build finalize --wait`. They're on when `VISUALCI_TOKEN` is set (and `VISUALCI_DISABLED` isn't). The build comes from `VISUALCI_BUILD_ID`. In CI, create the build once before the shards run: ```sh export VISUALCI_BUILD_ID=$(visualci build create --shards "$CIRCLE_NODE_TOTAL") bundle exec rspec # each shard uploads and finalizes its own snapshots at exit ``` Each shard finalizes the shard named by `VISUALCI_SHARD`, or `CIRCLE_NODE_INDEX`. Without `VISUALCI_BUILD_ID`, the helpers create a local build, which can be viewed but not approved. --- # PDFs > How VisualCI renders, fingerprints and compares PDFs, page by page, in one pinned environment. Source: https://visualci.com/docs/pdfs/ All of VisualCI's documentation: https://visualci.com/llms.txt Send the PDFs your tests generate: ```sh visualci upload spec/artifacts/pdfs ``` ## One renderer for every run A Mac and a Linux CI machine rasterize the same PDF differently. So VisualCI renders PDFs itself, with one pinned renderer and its fonts, in a Linux image on its servers. A run on a laptop and a run in CI get the same pixels and the same baseline. Each project picks: - the renderer: `pdfbox` (the default) or `mutool`; - the resolution: 36 to 600 dpi. Both are on the project's **Settings** tab, or `update_project` over MCP. `--engine pdfbox|mutool` overrides the renderer for some uploads. The renderers run sandboxed, with no network access. Documents are compared exactly by default: any changed pixel is a change. ## Fingerprints Before uploading, the CLI fingerprints each PDF by what it draws. The fingerprint leaves out creation dates, document IDs and producer strings, so a regenerated PDF that draws the same thing still matches, and nothing is uploaded, rendered or diffed. Each page is fingerprinted too, 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. `visualci compare-runs ` checks that your PDFs' fingerprints are stable: run your tests twice, then compare the two output directories. It exits 1 when a fingerprint differs, which usually means the PDF draws something that changes on every run, such as the current time. ## What a change looks like For each changed page, `get_snapshot` (and the web app) shows: - the base, head and diff images, with changed regions boxed; - the page's text diff: the renderer extracts each page's text; - lines that moved to another page, the usual sign of a page-break bug; - inserted and removed pages, next to an empty slot on the other side. --- # CLI reference > Every visualci command and option, and the environment variables the CLI reads. Source: https://visualci.com/docs/reference/cli/ All of VisualCI's documentation: https://visualci.com/llms.txt Install it on Linux or macOS with `curl -fsSL https://visualci.com/install.sh | sh`, or anywhere with Rust with `cargo install --git https://github.com/DocSpring/visualci visualci-cli`. `visualci --help` and `visualci --help` print the same options. Every command that talks to the server takes `--token` (default `$VISUALCI_TOKEN`, a project token) and `--api-url` (default `$VISUALCI_API_URL`, else `https://visualci.com`). Errors exit with status 2. ## visualci build create Creates a build and prints its id. Export it as `VISUALCI_BUILD_ID`. | Option | Meaning | | --- | --- | | `--name ` | A suite's name, for several suites in one project. Each name has its own builds and baselines. Default `default`. | | `--shards ` | How many parallel shards will finalize this build. Default 1. | | `--nonce ` | Shards that create the build with the same nonce get the same build back. | | `--subset` | The build has only some of the project's snapshots: missing ones are carried forward, not removed. | | `--mode ci\|local` | Default `ci`. Local builds can be viewed but not approved. | It reads the commit, branch and pull request from the environment; see [Other CI providers](https://visualci.com/docs/ci/other.md#environment-variables). ## visualci upload Adds files or directories of them to a build: PDFs, PNG, JPEG and WebP images, and `.txt`, `.json` and `.html` text. Snapshot names come from the file paths, relative to a directory argument, without the extension. Files VisualCI already has aren't uploaded again. | Option | Meaning | | --- | --- | | `--build ` | Default `$VISUALCI_BUILD_ID`. | | `--from ` | Read test frameworks' snapshot files and send one snapshot per test: `jest`, `vitest`, `insta`, `syrupy`, `rspec` (rspec-snapshot), or `auto` to detect each file's. Directories are searched for `.snap` and `.ambr` files. | | `--prefix ` | Added before every snapshot name. | | `--platform ` | A platform tag, part of the baseline's key, such as `ios-26.1/iphone-16`. | | `--threshold <0..1>` | 0 is exact; above 0, the colour difference below which two pixels count as the same. | | `--engine pdfbox\|mutool` | The renderer for these PDFs. Default: the project's. | | `--format text\|json\|html` | How text files are compared. Default: from each file's extension, else plain text. | | `--manifest ` | A JSON array or JSON Lines of `{"name", "path", "platform"?, "threshold"?, "engine"?, "format"?}`, for test helpers that choose names themselves. | ## visualci snapshot `visualci snapshot ` adds one file under the given name. It takes the same options as `upload`, except `--manifest`. ## visualci build finalize Finishes the build, or one shard of it with `--shard ` (numbered from 0). VisualCI compares the build once every shard has finalized. With `--wait`, it waits for the result (up to `--timeout` seconds, default 900), prints what changed and exits 0 when CI should pass, 1 when it should fail, or 3 when it timed out. Under the project's default `review` mode, a build with changes passes. ## visualci build status Prints a build's status as JSON. `--build `, default `$VISUALCI_BUILD_ID`. ## visualci check `visualci check ` is a one-shot local check: it creates a local build, uploads, waits and prints what changed, with a link. The server renders the PDFs, so a laptop gets the same pixels as CI. It takes `upload`'s options, plus `--name` and `--timeout` (default 600). It exits 0 when nothing changed and 1 when something did. ## Local tools These don't need a token. - `visualci fingerprint ` prints each PDF's or image's fingerprint as JSON. - `visualci diff ` compares two images and prints the result as JSON. Options: `--threshold`, `--ignore-anti-aliasing`, and `--overlay ` to write the changes in red. - `visualci compare-runs ` compares the fingerprints of same-named PDFs from two runs of your tests, and exits 1 when any differ. --- # API reference > VisualCI's CI API (builds, snapshots, finalize), its project settings, and the MCP server for everything else. Source: https://visualci.com/docs/reference/api/ All of VisualCI's documentation: https://visualci.com/llms.txt The CLI uses this API. Most integrations should use the CLI, which fingerprints files and uploads them for you. Coding agents use the [MCP server](https://visualci.com/docs/agents.md), which covers everything the web app does. All requests go to `https://visualci.com/api/v1` with `Authorization: Bearer ` (`vci_...`). Bodies and responses are JSON. ## Create a build `POST /api/v1/builds` ```json { "commit": "3f9c2e1…", "branch": "add-tax-breakdown", "pr_number": 412, "parent_commits": ["a81b0c4…", "77de2f9…"], "mode": "ci", "name": "default", "shard_total": 1, "subset": false, "nonce": null } ``` `commit` and `branch` are required. `parent_commits` are ancestor commits, nearest first, for finding the baseline. Builds created with the same `nonce` are the same build. The response is a build (below). ## Add snapshots `POST /api/v1/builds/{id}/snapshots`, with up to 1,000 snapshots per request: ```json { "snapshots": [ { "name": "invoice_typical", "platform": "", "kind": "document", "fingerprint": "…", "sha256": "…", "size": 48213, "content_type": "application/pdf" } ] } ``` - `kind` is `document` (a PDF), `image` or `text`. - `fingerprint` is the PDF fingerprint for documents, the pixel fingerprint for images, and the SHA-256 of the text for text. `visualci fingerprint ` prints the first two. - Optional: `threshold`, `ignore_anti_aliasing`, `engine` (`pdfbox` or `mutool`), `format` (`text`, `json` or `html`; without it the content type decides). The response lists each snapshot with an `upload_url`. PUT the file's bytes there with its `content_type`. `upload_url` is `null` when VisualCI already has the file. ## Finalize `POST /api/v1/builds/{id}/finalize`, with an empty body or `{"shard": 0}`. VisualCI compares the build once every shard has finalized. The response is the build. ## Read a build `GET /api/v1/builds/{id}` returns the build: | Field | Meaning | | --- | --- | | `id`, `number`, `project`, `url` | Which build, and its page in the web app. | | `state` | `receiving`, `processing`, `completed` or `failed`. | | `conclusion` | `unchanged`, `changes` or `failed`, once completed. | | `review_state` | `pending`, `approved`, `auto_approved` or `rejected`, or `none` for local builds. | | `ci_mode` | The project's CI mode. | | `passed` | Whether CI should pass under that mode. `null` while running, or while waiting for review in `wait` mode. | | `stats` | Counts: `total`, `unchanged`, `changed`, `added`, `removed`, `ignored`, `failed`, `pending`. | | `error` | Why the build failed, when it did. | `GET /api/v1/builds/{id}/snapshots` lists the build's snapshots: `id`, `name`, `platform`, `kind`, `state`, `review` and `error`. Add `?state=changes` for the changed, added and removed ones, or any single state. ## Feedback `POST /api/v1/support/feedback`: see [Support](https://visualci.com/docs/support.md). ## Project settings Each project's settings are on its **Settings** tab, and `get_project` and `update_project` read and change them over MCP: | Setting | Meaning | | --- | --- | | `default_branch` | The branch whose builds become the baseline automatically. | | `ci_mode` | `review` (the default: CI passes and the check waits for review), `strict` (CI fails on unreviewed changes) or `wait` (`finalize --wait` waits for a review). | | `renderer` | `pdfbox` or `mutool`, for PDFs. | | `dpi` | Render resolution for PDFs, 36 to 600. | | `threshold` | 0 is exact; above 0, the colour difference below which two pixels count as the same. | | `ignore_anti_aliasing` | Skip pixels that look like anti-aliasing. | | `ignore_rules` | Values in text snapshots that change on every run: `json_paths` (`$.generated_at`, `$.items[*].id`, `$..request_id`) and `text_patterns` (regular expressions). Matches are replaced with `[ignored]` before comparing. | | `github_repo`, `github_installation_id` | The GitHub repository that gets VisualCI's check, and the VisualCI GitHub App's installation. | --- # Credits and plans > What a VisualCI build costs in credits, the Free and Team plans, and prepaid credit packs. Source: https://visualci.com/docs/reference/credits/ All of VisualCI's documentation: https://visualci.com/llms.txt Builds use credits. Work VisualCI has done before is never done again: a PDF page it has drawn isn't drawn again, and an image it has compared isn't compared again. | Work | Credits | | --- | --- | | A snapshot checked | 1 | | A text diff (a text, JSON or HTML snapshot that changed) | 5 | | An image diff (a changed page or screenshot) | 10 | | A PDF page drawn | 20 | Snapshots carried forward from skipped shards (`--subset`) cost nothing. ## Plans - **Free:** 25,000 credits a month. When they're used up, builds stop being compared until the allowance renews on the 1st. - **Team:** $29 a month for 1,000,000 credits, then credit packs. ## Credit packs On Team, a pack is 500,000 credits for $15, paid up front. Pack credits don't expire. Builds use the month's allowance first, then pack credits. - **Buy packs** on the organization's billing page, 1 to 20 at a time. - **Automatic reloads** buy a pack with the card on file when fewer than 100,000 credits are left. Each organization sets how many packs reloads may buy in a month: 4 by default, 0 to 50. An organization that has used its allowance and has no pack credits gets a failed build that says so, instead of a comparison. `get_organization` over MCP shows the plan, the credits used this month, pack credits and what each thing costs. Choosing a plan and paying stay with a person, in the web app. --- # Support > How coding agents and people send feedback about VisualCI, through the MCP server or the API. Source: https://visualci.com/docs/support/ All of VisualCI's documentation: https://visualci.com/llms.txt ## For agents VisualCI implements [Standard Support](https://standardsupport.dev) level 1: one-way feedback from agents about VisualCI itself. Send it when something about VisualCI got in your way, once per problem, and tell the user what you sent. Nobody replies. Never include secrets or the user's data. **Over MCP:** `support_send` with action `feedback`, and the fields `title`, `kind` and `description`. **Over HTTP:** `POST https://visualci.com/api/v1/support/feedback` with the same fields as JSON, and a personal access token or a project token: ```sh curl -X POST https://visualci.com/api/v1/support/feedback \ -H "Authorization: Bearer $VISUALCI_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title": "upload --from insta skips .snap.new files", "kind": "missing_feature", "description": "..."}' ``` `kind` is one of `bug`, `crash`, `wrong_result`, `confusing`, `missing_feature`, `docs`, `question` or `other`. The optional fields from the spec are accepted too: `impact`, `task`, `request_ids`, `tool`, `error`, `suggestion`, `source`, `session`, `agent` and `idempotency_key`.