A pull request, X-rayed in seconds
An agent’s change is not a black box. The engine is deterministic: the same change gets the same picture, and every finding points at a file and, where it can, a line. Here is what happens between the link and the plan.
Read the change
The diff, its commits, the repository tree at the base, the dependency manifests and .visualdiff.json, all from the base revision so a pull request cannot rewrite its own rules. From a link, a webhook, the CLI or a pasted diff.
Take out what is not a change
Blocks moved between files, formatter-only hunks, pure renames, lockfiles and generated code are recognised and set aside. On agent-written changes this is often most of the diff.
Check what is left
About fifty line rules across application code, SQL, Terraform, Kubernetes, Dockerfiles and CI; intent against the description; provenance; tests and assertions; new dependencies against their registries; helpers that already exist.
Place it
Imports are resolved into a graph of the change and the files that depend on it, laid out by architectural layer. With ArchCanvas connected, the change is matched to the running resources it names.
Plan the review
Every hunk lands in read, skim or skip against your time budget, with its reasons, in an order that follows the dependency graph.
Report back
One comment on the pull request, edited on every push. A commit status that can block merging on hold. A card for chat. A Slack message when someone needs to look.
Eight views of one change
The report opens on the plan. Each other tab answers one question a reviewer asks.
- 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.
Read 65 lines in 20 minutes. Skim 190. Skip 327: moved, reformatted, lockfile or docs.- Intent drift
The description says what the change is for. visualdiff checks the code against it and names the areas nobody mentioned.
“Add idempotency keys” also changes auth, a migration and Terraform.- Hallucinated and squatted packages
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.
“reqeusts” is not “requests”, and PyPI has never heard of it.- Where your data goes
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.
Reads every environment variable, encodes it, and POSTs it to webhook.site.- Poisoned installs and instructions
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 hidden comment in CLAUDE.md tells agents to auto-approve telemetry.ts.- New outside vendors
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.
Adds PostHog (analytics): user events, optionally session recordings.- Déjà vu
New helpers that already exist under another name, and bodies copied from elsewhere in the change.
formatCents is written again in receipt.ts; format.ts already has it.- Who, or what, wrote it
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.
3 of 3 commits by Claude Code, no human commit after the last one.- Reach into production
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.
Touches orders-db (deletion protection off) and orders-api; 24 resources nearby.- The design, before and after
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.
The Stripe adapter now imports a route: wrong way, build fails. Grade 98 → 94.- A map of the change
Changed files laid out by architectural layer, with the imports added and removed between them and everything that depends on them faded in behind.
15 files across 6 layers, with every import added or removed between them.
And the whole repository, not only the change
A pull request is one view. The same X-ray reads a branch as it stands, and everything a team runs.
- The design, gradedLayers, packages and imports drawn from facts the build reads, one request followed through, and a grade in nine areas with every check and where it failed.
- PrinciplesSOLID, cohesion, coupling and the rest, each checked over the whole code with the modules that break it.
- The code as a mapHow far each module sits from the internet, what depends on it, and the matrix of imports that run the wrong way.
- The quality modelReliability, security, maintainability and hotspots over all the code, with the gate a pull request meets and the tests that cover what changed.
- Every dependencyWhat is declared, what is imported, what is declared nowhere, how old it is, and the runtime that went out of support.
- History and comparisonEvery review of a branch kept; any two compared with the changes painted on the blueprint; any of the newest commits reviewed again.
- The estateMany repositories drawn as one system, a lens per reader, every view exported; the ones nobody uses archived and called out apart.
- AdviceWhat to scale, protect or split, with the options and what each costs; a model of your choice can add to it through your own key.
- Natures and your own rulesEach repository read as what it is, the rules tuned by family or one at a time, review rules in plain words by path.
- InfrastructureTerraform, Kubernetes, Compose and platform files matched against your live infrastructure map, with what sits one and two hops away.
- OwnersCODEOWNERS read as the host would, so the plan says who has to look.
- The sanity indexOne weekly number per repository: is the code getting harder to review as more of it is written by machines?
- SweepsEvery repository a connection can see, reviewed in the background, and reviewed again on every push.
- CLI, CI and APIThe same analysis from a dependency-free CLI, any pipeline, or the API with your own keys; Slack and webhooks when a review holds.
- Handiwork: developer scorecardsA scorecard per developer: outcome weighed by what the work did, who it serves, how complex and how well made; a quality score with the code they work in; a personal work-to-do list; a contribution calendar. Read against the team’s usual, never ranked.
- Weighting policyDecide what your scorecards reward: presets for product, reliability, craft or platform teams, every multiplier tunable, the grading rules yours, with a live calculator.
- Awards: winners, badges and milestonesBy month, quarter and year, nine categories with runners-up, badges in bronze, silver and gold, the team’s feats. Nobody is ranked and nobody is shown as last.
- Change control on every reviewThe ticket a change names, who approved it and whether they wrote any of it, whether the approval covers the last commit, tests, and agent-written code read by a person. Read again when the code host reports an approval or the merge, and every change of a period kept as one sealed register.
- Audit pack: evidence, control by controlA period of reviews arranged the way an auditor asks: every change with its security impact, the significant ones, the exceptions, a sample that can be drawn again from a seed, and what it supports in SOC 2, ISO 27001, PCI DSS, DORA, NIST SSDF, GDPR and HIPAA. One zip that says what it does not show.
- Personal data inventoryThe columns that hold data about people, by kind, read from the schema with no database access, and the ones whose name does not say they are protected: the start of a record of processing.
- Vendor registerEvery outside vendor across your repositories, what it usually receives and the pull request that brought it in, as a spreadsheet for vendor reviews and data processing agreements.
- Files that should not be committedSecrets, agent settings, installed dependencies, build output, stray lockfiles and large binaries, flagged on every review and pull request, checked against .gitignore, with the script that fixes it.
- System design, shown movingEach repository’s own system walked through step by step, from the code: how a request travels, where data lives, what it leans on and what shows as it grows. With a library of practical designs and concepts to browse.
- Says vs does: the commit message against its diffEach commit read against its own change: does it say what it does, and does it say why? Stored once, read again for free.
- Dependencies: advisories, alerts and the update pull requestEvery pinned package checked against the open advisory database after each review and on demand; alerts to Slack or a webhook; one click, or none, opens the update pull request, which is then reviewed like any other.
Guardrails in the repository
A .visualdiff.json on the default branch sets the rules: size limits that are tighter for agent-written changes, paths that need tests, protected areas, which findings block. It is read from the base revision, so the pull request under review cannot loosen it.
Anything you leave out keeps its default, shown here.
{
"maxChurn": 1200,
"maxChurnAI": 600,
"maxFiles": 60,
"requireTestsFor": [
"src/**",
"lib/**",
"app/**",
"pkg/**",
"internal/**"
],
"protected": [
{
"path": "**/auth/**",
"reason": "Authentication changes get a security review.",
"level": "warn"
},
{
"path": "**/migrations/**",
"reason": "Schema migrations are reviewed by the data owner.",
"level": "warn"
},
{
"path": ".github/workflows/**",
"reason": "Pipeline changes can leak secrets.",
"level": "warn",
"aiOnly": true
}
],
"blockOn": [
"critical"
],
"requireHumanCommitForAI": true,
"forbidNewDependencies": false,
"ignore": [
"**/__snapshots__/**"
]
}See it on a real change
The sample is an agent-written pull request with six problems in 582 lines.