How I check the apps I build

Independent Code Review Agents

Four Claude agents check my apps for code quality, security, usability and user acceptance. Each one works alone, in its own copy of the code. Their results meet in one place, an App Tests page in each app, and only after each run has finished.

Who runs where

The same agents, set up in three projects. The Underwriting Desktop came first. My agency management system rebuilt the setup so that each agent's independence comes from how its run is built, not from its instructions. Siryous CRM copied that version without the UAT tester.

Agent Underwriting Desktop Agency system Siryous CRM
Code auditorBugs and code quality Every 4 h On demand/audit On demand/audit
Security reviewerVulnerabilities, and data leaving the machine Every 4 hwhen the code changed On demand/security-audit Every 4 hwhen the code changed
UX reviewerUsability, with before/after mockups Daily ~7:35when the screens changed Daily ~7:54when the screens changed Daily ~8:24when the screens changed
UAT testerEvery function end to end, as a user would On demand/uat On demand/uat Not set upno test harness
Filled a scheduled task runs it Outline started by hand with the slash command

In the agency system and Siryous CRM every run skips itself when the code it covers hasn't changed, whoever starts it. Adding force runs it anyway.

One run, start to finish

Each agent gets a lane of its own: its own copy of the code, its own process and its own report. The lanes never touch. The runner joins the reports in the ledger, and only App Tests reads across them.

Scroll sideways to follow the whole run.

STARTS RUNNER OWN SNAPSHOT OWN PROCESS OWN REPORT LEDGER WHERE I LOOK no path between lanes sandbox-exec guard on every tool call Scheduled task or a command /audit /security-audit /ux-audit /uat review-run.sh skips if nothing it covers changed copies the files for each agent runs tsc, tests and npm audit itself, first .review/code/ source, tsc and test output its own last report .review/security/ source and npm audit output its own last report .review/ux/ screens and copy only its own last report .review/uat/ source and test harness its own last report code-auditor fresh claude -p Read Grep Glob Bash security-reviewer fresh claude -p Read Grep Glob Bash ux-reviewer fresh claude -p Read Grep Glob Bash uat-tester fresh claude -p Read Grep Glob Bash code/REPORT.md CR-001, CR-002 … security/REPORT.md SEC-001 … ux/REPORT.md UX-001 + mockups uat/REPORT.md UAT-F1 … AGENT_LEDGER .json the runner adds each report once its run has ended App Tests page the only place that reads every agent I read I triage fix top-down, or mark Accepted or Declined, with a reason a coding session fixes it and cites the ID in the commit · the next run checks the fix and marks it resolved the only agent that runs the app uat.sh: local Docker copy, writes allowed, wiped after canary proves no writes · then the live site, GET only
The run as the agency system and Siryous CRM build it. Siryous CRM has the first three lanes; the dashed UAT lane exists in the agency system and the Underwriting Desktop. The Underwriting Desktop has the same lanes but starts each agent as a subagent inside a Claude session, fenced by its instructions and a read-only hook instead of a snapshot and sandbox.

Inside one lane, as Siryous CRM builds it

What an agent can't see can't bias it. The snapshot is built from the files git tracks, so nothing gitignored can get in, and the guard checks every tool call against a deny-list. If the guard can't decide, it refuses.

Gets

  • The files git tracks, minus anything private
  • Its own agent definition
  • Its own last report, so finding IDs stay stable
  • CLAUDE.md, renamed PROJECT_NOTES.md so it's read as notes, not instructions
  • The output of checks the runner ran first: types and tests for code, npm audit for security

Never gets

  • Another agent's report, definition or mockups
  • The ledger
  • Memory and session transcripts
  • The database, backups, sign-in token, owner config and .env.local
  • Spreadsheets, databases and backups anywhere, filtered by file type even if misnamed

The guard blocks

  • Reading outside its snapshot
  • Writing anything
  • Starting another agent
  • Requests to any running copy of the app
  • Running code: an interpreter may only print its version
  • The Keychain tool

The UAT tester's three passes

The UAT tester is the one agent that runs the app, so its harness, scripts/uat.sh, runs three passes in this order. It's set up in the Underwriting Desktop and the agency system.

  1. SandboxA disposable Docker copy built from the snapshot, with its own database on a local port. Every flow runs here, writes included, and then the copy is wiped.
  2. CanaryThe read-only suite runs against the sandbox, and the harness compares the data table by table to prove the suite changes nothing.
  3. Live siteThe same read-only suite runs on production. A browser guard aborts any request that isn't a GET. Without a UAT login, only the signed-out checks run.

How the three setups differ

Underwriting Desktopfirst Agency systemmodeled on Underwriting Desktop Siryous CRMcopied from the agency system, 3 Nov
How a run starts A slash command, run by hand or by a scheduled task, starts the agent as a subagent of a Claude session and writes its report. scripts/review-run.sh builds a snapshot and starts a separate claude -p process. The same runner, without the UAT tester.
What keeps it independent Its instructions, plus a hook that keeps Bash read-only for the security and UX agents. Its own snapshot and process, a guard on every tool call, and the Mac sandbox. All of that, plus checks run by the runner and a guard that refuses running any code.
Where reports go docs/, tracked in a private repo. A hook folds them into the ledger and can send them to App Tests on the deployment. docs/agent-reports/, tracked in a private repo. The live App Tests page updates on the next deploy. data/agent-reports/, gitignored because the repo is public. App Tests is in my local app.
Can it see a running app The UX agent may look at the local app if it's already running, GET only. The UAT tester reads the live site. Only the UAT tester, and the guard blocks the App Tests page. No. The live CRM holds real people's details, so the UX agent reviews from source.

When a fix counts

A coding session fixes items top-down and cites the finding ID in the commit. The fix counts once the next run of that agent checks it and marks it resolved. Scheduled runs read the working copy, so they can confirm a fix before it's committed. Until that run, a fix is only a claim.