Docs

Everything needed to X-ray your pull requests with visualdiff: by link, in CI, by webhook, or on your own Railway project.

Quick start

Paste a pull request link into the inbox. Public repositories need nothing else. For a private repository, add a token for its host in Settings, or paste the output of git diff origin/main...HEAD instead of a link.

The report opens on the review plan: the hunks to read closely, to skim and to skip, in reading order, inside the time budget at the top. Under the header, says vs does sets what the title and description say beside what the change does. The other tabs answer one question each: what to do so the risk comes down (lower the risk), where the change sits (map), what looks wrong (findings), whether it does what it says (intent), who wrote it (provenance), what it tests and imports, and which running resources it reaches.

Repositories

A pull request shows what a change does. A repository review shows the whole branch as it stands: the default branch unless you name another. visualdiff downloads that commit from the host as one archive with a read-only credential, reads it in memory and keeps the result, never the source: paths, names, counts, line numbers and masked excerpts.

  • The design as built. The blueprint: layers as decks, packages as rooms sized by code, imports as runs between them, one request followed from its route to what it calls. Graded in nine areas (architecture, dependencies, configuration, security, resilience, observability, testing, build, maintainability), with every check listed as passed or failed and each finding placed on a file and line with why it matters, what to do and the practice it comes from.
  • Every line checked. The rules a pull request meets run over the whole code: secrets, injection, weak crypto, poisoned code and CI attacks, complexity per function, duplication. The quality ratings and gate measure the whole code rather than the new code.
  • The code as a map. Modules joined by their imports, with overlays for the layer, the hops from the internet, findings and the blast radius of any module; the dependency layers and a package dependency matrix with the imports that run the wrong way and the cycles.
  • What it reaches. Outbound hosts, inbound routes and listeners, outside vendors, data stores and services named in configuration, libraries by purpose, design patterns, runtimes and their end of life, CI, Docker and API specs.
  • History and estate. Every review of a branch is kept, so any two can be compared with the changes painted on the blueprint. Several repositories drawn together show which call which, what they share and what nothing reaches, each inside its boundary: a system of repositories that reach one another, a family named alike, or the rest by language.

Public repositories need nothing. For a private one, connect its host in Integrations with read access (GitHub: Contents read; GitLab: read_api and read_repository; Bitbucket: Repositories read; Azure DevOps: Code read; Gitea: read:repository), then pick the repository from the connection. Branches of up to 120 MB compressed are read; very large repositories are reviewed up to 8,000 source files, and the review says what it left out.

curl -s https://visualdiff.ai/api/v1/repos/review \
  -H "Authorization: Bearer $VISUALDIFF_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com/acme/api"}' \
  | jq '.review.blueprint.after.overall, .url'

# A named branch, as Markdown
curl -s https://visualdiff.ai/api/v1/repos/review -H "Authorization: Bearer $VISUALDIFF_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com/acme/api", "branch": "release/2.4", "format": "markdown"}'

Many at once: sweeps. Pick several repositories from a connection, or every repository it can see (“Show all” lists as many as the plan does), and they go to the review worker as one sweep: it reviews several side by side in the background, each on its default branch, and keeps each one as it finishes, so the page can be closed. Every sweep is kept on the sweeps page with when and by whom it started, what it covered, its counts and how long it took; reviews that failed are shown first, with the reason, and at the top of the repositories page until they succeed. A host that asks to slow down is tried again after the wait it names. Over the API, POST /api/v1/repos/sweeps with {"connection": "…", "repos": "all"} answers at once with the sweep to follow.

Plans. A workspace reviews up to 100 repositories on Free, 1,000 on Team, 3,000 on Business and 10,000 on Enterprise; each counts once, so reviewing one again is never refused, and a sweep that names more new repositories than fit reviews the ones that do and says how many were left out. Reviews side by side (2, 6, 10, 16), repositories drawn together (10, 100, 150, 250), connections, API keys and infrastructure maps follow the plan too; Settings shows how much of each is used. See pricing.

CI recipes

The CLI is one file with no dependencies. It diffs HEAD against the merge base with the target branch, reads the base tree, manifests and .visualdiff.json from the base revision, builds an import graph from the checkout, and posts it all to the API. It prints the review, writes it to the GitHub job summary, and exits 1 on the verdict you pass to --fail-on. Run node visualdiff.mjs --help for every option, or --dry-run to see what would be sent.

The CLI also reads the shape of both revisions (paths, imports, routes, outbound calls; never source) for the blueprint: the design before and after, checked against the architecture gates in your policy. Add --blueprint-out visualdiff-blueprint to keep the drawings, the JSON and a brief for your coding agent as build artifacts.

Create a key with the write scope in Settings and store it as VISUALDIFF_KEY. Without a key the review still runs; it is printed, not stored. If you would rather not download the script on every run, commit it to your repository.

GitHub Actions

name: visualdiff
on: pull_request
permissions:
  contents: read
  pull-requests: write      # to post the review comment
jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0      # the merge base must be reachable
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      - run: curl -fsSL https://visualdiff.ai/cli/visualdiff.mjs -o "$RUNNER_TEMP/visualdiff.mjs"
      - run: node "$RUNNER_TEMP/visualdiff.mjs" --comment --store --fail-on hold
        env:
          VISUALDIFF_KEY: ${{ secrets.VISUALDIFF_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

GitLab CI

visualdiff:
  image: node:22
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
  variables:
    GIT_DEPTH: "0"
  script:
    - git fetch origin "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
    - curl -fsSL https://visualdiff.ai/cli/visualdiff.mjs -o /tmp/visualdiff.mjs
    - node /tmp/visualdiff.mjs --store --comment --fail-on hold
  # VISUALDIFF_KEY: a masked CI/CD variable. --comment posts through your
  # workspace's GitLab connection (Settings → Code hosts).

Bitbucket Pipelines

pipelines:
  pull-requests:
    '**':
      - step:
          name: visualdiff
          image: node:22
          clone:
            depth: full
          script:
            - git fetch origin "$BITBUCKET_PR_DESTINATION_BRANCH"
            - curl -fsSL https://visualdiff.ai/cli/visualdiff.mjs -o /tmp/visualdiff.mjs
            - node /tmp/visualdiff.mjs --store --comment --fail-on hold
# VISUALDIFF_KEY: a secured repository variable.

Azure Pipelines

pr:
  branches:
    include: [main]
pool:
  vmImage: ubuntu-latest
steps:
  - checkout: self
    fetchDepth: 0
  - task: NodeTool@0
    inputs:
      versionSpec: '22.x'
  - script: |
      curl -fsSL https://visualdiff.ai/cli/visualdiff.mjs -o "$(Agent.TempDirectory)/visualdiff.mjs"
      node "$(Agent.TempDirectory)/visualdiff.mjs" --store --comment --fail-on hold
    env:
      VISUALDIFF_KEY: $(VISUALDIFF_KEY)

Jenkins, Buildkite, CircleCI, Drone and Woodpecker work the same way: check out with full history, then run the CLI with --base origin/<target>.

Install as an app

An app lives inside the code host and installs in a click or two; nobody pastes a host token into visualdiff. Each app is a client of the same API the CLI uses. A deployment shows the install buttons in Settings and on Integrations once it is set up for them.

Bitbucket Cloud

A Forge app (Bitbucket Cloud stopped taking new Connect apps in February 2026). It runs on Atlassian’s side: on every pull request opened or pushed to, it reads the change, asks visualdiff for the review, and posts one comment (edited in place) and a build status, as itself. visualdiff never receives a Bitbucket credential; the app sends only the change, with your API key.

Where it is, and where it is not. The app is not on the Atlassian Marketplace yet, so it is not under Workspace settings → Apps and features → Marketplace; and it is not a Connect app, so Install app from URL and development mode (Connect, which Atlassian retires in January 2027) do not apply to it. A Forge app reaches a workspace in one of two ways: through the vendor’s installation link (shown here as Add to Bitbucket once the deployment has it), or installed by the vendor with the Forge CLI into a workspace named by its slug. Once installed, it is listed under Apps and features → Installed apps → Forge apps, and its own page sits in the left navigation of Workspace settings under Forge apps → visualdiff.

  1. Install: open the installation link (Add to Bitbucket in Settings) and pick the workspace, or ask the vendor to install it into yours. The scopes it asks for: read the workspace, repositories and pull requests; write pull requests (the comment) and repositories (the build status); app storage (the key and the last verdict per pull request).
  2. Link it: Workspace settings → Forge apps → visualdiff. Paste an API key made under Settings → API keys with the write scope, choose what to post, Save, then Test the connection.
  3. Optional (Premium): Workspace settings → Workflow → Custom merge checks (or a repository’s settings), enable visualdiff review as required or recommended. It fails while the latest push is unreviewed or the review is on hold.

Operators, once. The code is apps/bitbucket in the repository; nothing is installable until it is deployed under an Atlassian account: npm i -g @forge/cli@latest (15 or newer), forge login, then in that folder npm install, forge register, forge lint, forge deploy -e production and forge install -p Bitbucket -e production (the “site” it asks for is the workspace URL, https://bitbucket.org/<workspace>/). The app then shows under Forge apps in that workspace. To let other workspaces install it themselves: developer console → the app → Distribution → Sharing → installation link, pasted under Site admin → Support → Apps (or set BITBUCKET_APP_INSTALL_URL); a Marketplace listing is the same app with a listing in front. Self-hosting visualdiff? Point the egress list in the manifest at your domain and deploy your own copy.

Webhooks

With a webhook, every push to a pull request is reviewed without CI: visualdiff fetches the change, stores the report, edits its one comment in place and, if you turn it on, sets a status that fails on hold. Add the host in Settings → Code hosts with a token; the page shows a webhook URL and secret once. Turn on push events too and every branch you have reviewed as a repository is reviewed again when it moves, so its review, history and map stay current; pushes to other branches are ignored.

HostWhereEvents and secret
GitHubRepository or organisation → Settings → WebhooksContent type application/json, the secret, events “Pull requests” and “Pushes”.
GitLabProject or group → Settings → WebhooksSecret token, triggers “Merge request events” and “Push events”.
Bitbucket CloudRepository settings → WebhooksSecret, triggers “Pull request: Created” and “Updated”, and “Repository: Push”.
Azure DevOpsProject settings → Service hooks → Web Hooks“Pull request created”, “Pull request updated” and “Code pushed”; basic authentication with any username and the secret as password.
Gitea / ForgejoRepository → Settings → Webhooks → GiteaPOST, application/json, the secret, events “Pull Request” and “Push”.

Credentials

Every host takes a token. Two also take one credential for the whole organisation, so no person’s token is in the loop and nothing stops working when they leave. Either way the secret is encrypted with the deployment’s key and never shown again; the Test button on the connection tries it with one read.

  • Bitbucket Cloud, OAuth consumer: Workspace settings → OAuth consumers → Add consumer. Tick “This is a private consumer”, give any callback URL, and grant only Repositories: Read and Pull requests: Read (the scopes repository and pullrequest). That is enough to read the change, post the one comment and set the build status; no write scope. Paste the consumer’s key and secret with the workspace slug. visualdiff exchanges them for a one-hour token on each review.
  • GitHub App: Settings → Developer settings → GitHub Apps → New GitHub App, with the permissions Contents read, Pull requests read & write, Commit statuses read & write. Generate a private key, install the app on the organisation, then paste the App ID, the installation ID and the key. visualdiff mints an installation token per review, valid for an hour.

Tokens

  • GitHub: Fine-grained token: Pull requests (read & write to comment), Contents (read), Commit statuses (read & write for status checks). Or a GitHub App installed on the organisation with the same permissions.
  • GitLab: Project or group access token with read_api (api to post notes and statuses), role Reporter or above.
  • Bitbucket Cloud: Workspace, project or repository access token with Pull requests: Read and Repositories: Read; or an Atlassian API token with your email as the username. Or an OAuth consumer owned by the workspace with the scopes repository and pullrequest.
  • Azure DevOps: Personal access token with Code (Read), plus Code (Status) and Pull Request Threads (Read & write) to report back.
  • Gitea / Forgejo: Access token with read:repository (write:issue to comment, write:repository for statuses).

Risk and verdict

Every review carries one risk score from 0 to 100 with every point accounted for. Each factor has a ceiling and the ceilings add up to 100, so a score is a share of the worst a change can be, and no change reaches 100 by being large. The factors fall in three groups; the review shows a bar per factor with its points and its ceiling.

GroupFactors, with the most each addsWhat it asks for
On the linesFindings 26, test gap 12, says vs does 5, duplicated code 3A fix in this change.
What it reachesSensitive areas 14, new code paths (dependencies and imports) 10, new connections 10, live infrastructure 4, blast radius 3A decision to make, and to say in the description.
How much there isSize 8, spread across packages 3, agent-written 2Nothing: it is context, not a fault.

Large changes. Size adds at most 8 points and spread at most 3. In a change of more than 400 lines, critical and high findings still count in full; medium and low findings count by how dense they are (per 400 lines read), and missing tests count by their share of the changed source files, not by their number. Tests too thin for the change count as well: once it adds 150 source lines, fewer than one test line for every two new ones adds up to 4 points, and a change that adds no assertion at all counts the full 4. A feature branch of 12,000 lines with nothing wrong on it stays under the review line.

Findings by kind. A finding that can break or leak (security, reliability) counts in full. A finding about upkeep (complexity, a long file, a leftover) is debt, not danger, and counts a third.

The two lines. Review starts at a risk of 20 and hold at 60. The hold line sits above everything a change can score for what it is and reaches, so a change is never held by its score without something wrong on its lines. They were 30 and 70 before the ceilings. A review stored then is read with the current model when it is opened, from the facts it kept, and says what it read before; the inbox shows the stored number until the review runs again. A policy moves them with risk. Behaviour that looks malicious (data sent out, a poisoned install script) is the one thing that sets a floor instead of adding points: 88 when it is critical, ten under the hold line when it is high.

The verdict. Hold: a critical finding, a blocking policy violation, a new dependency the registry does not know or that imitates another, or a risk on or over the hold line. Review: a high finding, a change that goes beyond its description, a policy warning, or a risk on or over the review line. Otherwise ship. Every reason is written out, and a reason that comes from the score names the factors that lead it: “Risk 64/100, on or over the hold line of 60: findings (26), sensitive areas (14) and test gap (10) lead.” Every review also names the policy it was read by and links to it in Settings.

Lower the risk

Each pull-request review has a Lower the risk tab: the tasks that bring the score down, most points first. A task carries the risk points it removes, measured by scoring the change again with the task done, with the minutes it takes, the steps and the places. Quick wins are the three with the most points for the least work; a description that says what the change does is often one, and needs no code. The tab also lists what holds the change whatever its score (the policy’s blocks) and what stays: the points for what the change is and reaches, which a reviewer weighs and no task removes.

Copy prompt hands the same list to a coding agent (Claude Code, Cursor, Codex, Copilot) as Markdown: quick wins first, then every task with why, what to do and where, and the rules it works by (the real fix, never a silenced check; one commit per task). It is lower-the-risk.md in the download.

The review card

One image for a pull-request comment, a Slack unfurl or a status page: GET /api/v1/reports/:id/card, or format=svg on the report. It answers what a person deciding on the change asks, in order: the verdict, the risk with the two lines it is read against, the reasons, says vs does, the three fixes to do first with the points each removes, and a bar per risk factor.

Downloads

The Download menu on a review works like the one on a repository page. Everything (ZIP) is the review as files, with a README that lists them; Everything (PDF) is the card, every tab and the Lower the risk plan as one document, through the browser’s print dialog; Full review (Markdown) is review.md on its own. The menu also gives the open tab as PDF or PNG.

FileWhat it is
review.mdThe whole review, every tab: the decision, the risk and where it comes from, says vs does, lower the risk, the plan, every finding, the quality gate, connections, intent, tests and dependencies, provenance, infrastructure, the design and every file.
lower-the-risk.mdThe prompt for a coding agent: the tasks that lower the risk, each with the points it removes.
pr-comment.md, review-brief.md, card.svgThe comment for the pull request, the review brief for a reviewer or a reviewing agent, and the review card.
risk.csvThe score, factor by factor: points, ceiling, group and what it counted.
findings.csv, findings.sarifEvery finding with why and the fix, as rows and for a code-scanning tool.
files.csv, dependencies.csv, connections.csvEvery file in the change, every dependency change, and the outbound destinations, inbound doors and outside vendors.
review.jsonThe whole report as the page reads it.

Policy

Commit .visualdiff.json to the default branch. It is read from the base revision of each pull request, so a change cannot loosen the rules it is judged by. Without one, the workspace policy from Settings applies (a named one that lists the repository, else the workspace default), and without that the defaults. Keys you leave out keep their defaults. A blocking violation turns the verdict to hold; a warning adds a reason.

{
  "maxChurn": 1200,
  "maxChurnAI": 400,
  "maxFiles": 60,
  "requireTestsFor": ["src/**", "app/**"],
  "protected": [
    { "path": "**/auth/**", "reason": "Security reviews auth changes.", "level": "block" },
    { "path": "infra/**", "reason": "Platform owns Terraform.", "level": "warn" },
    { "path": ".github/workflows/**", "level": "block", "aiOnly": true }
  ],
  "blockOn": ["critical", "high"],
  "forbidNewDependencies": false,
  "comment": "balanced",
  "requireHumanCommitForAI": true,
  "blockDriftForAI": true,
  "allowedHosts": ["*.acme.com", "api.stripe.com"],
  "blockUnknownHosts": true,
  "approvedVendors": ["stripe", "sentry"],
  "blockUnapprovedVendors": false,
  "ignore": ["**/__snapshots__/**", "docs/generated/**"],
  "risk": { "review": 20, "hold": 60, "size": 1 },
  "gate": { "issues": { "impact": "high", "max": 0 }, "duplication": 3, "coverage": 80, "block": false },
  "rules": [
    { "path": "src/payments/**", "title": "Money", "rule": "Amounts are integers in minor units; every write is idempotent on a retry." }
  ],
  "architecture": {
    "gates": { "wrongWay": "block", "newCycle": "block", "gradeDrop": 10, "minGrade": "C" }
  }
}
KeyMeaning
maxChurn, maxChurnAIMost reviewable changed lines; the second applies to agent-written changes.
maxFilesMost files one change may touch.
requireTestsForGlobs whose source changes need a test change.
protectedPaths that warn or block when touched; aiOnly limits it to agent-written changes.
blockOnFinding severities that hold the change.
fixturesPaths that hold deliberate examples of bad code: a scanner’s own rules, test fixtures, demo samples. Their findings, from the line rules and the design checks alike, are listed and marked, and set no rating, gate, risk, verdict or block. Secrets there are graded all the same, and so, in a pull request, are threat and supply-chain findings: a new payload is news under any path. Each entry must name a folder or file (scripts/samples/**); a wildcard alone (**, *.ts) is refused.
allowedHosts, blockUnknownHostsOutbound hosts the team vouches for (exact names, *. suffixes or globs): they count as your own, so they raise no warning and are not read as a destination for exfiltration. With blockUnknownHosts, a new destination that is unknown, a raw IP or a data drop, and not on the list, holds the change. See poisoned code.
approvedVendors, blockUnapprovedVendorsOutside vendors by id (stripe, sentry, segment…). A new vendor not on the list is a warning, or a hold with blockUnapprovedVendors.
forbidNewDependenciesAny new dependency holds the change.
commentHow much the pull-request comment says: quiet (the verdict, why, the triage, threats and dependencies), balanced (the default: adds the quality gate, the design, connections and the reading order) or assertive (adds every graded finding with its fix). The report page always shows everything.
requireHumanCommitForAIAgent-written changes need a person’s commit on top.
changeChange control: requireTicket ("warn" or "block"), ticketPattern, freeze windows and the words that mark an emergency. See Change control.
blockDriftForAIIntent drift holds agent-written changes.
ignorePaths left out of the analysis entirely.
riskHow the risk score reads here: review and hold, the two lines (20 and 60 unless set). Hold stays between 20 and 90, because the ceilings add up to 100 and a higher line would never be reached; review stays between 5 and hold, and a review line set over the default hold takes the hold line with it, and size, how much size and spread count, from 0 to 1 (1 as designed, 0.5 for teams whose changes are large as a rule, 0 not at all). A value out of range is dropped and the default applies.
gateThe quality gate on new code: issues (impact floor and max), duplication and coverage in percent, hotspots, minLines, block. false keeps the measurements and never touches the verdict.
rulesReview rules by path: path (a glob or a list), rule (plain instructions), optional title. They travel with each matching file into the review brief.
natureWhat the repository is for: public (a public-facing service), internal, library, frontend (a browser or mobile app), infra (infrastructure as code), data (a pipeline or ML), tool (a CLI), experimental. Each tunes the rules to the code’s exposure (CORS open to the world steps up in a public service and is nothing in a CLI) and sets the knobs that follow (blockOn, blockUnknownHosts); what the policy says itself wins over the nature.
tuneRules read differently here: a rule id (sql.concat), a family (secrets, injection, transport, crypto, permissions, errors, hygiene, complexity, iac, ci, migrations, tests, supply, threats) or a category (security, infra…) to a severity, raise, lower (one step) or off. The rule wins over the family over the category. A secret is never off, only lowered.
architectureDesign gates checked at build time against the blueprint: gates (wrongWay, newCycle, layerSkip, newBoundary as block, warn or off; gradeDrop; minGrade), layers to place paths, and allow for accepted upward imports.

Several policies

A team that ships large feature branches, a team that owns sign-in and a team that works with coding agents do not want the same guardrails. A workspace keeps up to 20 named policies beside its default under Settings → Policy, each for the repositories it lists: owner/repo, or a pattern such as acme/payments-*, where a star stands for any run of characters (three at most), compared without case. The first one that lists the repository applies; a .visualdiff.json in the repository still comes first, and a repository no policy lists gets the default. Every review names the policy applied and links to it in Settings. Over the API, PATCH /api/v1/settings takes policies: a list of { name, repos, policy }.

A policy starts from one of four presets, each the default with a few keys changed, and is edited from there:

PresetWho it is forWhat it changes
BalancedThe default: warns on size and missing tests, holds on a critical finding or a risk of 60.Nothing: the defaults.
Large changesTeams whose pull requests are feature branches of thousands of lines: size counts half, and the size limits sit where a large change is still unusual.maxChurn: 20000, maxFiles: 400, risk: {"size":0.5}
Security-criticalSign-in, payments and anything that holds personal data: high findings hold, new hosts, vendors and dependencies need approval, and the lines sit lower.blockOn: ["critical","high"], blockUnknownHosts: true, blockUnapprovedVendors: true, forbidNewDependencies: true, protected: **/auth/**, **/migrations/**, .github/workflows/**, risk: {"review":15,"hold":40}
Agent-written codeTeams that merge what coding agents write: smaller steps, a human commit on top, and no drift from the description.maxChurnAI: 400, requireHumanCommitForAI: true, blockDriftForAI: true

nature and tune are also set per repository without a file: on a stored review, Nature & rules suggests what the repository is for from its own facts (a public door, a library’s shape, a data stack), lets a member confirm or pick another nature, tune rule families or single rules, and write review rules by path. The profile is read over whichever policy applies, for every branch and every pull request of that repository, and the review says so under Policy.

A single line the team has reviewed and keeps takes a comment instead, on the line or alone on the line above: // visualdiff-allow html.raw: markup from render(), which escapes every value. It names the rule (or several, comma-separated) and must give a reason; that line’s finding for that rule is not raised. A secret is never allowed this way. The comment sits in the diff, so a reviewer sees it arrive.

Quality gate

Every report rates the new code — the lines the change adds — the way SonarQube does, and judges it with a pass-or-fail gate. Old debt is not this change’s problem; new debt is. Each finding lands on one software quality (security, reliability, maintainability) at one impact (blocker, high, medium, low, info), names the clean-code attribute it breaks and carries a remediation effort. The Quality tab shows the gate, a rating per quality, the measurements and the security hotspots to look at.

ConditionDefaultMeasured as
New issuesnone at high impact or worseFindings on added lines, hotspots excluded. gate.issues.impact lowers the floor; max allows a few.
Duplicationat most 3%Lines of helpers written more than once within the change, over the new lines. Not judged under 20 new lines.
Tested changesat least 80%Changed source files with real logic that came with a test change in the same pull request. Not judged under 20 new lines.
Security hotspotsoffSecurity-sensitive code to look at (raw HTML, permissive CORS, weak hashing…). With gate.hotspots: true any new one fails the gate.

A failed condition adds a reason and turns the verdict to review; gate.block: true holds the change instead. Cognitive complexity is measured on every hunk of added source, its code only (comments, docstrings and template markup have no branches); a hunk over 15 is a medium finding, and one over 60, four times SonarQube’s threshold, a high one (medium in example and demo code). Ratings follow SonarQube’s: security and reliability from the worst new issue (A none, B low, C medium, D high, E blocker), maintainability from the debt ratio (remediation effort against thirty minutes a line).

Raise the grade. Each repository review has a Raise the grade tab: the design checks to clear, ordered by how much each lifts the design grade, as a prompt to paste into a coding agent (10, 20, 30, 40 or 50 tasks). The repository's open advisories from Dependencies come first, worst first, each as a version update. The projection replays the real scoring, so it is the grade the next review gives once every task is done. Agents can fetch it with GET /api/v1/repos/reviews/:id?format=uplift&items=20, as Markdown, or the plan itself with Accept: application/json.

SARIF. The CLI writes the findings as SARIF 2.1.0 with --sarif <file>, and the API returns it with format=sarif. Every result carries its quality, impact, attribute and a stable fingerprint, so a finding stays one alert across pushes. Upload it to GitHub code scanning like this; Azure DevOps, SonarQube’s import and the VS Code SARIF viewer read the same file.

permissions:
  contents: read
  pull-requests: write
  security-events: write   # to upload the SARIF log
# ...
      - run: node "$RUNNER_TEMP/visualdiff.mjs" --comment --store --sarif visualdiff.sarif
        env:
          VISUALDIFF_KEY: ${{ secrets.VISUALDIFF_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - uses: github/codeql-action/upload-sarif@v3
        if: always()
        with:
          sarif_file: visualdiff.sarif

With the checkers you already run

visualdiff reads the design and the risk of a change; linters read its style and its line-level bugs. They sit side by side. reviewdog turns the same SARIF log into review comments on the lines the pull request adds. Super-Linter runs the linters for every language in the repository in one step. SonarQube imports the SARIF log beside its own issues.

      - uses: reviewdog/action-setup@v1
      - run: reviewdog -f=sarif -name=visualdiff -reporter=github-pr-review -filter-mode=added < visualdiff.sarif
        env:
          REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: super-linter/super-linter@v7
        env:
          VALIDATE_ALL_CODEBASE: false   # only the files the pull request changes
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# sonar-project.properties: SonarQube shows visualdiff's findings as external issues
sonar.sarifReportPaths=visualdiff.sarif

Raise the grade and Lower the risk name each language’s usual style guide and checkers, taken from awesome-guidelines and static-analysis. The agent is told to run only the checkers the repository already sets up.

Says vs does: does the change, and each commit, say what it does?

The pull request as a whole. Under the header of every review: what the title and description say, what the change does (the areas it changes, new outbound calls, inbound doors, vendors, dependencies, migrations, tests), what it does without saying, worst first with the files, and a sentence to add to the description so that it says it. It is read from the facts the review already holds, so it costs no model call and every review has one, a pasted diff and a sample included. The answer is one of four: says what it does, does more than it says, does not do what it says, or says nothing to check.

Each commit. A commit message is a promise about the change under it, and a reviewer reads the promise more often than the change. The Says vs does tab, on every report and every repository review, checks each one: the message is read against the commit’s own diff, and the answer says what the message says, what the change does, whether they match, and in what way they part ways, down to the files. Each answer carries how sure the reader is and a message that would have matched, ready to copy into an amend.

The reading costs tokens of your own key, so the selection is the budget. Opening a stored review reads its newest two commits that are not merges once, with the workspace’s model if one is set and the rules otherwise, and shows the result under the header; the answers are kept, so the next person to open it reads nothing. Settings → Review turns this off for the workspace. In the tab those two are the selection to start with; the quick picks replace the selection (the last 2 or 5, yours, the ones an agent signed, the vague ones, none), a shift-click picks a range, and any checkbox adds one. A run checks at most 10 commits, and each costs up to about 4,000 tokens: a diff larger than that is trimmed before it is read, and the answer says so. Beyond those two, nothing is read until you press Check; the commits are then read one at a time, and each answer appears as it lands. Answers are kept with the workspace, so a tab opened again costs nothing; Check this commit again reads it afresh.

DiscrepancyWhat it means
Not in the messageThe change does something the message never mentions.
Claimed, not doneThe message claims something the change does not contain.
Wrong kind of changeThe conventional type (fix, refactor, docs, chore…) does not fit what changed.
Wrong scopeThe scope in parentheses names another part of the code.
OverstatedThe message is bigger than the change.
UnderstatedThe message is smaller than the change: “typo” over four hundred lines.
Says nothing checkableA reader could check nothing against it: wip, fix, updates.
Sensitive and unmentionedA change to authentication, secrets, a migration, dependencies or infrastructure goes unmentioned.

Each discrepancy carries a severity (high, medium or low), one or two sentences a reviewer can act on, and the files from the commit’s own diff it rests on. Without a model under Settings → A model of your choice, the rules alone read the messages: they tell a vague one, a sensitive change the message is silent about and a message out of proportion with its change, but they cannot read what the diff does, so their verdict is usually unclear. The same rules answer when the model fails, and the answer says why. Every answer names who read it and what it cost.

Privacy. This is the one place visualdiff sends code to a model: the picked commit’s own diff, trimmed to the budget, to the provider and key you set, and only when a stored review is first opened (its newest two commits) or Check is pressed. The summary, the advice and every other reading work from facts about the code, never the code. A sample reads its messages with the rules alone.

The same check by API, over MCP and from the SDKs. ref is { report } or { review }: the id of a stored report or repository review.

WhereCall
APIGET /api/v1/commits?report=<id> or ?review=<id>&limit=20 lists the commits newest first, with the checks kept for them; POST /api/v1/commits/check with { report | review, shas: [...], force? } checks up to ten. Both take the read scope.
MCPcheck_commit_messages { report?, review?, shas?, force? }; without shas, the newest two that are not merges.
Node and TypeScriptclient.commits.list(ref, { limit }) and client.commits.check(ref, shas, { force }).
Pythoncommits(report=None, review=None, limit=None) and check_commits(report=None, review=None, shas=None, force=False).

ArchCanvas

ArchCanvas maps your cloud accounts into one resource graph. Connected, every review matches the change to it: Terraform resources by address and name, Kubernetes objects, env vars like ORDERS_DB_URL, hostnames the code calls, and the services that deploy this repository. The Infrastructure tab lists the matched resources, their neighbours one and two hops away, and opens the live map with the change painted on it.

  1. In ArchCanvas, create an API key with the read scope (it starts with ack_).
  2. In visualdiff, Settings → ArchCanvas: paste the key and pick a document, or keep merged for the newest snapshot of every source.
  3. Open any report’s Infrastructure tab.

Where it shows up. One connection feeds every view that draws infrastructure, so the code and the cloud are seen together:

  • Pull request reports: the Infrastructure tab, with the change painted on the live map.
  • The estate (Repositories → estate): the connection joins as an infrastructure map, so repositories link through the resources they run as, directly or through a queue, a load balancer or a gateway.
  • Each repository review: the System design tab adds what code cannot show (a load balancer, a CDN, a cache, a queue, database replicas) to the drawing and to the building blocks.

The map is added the first time one of those views is drawn, read again when it is more than fifteen minutes old, and counts as one of your plan’s infrastructure maps.

visualdiff only reads from ArchCanvas. A self-hosted ArchCanvas works too: set its address in the same form.

Notifications

Add a Slack incoming webhook or any HTTPS endpoint in Settings. Reviews from webhooks call it on hold (or on every review). Generic webhooks receive a JSON event signed with X-Visualdiff-Signature: sha256=<hmac> using the signing secret shown once when you add it.

Handiwork: developer scorecards

Every pull request visualdiff reviews names its author and carries its own commits, and the review says a great deal about the change: how it arrived, how much risk it carried, whether tests came with the code, whether the description said what the change did. Handiwork, in the app’s header, reads the reviews your workspace keeps and draws one card per person from them, by commit first and by pull request beside. Nothing here calls a code host or spends a token.

Commits. A commit belongs to its own author, not to the pull request’s, and counts once however many reviews or pull requests carry it; merges are counted apart. Four signals read each message before any diff is opened: messages match the change (among the commits Says vs does has read, the share that matched), clear subjects (not vague, not work in progress), conventional subjects (fix, feat, docs and the like) and says why, in a body. The card names the types most used and how many commits an agent signed; the rhythm counts commits by author date. A person who only ever committed into someone else’s pull request still has a card. A repository review (an X-ray or a sweep) brings the branch’s newest hundred commits along too, so a workspace that reviews branches rather than pull requests still sees who commits what; a branch is nobody’s change, so it adds commits and nothing else.

Pull requests. Each card shows the shape of the work (changed lines by what kind of file took them: source, tests, infrastructure and CI, configuration, documentation, schemas and migrations), eight craft signals as small dials, and a signature line: where the shape differs most from the team’s. Under it, in words: each signal with its numbers, the ones furthest from the team’s usual, the repositories, the sensitive areas the person is trusted with (auth, secrets, payments, migrations and the like), and their recent changes. The team’s own card comes first, as the baseline; a tick on every dial marks the team’s usual. The order is by recent activity, your own card first, and nobody is ranked: this is a mirror, not a leaderboard. Bots keep a shelf of their own.

SignalWhat it reads
Arrives cleanThe share of changes whose first review was not a hold.
Carries little riskOne minus the typical (median) risk score of the changes, out of 100.
Few findings per lineFindings weighted by severity (critical 4, high 2, medium 1) per 100 changed lines; the dial is full at none and empty at 4 or more.
Tests travel with codeAmong changes that touched source files, the share that touched test files too.
Right-sizedThe share of changes with at most 400 lines worth a careful look.
Says what it doesHow far the description matched the change: aligned counts whole, partial half, drift and silence nothing.
Finishes the reviewAmong changes reviewed more than once, the share whose last review had fewer findings or a better verdict than the first.
Passes the gateThe share of changes that passed the quality gate, among those measured by one.

Every signal is 0 to 1 with higher better, so the dials read alike; each also says how many changes it was read from. A change reviewed on every push counts once: the first review says how it arrived, the last how it stands. A signal compares with the team only from three changes up, and says so otherwise; a clear difference is fifteen points either way. Volume (changes, lines, repositories) is shown and never scored. Each pull request is also graded by its last review: well made (shipped with no critical or high finding, gate not failed, tests with its source) weighs ×1.25 in the outcome, needs work (still held, failed the gate or a critical finding) ×0.5, fair ×1. Their work to do lists what is left open, most serious first. Commits outside a pull request are graded by the review of the default branch that read them: the first whose history holds the latest of them (or, for reviews stored without a history, the first after it), against the last review before the first of them. Worse than that review (a rating fell to C or below, or more critical or high findings) needs work, unless the commits are fixes or hardening, or other people’s commits changed the code in the same stretch: then fair. Better, or landing in code rated A or B throughout with no critical finding (and, as the policy’s rules say, no high one and a test line for every five source lines), is well made; a commit message Says vs does found mismatched keeps it from well made. Commits seen only on another branch, or not yet reviewed, stay ungraded. The quality score averages what was measured, leaving out what was not: the pull-request signals, the commit signals, and the health of the code they work in (each repository’s latest A–E ratings, four parts in five, and its test ratio, one part), weighed by their outcome there. It is read against the team on the same parts, from three graded pieces. Work to do adds, for up to three repositories where 30% or more of the team’s outcome is theirs and at least three pieces of their work landed, the latest review’s critical and high findings, ratings of D or worse, untested files and code that got worse. A person is the pull request’s author as the host names them; a commit author with no login is matched through a host’s no-reply address, or learned as the one login their email always travels with. Reviews that came without an author (pasted diffs, CLI runs without pull-request details) are counted apart.

Daily, weekly, monthly. The Rhythm strip counts the team’s commits (by author date, the ones an agent signed tinted) or pull requests (by their last review, the ones that arrived held in a warmer colour) per day, week (from Monday) or month across the window, every beat present so a quiet fortnight shows as one, with the busiest beat named; each card carries the same rhythm as a small sparkline. The grain follows the window (days for a month, weeks for a quarter, months for a year) and can be switched. Everything is counted in UTC, and a change lands in the beat of its last review.

The year, day by day. Above the rhythm sits a calendar of the last 53 weeks, a square a day, shaded against the row’s own quartiles so a quiet person’s busy days still read as busy. The busiest day wears a gold ring and the longest run of busy days is underlined; beside it sit the totals, the run still going and the weekday rhythm. A picker shows any one person’s year, and each card carries a small copy that opens it. It follows the Commits or Pull requests switch, and ignores the window: the year is always the year. The same arrays are GET /api/v1/contributors/calendar and client.contributionCalendar().

Who counts as the team. Open-source code brings its upstream authors along. Under Manage people a workspace names its organisation’s email domains (suggested from the work domains people already commit from; free mail never counts); once any is set, people whose commits come from other work domains are left out: shelved apart like bots, outside the team’s baseline, outcome and awards. Free mail and no-reply addresses place nobody, so those people count unless strict is on. Anyone can be marked as the team or left out by hand, and the hand wins. Only the domain of an address is kept or shown, never the address. The same roster is GET and PUT /api/v1/contributors/roster ({ domains, strict, people: { key: 'team' | 'outside' | null } }).

The same view is GET /api/v1/contributors (?days=, ?repo=, ?grain=day|week|month, ?format=csv), client.contributors() in the SDKs, and the contributors MCP tool.

Outcome: what the work was for

The multipliers are a workspace setting: the weighting policy page sets each one (0 to 10), offers presets, changes the grading rules and keeps a note on why. GET /api/outcome/weights returns the policy with the defaults and presets; PUT with { weights: { work, audience, complexity, quality, rules, note } } saves it, and { reset: true } goes back to the defaults.

Commits and lines say how much; outcome says what for. Handiwork and Awards weigh every piece of work by three things: what it did, who the repository serves and how complex the repository is. A pull request is one piece, and its outcome goes to its author; the commits outside any pull request make one piece per person, repository, day and type, so splitting work into many commits weighs nothing extra.

TagValues and weightRead from
What it didfeature ×3, fix ×2, hardening (security, performance) ×2, upkeep (refactor, tests, docs, chores) ×1The conventional type of the commit or the pull request’s title and commits (the weightiest wins); without one, the words in the subject; unclear is upkeep.
Who it servescustomer-facing app ×2, internal tool ×1, supporting code ×1, infrastructure code ×1, prototype ×0.5The nature a person chose in the repository profile; else the repository’s last review (public inbound doors, routes, a user interface, a library shape, infrastructure, data stacks, command-line tools); else its name (admin, internal and tools read as internal; sdk and lib as supporting; infra, terraform, helm, k8s and deploy as infrastructure code; demo and sample as a prototype; web, app and site as customer-facing); else its changed files.
Complexitysimple ×1, moderate ×1.5, complex ×2The last review: lines of code, languages, modules, routes, dependencies and deploy targets. Without a review, moderate, until an X-ray reads its size.

Commit history. Each sweep and review keeps the branch’s commits in a store of their own, every commit once, so Handiwork, Awards and the calendar count a year rather than the newest page of a review. The plan sets how many commits per repository and how far back the window reaches (Free: 90 days and 500 commits; Team: a year and 3,000; Enterprise: a year and 10,000). The calendar says how much history it drew on and which repositories, reviewed before history was kept, want a sweep. Set any tag that is wrong. Handiwork’s What the work is for panel lists every repository the window touched with both tags, the evidence for each guess and a mark on guesses read from little evidence; choose a value to set it, or Auto to hand it back. Every page counts again at once. The same tags are GET and PUT /api/v1/outcome/tags, and client.outcomeTags() and client.setOutcomeTags() in the SDKs; they live in the repository profile beside its nature and leave the review rules alone.

Each card shows the outcome points, a bar by who the work served and the weightiest pieces in words; Most outcome orders the cards by it. In Awards, Biggest outcome leads every period, and five badges follow it: Impact (outcome points), Customer champion, Toolsmith and Foundation layer (features, fixes and hardening in customer-facing, internal, and supporting or infrastructure repositories) and Deep end (pieces in complex systems).

Awards: who shone this month, quarter and year

Awards, in the app’s header, is the fun side of Handiwork. For the running month, quarter and year, and the periods just before them, nine categories each name a winner and two runners-up, so there is more than one way to win: Biggest outcome (the most outcome points, see above), Builder (the most commits of their own, merges aside), Cleanest hands (the largest share of pull requests with no finding), Test pilot (tests travelled with the source most often), Heavy lifter (the most changed lines), Widest reach (the most repositories), Steady hand (the most active days), Says what it does (the most commits Says vs does found matching) and Storyteller (the most commits with a body). Shares compare from three pull requests up. A period card also names the team’s feats: Clean sweep when four in five pull requests arrived with no finding, Well tested when tests came with three in five, Polyglot team from three languages up, All hands for the people, commits and pull requests together.

Badges are earned in bronze, silver and gold, each from a threshold on one plain count since the year began (or the quarter before last, whichever is earlier): volume (Prolific, Shipper, Heavy lifter, Explorer), craft (Spotless, Test pilot, Gatekeeper, Scribe, Plumber, Tester), complexity (Deep water for risky changes landed, Big fish for changes of a thousand lines or more, Small and sharp, Guardian for sensitive areas landed with no security finding, Turnaround for holds turned), languages (Polyglot, and one badge per language by changed lines), rhythm (On a roll for consecutive weeks, Regular, Sprinter, Night owl, Early bird, Weekender) and style (By the book, Storyteller, Says what it does, Pairs with an agent, Fixer, Maker, Gardener). Hovering a medal says what it took and where the next tier sits; the full list is under “How badges are earned”. Milestones count what the whole workspace has put through review (reviews, commits, changed lines, clean changes) against a ladder of round numbers.

Everything is read from the stored reviews alone: a commit counts once for its own author, bots sit out, nobody is shown as last, and a badge not yet earned is simply not there. The month’s builder is also shown on Handiwork and the Dashboard. The same view is GET /api/v1/awards (?repo=), client.awards() in the SDKs, and the awards MCP tool.

Dependencies: advisories, alerts and the update

Dependencies, in the app’s header, covers what a dependency bot does, from what visualdiff already reads. Every repository review keeps an inventory: each package its manifests declare (package.json, requirements, pyproject, Pipfile, go.mod, Cargo.toml, Gemfile, composer.json), with the version it pins. After each review of the default branch, and whenever you press Check advisories now (or the page opens after a day), every pinned version is asked about in one batch at OSV, the open database GitHub’s advisories, PyPA, RustSec, Go and others feed. No host is read for a check and no token is spent.

An alert is one advisory against one version in one repository, with its severity (the database’s own word, else the CVSS base score), the first fixed version and the CVE ids. It opens when a check first finds it, closes as fixed on its own when the version moves on or the advisory is withdrawn, and can be dismissed by a person with a word on why; a dismissed alert stays dismissed while the advisory holds. New high and critical alerts reach your Slack or signed webhook connections (every new one when the connection is set to all), as dependencies.alerts.

Each package with open alerts has an update plan: move to the highest first-fixed version among them, the install that makes the lockfile follow, and which advisories it leaves open. Open update pull request makes a branch from the default branch through the connection that reviewed the repository, edits the one manifest line and opens the pull request with the advisories named, on GitHub, GitLab and Gitea; it needs a token or app with write access to contents and pull requests, and where the host or the token cannot, the patch and the commands come back to apply by hand (always so on Bitbucket and Azure DevOps). A repository ticked open automatically gets its pull request as soon as a check finds a fixable advisory. The pull request is then reviewed by visualdiff like any other change. The same view is GET /api/v1/deps, the dependencies MCP tool and client.dependencies() in the SDKs; the plan sets whether automatic updates are included.

Update rules. Each repository’s Rules, on the Repositories table of the page, decide what opens on its own when open automatically is on, the way teams set package rules in Renovate, without a file in the repository: package names or patterns never updated (@types/*), majors held for a person, development dependencies left alone, a minimum severity, one pull request per manifest with a table of every move, conventional commit titles, at most 1 to 20 update pull requests open at once (more wait until those merge), and any day, weekdays or weekends (UTC). Each plan carries its update type (major, minor, patch; below 1.0 a minor move counts as major), and the page says what a rule holds back and why. A held plan can still be opened by hand, and a plan the schedule held opens on the first check inside it. Compared with Renovate.

SBOM: the software bill of materials

SBOM, linked from Dependencies, is each repository’s bill of materials: every package its manifests declare, once per version, with its package URL (purl), its supplier where the name carries one (an npm scope, a Maven group, a Composer vendor, a Go module path), whether it ships at runtime or only in development, and the manifests that name it. It is read from the repository’s latest review, so direct dependencies are listed; transitive ones need a resolved lockfile, which it does not read yet, and the document says so.

Licences come from the package registries: deps.dev (Open Source Insights) for npm, PyPI, Go, Cargo, Maven and RubyGems, and Packagist for Composer, kept for 30 days. Each is sorted into public domain, permissive, weak copyleft, strong copyleft, network copyleft or restricted; in an SPDX expression OR counts the most open choice and AND the most restrictive. Strong, network copyleft and restricted licences in runtime code are flagged for legal review.

Advisories are the ones Dependencies keeps (from OSV), each ranked by two signals: whether its CVE is on CISA’s Known Exploited Vulnerabilities catalogue (exploited in the wild, with CISA’s due date and whether ransomware uses it), and its EPSS score from FIRST, the chance of exploitation in the next 30 days. Known exploited ones come first. Only public package names, versions and CVE ids are sent to these services.

Downloads. CycloneDX 1.6 JSON, with each advisory’s state as VEX (in triage while open, resolved once the version moved on, not affected when someone dismissed it, with their note), SPDX 2.3 JSON, and CSV. The API gives the same: GET /api/v1/sbom lists every repository, and GET /api/v1/sbom?repo=owner/name&format=cyclonedx|spdx|csv|json gives one. A single review gives its own SBOM with format=cyclonedx or format=spdx on /api/v1/repos/reviews/:id, its Download menu has both, and the ZIP of every repository includes them.

Compliance. Each SBOM is checked against the NTIA minimum elements behind US Executive Order 14028 (names, versions, unique identifiers, suppliers, relationships, author and timestamp), licence coverage and policy (EU Cyber Resilience Act, OpenChain ISO 5230), open known exploited vulnerabilities (CISA BOD 22-01) and open critical or high advisories (PCI DSS 4.0 6.3, ISO 27001 A.8.8), and whether each advisory’s status is recorded. The score counts a pass as one and a partial as a half. It says how far the SBOM goes; it is not a certification.

Change control and the evidence register

Every pull request review carries a change-control record: what an auditor asks of one change, answered from what the review already knows. Does it name a ticket? Does it say what and why? Did someone other than its author approve it, and does that approval cover the last commit? Was it tested? If an agent wrote it, did a person read it? Did it land in a freeze? Each answer is pass, fail or not known (a CI run or a pasted diff knows no approvals), never a guess. The record is on the Change control tab of each review, with the SOC 2, ISO/IEC 27001:2022, PCI DSS 4.0.1, NIST SSDF, HIPAA and GDPR controls the change is evidence for. It says which controls a change touches and what the evidence is. It certifies nothing.

Approvals are read from the code host at each review, and again when the host reports an approval, a withdrawn approval or the merge: only the record is read again, nothing is analysed or posted. For that second reading the webhook needs these events: GitHub Pull request reviews (the merge already arrives with pull request events); GitLab merge request events; Bitbucket Approved, Approval removed, Changes requested, Merged and Declined; Azure DevOps Pull request updated and Pull request merge attempted; Gitea and Forgejo pull request reviews. Hosts differ: GitHub and Gitea say which commit was approved and Bitbucket gives a time; GitLab and Azure DevOps give neither, so “approval covers the last commit” reads not known there.

Policy. Nothing changes for a team that sets no change rules. To set them, add a change block to the policy:

"change": {
  "requireTicket": "block",
  "ticketPattern": "REQ-\d+",
  "freeze": [{ "from": "2026-12-18", "to": "2027-01-02", "reason": "year-end freeze" }],
  "emergency": ["hotfix", "sev1"]
}
  • requireTicket: true or "warn" warns, and "block" holds, when no ticket or issue is named in the title, branch, description or commits. Read with no setup: tracker keys (PAY-142), Azure Boards (AB#31), “fixes #88” and the like, and links to issues. ticketPattern adds a regular expression of your own.
  • freeze: UTC dates or date-times, both ends included. A change reviewed inside a window is held unless it is an emergency.
  • emergency: words that mark an emergency change in the title, branch or labels (by default hotfix, emergency, incident, sev0, sev1, p0, break-glass). During a freeze it goes ahead with a warning and is marked in the register.

Evidence, in your account menu, is the change register: every change reviewed in a period, one record each at its latest review, as a page, CSV or JSON (GET /api/v1/evidence?from=YYYY-MM-DD&to=YYYY-MM-DD&repo=&format=csv). Each record carries a SHA-256 over itself and the record before it, and the CSV answers with the seal in X-Evidence-Seal, so an export that was edited afterwards shows. The page counts what the reviews caught; the figures are counts of stored reviews and findings, not estimates. The audit pack reads the same period as a whole.

Audit pack: evidence, control by control

The Audit pack, in your account menu, arranges a period of stored reviews (30 days, 3, 6 or 12 months, within your plan’s history) the way an auditor asks for it. Nothing is fetched and no model is called: it is read off the reviews, repository reviews, advisories and data models your workspace already holds. It is evidence for an audit. It is not an audit, a certification or an opinion, and each line says what it does not show.

The population. Every change reviewed in the period appears once. A pull request is reviewed on each push; its reviews are folded into one row that carries the last review’s answer, with how many reviews there were and when the first one was. Each row has the verdict and risk, the quality gate, the policy and any rule it broke, the test files changed, the tickets it names (a key or issue link in the title, branch, description or commits), who wrote it, and its security impact. Who approved a change and whether it merged is on the change register, where the code host said so; the pack carries that register as change-register.csv.

Significant changes. PCI DSS 6.5.1 asks for a documented security impact on every change and 6.5.2 for extra care after a significant one; DORA’s technical standard asks the same. Neither defines significant, so the rules are written down and applied the same way every time. A change is significant when its review found a new outbound destination, a new outside vendor, a new public entry point, a change to authentication, permissions, cryptography or secrets handling, a change to payment handling, a change to personal data code or the database schema, or a change to infrastructure or the delivery pipeline.

Exceptions are the rows an auditor will ask about, each for a stated reason: held at its last review, blocked by policy, failed the quality gate, a critical finding, a secret in the change, written by an agent with no commit by a person afterwards, or significant with no ticket named. The download leaves a column for the answer.

The sample. Give a seed and a size (10, 25, 40 or 60). Change ids are sorted, a small generator is started from the seed and the population size, and a partial shuffle takes the sample: the same seed over the same population always picks the same changes, so an auditor can draw it again. The size is theirs to choose.

The control map. Twelve lines of evidence (changes are reviewed, name a ticket, carry an impact statement, are held when risky and come with tests; new code is analysed; secrets stay out; components are inventoried; vulnerabilities are found and fixed; vendors are on a register; personal data is located; machine-written changes answer to a person), each with the period’s numbers and the controls that ask for it in SOC 2, ISO/IEC 27001:2022, PCI DSS 4.0.1, DORA, NIST SSDF, GDPR and HIPAA. A line is on record, partly on record or has nothing on record; that is how much there is to show, not whether the control is met.

Vendor register. Every outside vendor the code calls (by SDK, host or script), what that kind of vendor usually receives, which repositories use it, the change that first brought it in during the period, and whether it is on approvedVendors in your policy. Personal data. The Data model page has a Personal data tab: columns whose names read as contact details, identity, government identifiers, payment and financial data, health, special categories, credentials, location, online identifiers or biometrics, with the ones whose name does not say hashed, encrypted, tokenised or masked marked to confirm. Names are evidence, not proof. Machine-written changes are counted from the signals agents leave, by agent and by repository, never by person.

Downloads. GET /api/v1/evidence/pack?format=zip (or the button) gives one folder: a read-me that says how the population was derived and what the pack does not show, then controls.csv, changes.csv, exceptions.csv, sample.csv, significant-changes.csv, vendors.csv, personal-data.csv, machine-written.csv, the change register as change-register.csv and everything as evidence.json. The vendor and personal data files leave columns for what a codebase cannot know: the contract, the region, the purpose, the lawful basis and the retention.

Members: people in a workspace

A workspace holds the reviews, connections, keys and settings a team shares. Settings, Members lists its people and their roles. Owners do everything, including making and unmaking owners, and a workspace always keeps at least one. Admins manage connections, keys, settings and people. Members review pull requests and repositories, run sweeps, set outcome tags and open dependency updates. Viewers read everything and change nothing.

Inviting. Owners and admins paste up to 25 addresses, pick a role and add an optional note. Each address gets its own link, shown once to copy: it works once, for 14 days, and only for an account signed in with that address, so a forwarded link is no use to anyone else. Someone who already has an account also finds the invitation on their Account page. Inviting an address again replaces its earlier link; New link replaces it in place, and Withdraw stops it. The plan counts people plus open invitations: Free is just you (no invitations), Team up to 5, Business up to 25, Enterprise up to 100. New workspace on the Account page makes another, with you as its owner; leaving a workspace is on its Members list.

API

Send a key as Authorization: Bearer vdk_…. Keys carry the scopes they were minted with: read for reports, write to analyse and store, admin for connections, keys and settings. Requests are limited to 30 per 10 seconds per key. Errors are { error, message } with a trace to quote. A request past one of the plan’s limits answers 402 with { error: "plan_limit", feature, limit, used, wanted, message, upgrade }, so a script can tell a limit from a fault.

curl -s https://visualdiff.ai/api/v1/analyze \
  -H "Authorization: Bearer $VISUALDIFF_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com/acme/api/pull/482", "store": true}' \
  | jq '.report.verdict, .url'

git diff origin/main...HEAD | jq -Rs '{diff: .}' \
  | curl -s https://visualdiff.ai/api/v1/analyze -H "Content-Type: application/json" -d @- \
  | jq '.report.plan.totals'
MethodPathScopeWhat it does
POST/api/v1/analyzenone / writeAnalyse {diff}, {url}, or OEM server-to-server {url, token} (one-off provider token, never stored; never put tokens in the query). Signed out: returned, not stored. store, comment, status need write. format=json|markdown|svg|sarif|brief; withSarif and withBrief add them to the JSON. The report carries triage (P0 now, P1 next, P2 later, with the reasons) and, for a changed dependency that pins a version, its known vulnerabilities from OSV.
POST/api/v1/repos/reviewnone / writeReview a branch: {url}, OEM {url, token} (one-off provider token, never stored), or {connection, repo}, with branch (the default when left out). Signed out: public repositories only, returned, not stored. format=json|markdown|svg|sarif.
GET/api/v1/reposreadTracked branches with their newest review; ?host=&repo=&branch= for one branch’s history.
GET / PUT / DELETE/api/v1/repos/profileread / writeHow the workspace reads one repository: ?host=&repo= reads it (without them, every profile); PUT {host, repo, nature?, tune?, rules?, archived?, note?} sets it whole; DELETE forgets it.
POST/api/v1/repos/advicereadWhat to scale, protect or split in a stored review: {id}. The rules always answer; with model: true and a model set in the workspace settings, the model adds its own pieces from a fact sheet of the review (never the code), marked as its. A model that fails answers 424 with its words; the rules are unaffected.
POST/api/v1/repos/sweepswriteA sweep: review many repositories in the background. {connection, repos: ["owner/name", …]} or {connection, repos: "all"} (every repository it can see, as many as the plan lists), or {urls: [...]}; branch for all of them. Answers 202 with the sweep; new repositories beyond the plan are left out with the reason (402 when none fit). /api/v1/repos/jobs is the same, under its old name.
GET/api/v1/repos/sweepsreadSweeps, newest first, each with when and by whom it started, what it covered, its counts and how long it took. ?filter=running|failures|pushes|all, ?before= for older ones.
GET / POST/api/v1/repos/sweeps/:idread / writeOne sweep, failed reviews first with their reasons. POST {action: "retry", only?: "failed", jobs?} tries again; {action: "cancel"} stops it.
GET/api/v1/repos/failuresreadReviews that failed in the last ?days= (7) and have not succeeded since, with the reason and the sweep.
GET/api/v1/repos/branchesnone / readA repository and its branches, default first: ?url= or ?connection=&repo=. For a one-off provider token use POST /api/v1/repos/branches with {url, token} (never put tokens in the query).
GET/api/v1/repos/exportreadEvery tracked branch’s newest review at once, as a zip: per branch the review (Markdown), every finding with why and how to fix it (CSV), a remediation task list per rule (Markdown) and SARIF; summary.csv and README.md at the top. ?ids=a,b gives those reviews instead (any of the workspace’s, older ones too); one id is one repository’s zip, also on each review’s Download menu.
POST/api/v1/datamodel/readnone / writeRead one branch’s data model on its own, in seconds: { url } or { connection, repo }, { branch }. Tables, columns, keys, relationships and indexes from Prisma, SQL migrations and Rails schema.rb; no review, no model tokens. A review of the same commit is reused. Signed in it is kept (the newest per branch) unless store: false.
GET/api/v1/datamodelreadEvery reviewed or read branch with its newest data model’s counts (tables, relationships, schema kinds).
GET/api/v1/datamodel/:idreadOne data model with its summary; ?format=mermaid answers the Mermaid ER diagram.
GET/api/v1/repos/reviews/:idread or ?t=One repository review; format=markdown|svg|sarif; compare=<id> adds the comparison with another review of the branch.
GET/api/v1/repos/reviews/:id/commitsreadThe newest commits of the reviewed branch (?limit=, up to 100), to review an earlier one: POST /api/v1/repos/review with { commit }.
GET/api/v1/commitsreadThe commits of a stored report (?report=) or the newest commits of a reviewed branch (?review=, ?limit=), newest first, each with the commit-message check kept for it; the workspace’s model (never its key) and the budget.
POST/api/v1/commits/checkreadDoes each commit say what it does? {report} or {review}, shas (1 to 10), force to read one again. Each commit’s own diff is fetched from the host, trimmed to the budget and read by the workspace’s model; without one, or when it fails, the rules answer and say so. 409 no_host for a report that came from a pasted diff or the CLI.
GET/api/v1/contributors/rosterreadWho counts as the team on Handiwork and Awards: the organisation’s email domains and the people marked by hand.
PUT/api/v1/contributors/rosterwrite{ domains?, people?: { key: team | outside | null } }: set the organisation’s domains or mark people; null follows the domains again.
GET/api/v1/outcome/tagsreadOutcome tags for every repository the workspace knows: who it serves (customer, internal, supporting, infra, prototype) and how complex it is (simple, moderate, complex), what a person set and what was read automatically, with the evidence; with the tags and their weights.
PUT/api/v1/outcome/tagswrite{ host, repo, audience?, complexity? }: set a repository’s outcome tags. null hands a tag back to the automatic reading; a tag left out keeps what it was. The rest of the repository profile is untouched.
GET/api/v1/depsreadDependencies: each repository’s inventory as its last review read it, the open alerts (one per repository, package, version and advisory, worst first) with the recently closed ones, the update plans that clear them and when each repository was last checked. ?repo= narrows it.
POST/api/v1/depswrite{ repo? }: check the inventories against OSV now. New advisories open alerts and reach Slack or a webhook, gone ones close as fixed, repositories set to update themselves get their pull request. Answers what the check did.
PUT/api/v1/deps/alerts/:idwrite{ state: "dismissed" | "open", note? }: dismiss an alert with a word on why, or open a dismissed one again.
POST/api/v1/deps/updatewrite{ host, repo, ecosystem, name, file? }: open the update pull request (GitHub, GitLab, Gitea) with the manifest moved to the highest first-fixed version; elsewhere, or without write access, the patch and the commands to run come back instead.
PUT/api/v1/deps/ruleswrite{ host, repo, rules }: the repository’s update rules: ignore (names or patterns with *), skipDev, majors, minSeverity, group (one pull request per manifest), semantic (fix(deps): titles), maxPrs (1–20 open at once), schedule (any, weekdays, weekends; UTC). POST /api/v1/deps/update with { host, repo, file, group: true } opens the grouped pull request by hand.
PUT/api/v1/deps/autowrite{ host, repo, autoUpdate }: have the update pull request opened on its own whenever a check finds a fixable advisory in the repository.
GET/api/v1/awardsreadAwards: the winners by month, quarter and year in nine categories, outcome first, with runners-up, every person’s badges in bronze, silver and gold, the team’s feats per period and the workspace’s milestones, read off the stored reviews since the year began. ?repo= narrows it.
GET/api/v1/evidencereadThe change register for a period: one record per change at its latest review, with the ticket it names, who approved it and on which commit, whether it merged, tests, who wrote it and the controls it is evidence for. ?from=YYYY-MM-DD&to=YYYY-MM-DD (UTC days, both included) or the last ?days= (90 by default, at most 400), ?repo= narrows it, ?format=csv answers a spreadsheet with the seal in X-Evidence-Seal. Each record carries a SHA-256 over itself and the record before it.
GET/api/v1/evidence/packreadThe audit pack: a period of stored reviews as one register (each change once, with its security impact, tickets named, who wrote it and its exceptions), a sample drawn from a seed, the controls the period supports, the vendor register, the personal data inventory and machine-written changes by agent and repository. ?days=30|90|180|365 (90 by default, within the plan’s history), ?seed= and ?sample=10|25|40|60 draw the sample, ?format=csv is the register and ?format=zip the whole pack.
GET/api/v1/contributorsreadHandiwork: who built what in the workspace’s stored reviews and how well made, by commit and by pull request. ?days=30|90|365 (90 by default), ?repo= narrows it, ?grain=day|week|month sets the rhythm’s beat, ?format=csv gives rows. One profile per person: their commits with four signals, their pull requests with eight, each read against the team’s usual, the team’s own profile as the baseline, bots apart; nothing calls a host or spends a token.
GET/api/v1/contributors/calendarreadThe contribution calendar: a year of UTC days from a Monday, commits (by author date, merges aside) and pull requests (on their first review) per day for the team and each person, bots aside. ?repo= narrows it. Read off stored reviews; no token spent.
DELETE/api/v1/repos/reviews/:idwriteDelete a repository review.
GET/api/v1/repos/estatereadSeveral repositories together: which reaches which (from names in the code, the workspace’s infrastructure maps, and relationships people stated), what they share, what nothing reaches. ?ids= (as many as the plan draws together: 10, 100 or 250; more is a 402).
GET / POST / DELETE/api/v1/repos/linksread / writeRelationships between repositories that people state: {from: {host, repo}, to: {host, repo}, kind?, note?}; status: "rejected" hides a relationship read from the code. DELETE ?id=.
GET / POST / DELETE/api/v1/infra/mapsread / writeInfrastructure maps the estate reads relationships from: {name, doc} (ArchCanvas, Terraform state or show -json, Kubernetes, Compose or the simple format), {name, url, header?} read live, or {name, archcanvas: {selector}}. POST /api/v1/infra/maps/:id/refresh reads a live one again.
GET/api/v1/connections/:id/repositoriesreadRepositories a code-host connection can see, most recently active first: the first 100, or ?all=1 for as many as the plan lists (1,000; 10,000 on Enterprise). ?q= filters; each says whether the workspace already counts it.
GET/api/v1/reportsreadStored reports, newest first; ?repo=, ?before=, ?limit=
GET/api/v1/reports/:idread or ?t=One report; format=markdown|svg|sarif|brief; the share token opens it without a key.
GET/api/v1/reports/:id/blueprintread or ?t=The design blueprint as SVG; side=changes|before|after, format=json.
POST/api/v1/blueprintnone / anyDraw a revision from its facts (head, base?, policy?): the as-built record, nothing stored.
DELETE/api/v1/reports/:idwriteDelete a stored report.
GET/api/v1/reports/:id/card?t=share tokenThe review card as SVG (for comments and chat).
GET/api/v1/sanityreadWeekly sanity index per workspace or ?repo=.
GET/api/v1/samplereadWhether this workspace reads Acme Inc, the sample workspace, in place of its own: { active, mode, empty, name, canChange }. While it does, a signed-in person’s data reads (GET with the read scope) answer from Acme and carry X-Visualdiff-Sample: 1; an API key always reads its own workspace, and writes always act on your own.
PUT/api/v1/sampleadmin{ mode }: auto shows the sample while the workspace has no connections, reviews or reports; on always (for demos); off never.
GET/api/v1/settingsreadReview settings and the default policy.
PATCH/api/v1/settingsadminbudgetMinutes, commentOnPullRequests, statusChecks, failOnHold, readCommitsOnOpen, policy, policies ([{name, repos, policy}]), llm ({provider, model, baseUrl, key} or null).
POST/api/v1/settings/llm/testadminOne short round trip to the model: an empty body tries what is stored; {provider, model, baseUrl, key} tries a setting before it is saved. Answers {model, ms}, or 424 with the provider’s words.
GET/api/v1/connectionsreadCode hosts, ArchCanvas, Slack and webhooks (never secrets).
POST/api/v1/connectionsadminAdd or replace a connection; returns the webhook URL and secret once.
POST/api/v1/connections/:id/verifyadminTry the stored credential.
GET/api/v1/archcanvas/documentsreadMaps the workspace’s ArchCanvas key can read.
GET/api/v1/keysadminAPI keys (prefix, scopes, last used).
GET/api/v1/planreadThe workspace’s plan, what it allows, how much of each limit is used, and any bigger plan it asked for.
POST/api/v1/planadmin, signed inAsk for a bigger plan: {plan: "team" | "enterprise", note?}. {plan: null} withdraws the request. A site admin moves the workspace.
POST/api/v1/webhooks/:host/:connectionsignaturePull request events from a code host.
GET/api/v1/healthnoneLiveness, database and which features are on.

SDKs

Two small clients over the same API, with no dependencies. @visualdiff/sdk for Node and TypeScript carries the report’s types, so report.findings[0].severity is checked at compile time; visualdiff.py for Python uses the standard library only. Both are served by this deployment as single files, so a project can take one without a package manager. Every method maps to one route in the table above, and a refusal is one error with the status, the code, the message and the trace to quote.

npm install @visualdiff/sdk        # or: curl -fsSL https://visualdiff.ai/sdk/visualdiff.mjs -o visualdiff.mjs

import { VisualDiff } from '@visualdiff/sdk';
const vd = new VisualDiff({ key: process.env.VISUALDIFF_KEY });

const { report, url } = await vd.analyze(diffText, { store: true });     // a diff you have
await vd.analyze('https://github.com/acme/api/pull/482', { comment: true }); // a pull request, commented
const brief = await vd.brief('https://gitlab.com/acme/api/-/merge_requests/91');
const recent = await vd.reports.list({ repo: 'acme/api', limit: 10 });
curl -fsSL https://visualdiff.ai/sdk/visualdiff.py -o visualdiff.py   # the standard library only

from visualdiff import VisualDiff
vd = VisualDiff(key=os.environ["VISUALDIFF_KEY"])

out = vd.analyze(diff=open("change.diff").read(), store=True)
print(out["report"]["verdict"], out["report"]["risk"]["score"], out["url"])
md = vd.markdown(url="https://github.com/acme/api/pull/482")
rows = vd.reports(repo="acme/api", limit=10)

The sources are in sdk/ of the repository; the types under sdk/types are generated from the server’s own, so they never drift. Python as a command: python visualdiff.py < change.diff prints the verdict and the comment and exits 2 on a hold.

Agent skills

Two skills, in the SKILL.md format Claude Code, Codex, Cursor and other coding agents read. Install them into a repository (or your home skills folder) and the agent uses them when asked to review a change.

  • visualdiff-review runs the CLI on the working tree, a commit or a branch range, and reports the verdict, the gate and the findings by severity: critical, high and medium always; low only when clearly worth it; nothing it cannot place on a line.
  • visualdiff-delegate is delegation mode, after open-code-review’s: visualdiff does the deterministic part — which files to read, in what order, under which rules (yours from rules in the policy, plus built-in ones per file kind and sensitive area), with what is already known — and the agent does the reading with its own model. Every file ends as reviewed, or skipped with the reason the brief gave.
mkdir -p .claude/skills
for s in visualdiff-review visualdiff-delegate; do
  mkdir -p ".claude/skills/$s"
  curl -fsSL https://visualdiff.ai/skills/$s/SKILL.md -o ".claude/skills/$s/SKILL.md"
done

The brief itself is node visualdiff.mjs --format brief, or format=brief on the API: Markdown an agent reads before the diff, ending with the comment schema and the coverage block it must return.

MCP server

visualdiff is also an MCP server, at https://visualdiff.ai/api/mcp (Streamable HTTP, stateless). Claude Code, Cursor, Windsurf, VS Code and any other client that speaks MCP can call it with an API key sent as a bearer; the agent then acts for the key’s workspace, with the key’s scopes. There is nothing to install or run: the server is this deployment.

claude mcp add --transport http visualdiff https://visualdiff.ai/api/mcp \
  --header "Authorization: Bearer vdk_…"
{
  "mcpServers": {
    "visualdiff": {
      "url": "https://visualdiff.ai/api/mcp",
      "headers": { "Authorization": "Bearer vdk_…" }
    }
  }
}
ToolScopeWhat it does
review_changeread (write to store)Reviews a unified diff: the verdict with its reasons, the risk, the triage, the findings with their fixes, and the comment as Markdown. store: true keeps the report and returns its link.
review_pull_requestread (write to store or comment)Reviews a pull or merge request by its link, with the workspace’s connection for a private one. Stored by default; comment: true posts the comment on the pull request.
review_briefreadThe delegation brief for a diff, a link or a stored report: which files to read, in what order, under which rules, ending with the comment schema. Delegation mode for an agent that will do the reading.
list_reportsreadThe workspace’s recent reports, newest first, by repository if asked.
get_reportreadA stored report by id, as its comment, with the link.
check_commit_messagesreadDoes each commit say what it does? For a stored report or repository review, the picked commits (the newest two that are not merges unless shas names them; at most ten) are read against their own diffs by the workspace’s model: the verdict, in what way the message and the change disagree, and a message that would have matched. force reads a kept answer again.
contributorsreadHandiwork: who built what in the stored reviews and how well made, one profile per person with the eight craft signals read against the team’s usual, bots apart, nobody ranked. { days?, repo? }. Read off stored reports: no host is called, no token is spent.
awardsreadAwards: the winners by month, quarter and year in eight categories, every person’s badges in bronze, silver and gold, the team’s feats and the workspace’s milestones. { repo? }. Read off stored reports; bots sit out, nobody is shown as last.

Keys are rate-limited per key. A reviewed diff is not kept unless the tool is told to store it; a model never writes the summary over MCP unless asked (narrate: true), so answers come back in seconds.

Self-hosting on Railway

visualdiff is one Next.js service and one Postgres database. The web service also works the review queue; to keep reviews off it, add a second service built from the same repository with VD_ROLE=worker (the image’s start script then runs the review worker, which answers /api/health on PORT for the health check), DATABASE_URL, CREDENTIALS_KEY and APP_BASE_URL (as references to the web service’s), and set REVIEW_WORKER=off on the web service once it runs. Any number of workers share the queue; the Bitbucket pipeline deploys visualdiff-worker after the web service. Create a Railway project from the repository (it builds from the Dockerfile and checks /api/health), add the Postgres plugin, and set these variables. The schema creates itself on first use.

VariablePurpose
DATABASE_URLPostgres (Railway plugin). Without it: guest mode, nothing stored, no sign-in.
APP_BASE_URLPublic URL, e.g. https://visualdiff.ai. Used for links in comments and OIDC redirects.
OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRETSign-in (Authorization Code + PKCE). OIDC_REDIRECT_URI defaults to APP_BASE_URL/callback.
CREDENTIALS_KEY32 random bytes, base64: encrypts host tokens and keys at rest (AES-256-GCM). Required to save connections.
ANTHROPIC_API_KEYOptional: Claude writes the summary from computed facts. NARRATIVE=off disables it; NARRATIVE_MODEL overrides the model.
ARCHCANVAS_URL, ARCHCANVAS_API_KEY, ARCHCANVAS_DOCUMENTOptional single-tenant ArchCanvas map (otherwise per workspace in Settings).
GITHUB_PUBLIC_TOKENOptional: raises GitHub’s rate limit for public links. Use a token with access to no private repositories.
BITBUCKET_APP_INSTALL_URLOptional: the installation link of the Bitbucket (Forge) app, shown as Add to Bitbucket. See Apps.
GITHUB_APP_ID, GITHUB_APP_SLUG, GITHUB_APP_PRIVATE_KEY, GITHUB_APP_WEBHOOK_SECRETOptional: the GitHub App this deployment owns, for one-click installs. See Apps.
GITLAB_APP_ID, GITLAB_APP_SECRETOptional: the application on gitlab.com behind Connect GitLab. See Apps.
REPORTS_KEPTReports kept per workspace (default 2000).
REPO_REVIEWS_KEPT, MAX_ARCHIVE_BYTESRepository reviews kept per workspace (default 500; the newest of each branch is always kept), and the largest branch archive downloaded (default 120 MB).
REVIEW_WORKER, REVIEW_WORKER_CONCURRENCY, REVIEW_WORKER_PER_WORKSPACEThe background review worker. It runs inside the web service unless REVIEW_WORKER=off; CONCURRENCY is how many reviews one worker runs side by side (default 4), PER_WORKSPACE the most any one workspace holds at once (default: all of them). Each workspace also gets no more than its plan allows side by side (Free 2, Team 6, Enterprise 16).
VD_ROLEworker: this service runs the review worker instead of the web server (the same image, started the same way).
ADMIN_EMAILS, ADMIN_TRUST_PROVIDER_EMAILComma-separated addresses that may open the site admin at /admin (plans, accounts, activity, the queue); it is also in the account menu for them. An address counts only when the identity provider says it is verified (from the ID token, or its userinfo endpoint when the token leaves the email out); everyone else gets a 404. For a provider that never says either way but checks every address at sign-up, ADMIN_TRUST_PROVIDER_EMAIL=true accepts a listed address it said nothing about; one it marked unverified never counts. Sign in again after changing either. Under /admin/support the site admin has this deployment’s checks and vendor probes, its variables by name (never by value), email and sign-in, failures and the runbooks; from a person’s page it can view the app as them for an hour or make them a one-time sign-in link, each with a reason recorded on the person’s own activity.

Security

  • visualdiff can read pull requests and write one comment and a status. It never pushes, merges or changes settings.
  • Host tokens, API keys for ArchCanvas and webhook secrets are encrypted with AES-256-GCM. API keys and sessions are stored only as SHA-256 hashes.
  • Addresses you enter (self-managed hosts, ArchCanvas) are fetched over HTTPS only, and private or local network addresses are refused at every redirect.
  • Webhooks are verified by HMAC signature or shared secret before anything is read.
  • The optional model summary receives counts, paths and finding titles, never code or finding excerpts.
  • Logs are one structured line per event; anything that looks like a secret is reduced to its length and last four characters.