Code an agent wrote is not a black box. visualdiff X-rays a pull request and draws what is inside: the architecture, the dependencies and the risk. See what changed, how it connects, and where your judgment is needed.
See what the agent added, and the shortcut you didn’t ask for: the dashed red line is an import from the Stripe adapter into a route, against the layer order.
The request
“Add usage-based billing.” Claude Code writes 1 of 2 commits on acme/subscriptions-api #214, 259 changed lines, and a person commits after it.
The visual change
3 new packages in the layers they belong to, api.meterly.io as a new outside system, and one import that crosses a layer boundary: infrastructure reaching up into interface.
The review decision
Investigate adapters/stripe → api/usage before merging. It runs against the layer order, so the gate you set fails the build on it; the design score drops from 96 to 93.
More code. The same human attention.
Another agent. Another pull request. Another set of changes your team needs to understand.
Generating software is only part of the job. Someone still has to decide whether the change belongs in the system, and whether it should ship. An agent’s pull request is not a black box; it only looks like one from the outside.
You don’t need a faster rubber stamp. You need to see inside the change.
See through the change. Understand the impact. Know where to look.
A pull request is a system change. Review it that way. Start with the architecture, not a wall of changed files: see the modules and connections being added, changed or removed, then investigate the findings that need your attention. Every row below comes from a sample X-ray, with the agent that wrote the change.
See how the system changes.
Compare the architecture before and after the change. Spot new modules, new outside systems and imports that break the layer rules your team set.
Each new or upgraded dependency, listed; npm and PyPI additions checked against the registry and the names they imitate; the vendor an SDK brings, named with what it receives.
express-idempotency-guardnpm addednpm has no package by this name · acme/orders-api #482
reqeustspypi addedone edit from requests; PyPI has no project by this name · acme/risk-scoring #61
Changes beyond the stated intent, install scripts, secrets sent out, a redirected registry and instructions aimed at the next agent, checked in the files a skim would skip, lockfiles and minified files included.
acme/orders-api #482beyond the stated intent“feat(orders): add idempotency keys to order creation” also changes migrations, auth and infra.See the intent check
Criticalpackage.jsonInstall script wired to a malicious module. An install hook runs on every install, and this change also adds code that fetches remote code or exfiltrates data (src/telemetry.ts).
Criticaltelemetry.tsPossible data exfiltration. This file collects environment variables and sends them to webhook.site.
High.npmrcPackage registry redirected. Pointing installs at another registry is how a dependency-confusion or a poisoned-mirror attack lands.
HighCLAUDE.mdPrompt injection in an agent instruction file. Instruction files are read by coding agents as commands; hidden or imperative text here steers the agent against the reviewer.
Hightelemetry.tsOutbound to a data-sink host. webhook.site is a paste/webhook/tunnel/file-drop host — a place exfiltrated data is collected.
Mediumpackage.jsonnpm postinstall script added. An install hook runs automatically on npm install, before any code is reviewed or run deliberately.
Get a prioritised reading plan that separates sensitive changes from routine edits, moves and formatting noise. Spend your attention deliberately, not evenly across every line.
In the fictional sample, 582 lines changed; the plan reads 65 closely, skims 190 and skips 327, with the reason on each line.
acme/orders-api #482, feat(orders): add idempotency keys to order creation: a fictional pull request, not a measured result
Read
65 lines: a dropped column, SQL built from strings, a TLS bypass, deletion protection switched off.
Skim
190 lines of new but ordinary code, tests and config.
Skip
327 lines moved unchanged, reformatted, or lockfile and docs churn.
Less mental reconstruction. More engineering judgment.
What changed? What connects to it? Which boundary did it cross? What deserves a closer look? These should be the questions your review interface helps you answer, not questions you reconstruct from scattered files. The X-ray shows the system first; then you read the code with context.
Change mapWhat changed, where does it sit, and what depends on it?Open the Map tab
Connection mapWhat does it reach, and which outside systems and vendors does it add?Open the Connections tab
Architecture historyHow has the system changed, in this pull request and release by release?Open the Blueprint tab
Your architecture. Your rules. Even when an agent writes the code.
Define the boundaries your software should respect. Flag unexpected dependencies, circular imports and architectural regressions in CI, from a policy file that lives in your repository.
Give coding agents the constraints before they write. Give reviewers the evidence before they merge.
Plan against the architecture you have. Give agents its constraints. Review the proposed changes. Check the rules in CI. Keep a design record with each release. Not another diagram to maintain: a shared view of the software you’re building, drawn from every build.
Plan
Start from the building as it is
Every main-branch build publishes the as-built blueprint. A feature is planned against the real layers and outside systems, not last year’s diagram.
--as-built → after.svg, blueprint.json
Code
Give the agent the rules before it writes
agent-brief.md lists the layers, which way imports may point, and what the last run flagged. Put it in the agent’s instructions; it runs the CLI itself and fixes what it introduced before anyone reviews.
agent-brief.md
Build
Fail the job on a design regression
The CI step reads the shape of both revisions where the code already is. An import that runs the wrong way, a new package cycle or a grade drop fails the gates you set, and --fail-on hold exits 1.
exit code, job summary
Review
Open the pull request on what moved
The comment leads with the design delta: packages added, imports against the layer order, new outside systems, findings introduced and resolved, and the drawing one click away.
PR comment, changes.svg
Release
Keep a design record per release
Upload the blueprint with the build’s artifacts. Every tag keeps its drawing and its JSON, so “when did billing start calling Meterly?” has an answer.
build artifact per tag
Operate
Know what the code reaches
Beyond the boundary lists every datastore, SaaS, service and hard-coded host the code calls, and which packages call it: the inventory on-call, vendor review and ArchCanvas start from.
Add ArchCanvas to see the running resources matched to your code changes. A Terraform block, a Kubernetes manifest, an env var or a hostname in the change becomes the resource it names, with its neighbours one and two hops away, and the change opens on the live map.
24 more resources within two hops, from the sample map of a fictional production account.
Two ways to use it
Run a workspace that reviews every pull request across your repositories, or add one step to the pipeline you already have and keep everything inside your code host.
Sign up and connect your code host
Create a workspace, connect GitHub, GitLab, Bitbucket, Azure DevOps or Gitea with a token, and add one webhook. Every push is reviewed, posted back to the pull request and kept in your inbox.
An inbox of reviews with shareable report pages
A weekly sanity index per repository
ArchCanvas, Slack and your review policy in one place
Add one CI step. The review runs in GitHub Actions, GitLab CI, Bitbucket Pipelines or Azure Pipelines and answers in the pull request. No account needed.
A comment edited in place, a status check and a job summary
Block merges on a hold with --fail-on hold
Policy read from .visualdiff.json at the base branch
Developer scorecards built from the code, not the activity
The same stored reviews become a scorecard for every developer: what their work achieved, how well made it is, and what to work on next, weighed the way your team decides. No host is called to read any of it, nobody is ranked, and nobody is shown as last.
Handiwork scorecards
A scorecard per developer. Outcome weighs each piece of work by what it did, who the repository serves, how complex it is and how well made it stands. A quality score reads pull requests, commit craft and the health of the code they work in, and a work-to-do list names what to fix next, file and line. Trunk-based teams get it too: commits are graded by the repository reviews that read them.
Winners by month, quarter and year in nine categories, outcome first, with runners-up; badges in bronze, silver and gold for volume, craft, complexity, languages, rhythm and style; the team’s feats and the workspace’s milestones. Says vs does reads each commit message against its own diff.
Every package a repository pins, read from its last review and checked against the open advisory database after each review and on demand. Alerts open, close when the version moves on and reach Slack or a webhook. One click opens the update pull request on GitHub, GitLab or Gitea, automatically for the repositories you choose, and it is reviewed like any other change.
Deterministic checks over the diff, the repository and your infrastructure. Every finding names a file, points at a line where there is one, says why it matters, and links to the sample where you can see it.
A review plan that fits your attention
Every hunk is sorted into read, skim or skip against a time budget you set. Code moved between files unchanged, formatter churn, lockfiles and generated files go to skip, with the reason on each line.
Agents import packages that were never published, or one letter away from a real one. New dependencies are checked against npm and PyPI and against the names they imitate.
Every host a change reaches is listed and classified, and the lines that read secrets are joined to the lines that send them. Request bins, tunnels, raw IPs and unknown domains stand out.
Install scripts, registry redirects, lockfile tampering, pipeline changes and hidden instructions to coding agents are flagged, including in the files the plan would skip.
A new SDK, API key or tracking script means a new company your data reaches. Each one is named with what it typically receives, ready for a vendor review.
Commit trailers, bot identities, branch names and descriptions reveal Claude Code, Copilot, Cursor, Devin, Codex and a dozen more. Policy can be stricter for agent-written changes.
Terraform, Kubernetes, env vars and hostnames are matched against your live ArchCanvas map, so the reviewer sees the database behind the diff and what sits two hops away.
The whole codebase drawn as layers from facts your build reads, with the change painted over it. An adapter that imports a route, a new package cycle or a new outside system fails the architecture gates you set, at build time.
Findings point to source lines. Review policy lives in your repository. Deterministic checks drive the verdict.
Findings point to source lines
Every finding names a file, points at a line where there is one, and says why it matters. Risk, the plan and the verdict come from rules you can read, so the same change gets the same review.
Review policy lives in your repository
.visualdiff.json on the default branch sets size limits, protected paths, which findings block and the architecture gates. It is read from the base revision, so a pull request cannot loosen its own rules.
What leaves your environment, exactly
visualdiff receives the diff and the changed files it needs to review. The blueprint step sends facts about the build, never source. If you switch the optional model on, it writes the summary from counts, paths and finding titles, never code, and it cannot set the verdict. visualdiff can only comment and set a status: it cannot push, merge or change a setting.
visualdiff informs the decision. Your team owns it.
Before you merge, see inside the change.
Bring your next pull request into visualdiff. The X-ray shows the system first, so you can focus on the code that needs you.