Wyro with Claude Approvals
Claude Approvals (part of Claude Ship) lets Claude approve pull requests that your policy calls routine. Wyro answers a narrower question on the same pull request: did this change make a route reach a table without authentication, validation or a rate limit? It reads the code without a model, so the same commit always gets the same answer. Used together, Claude approves the routine work and Wyro holds the merge when a change crosses an auth boundary.
How the two fit
An approvals policy can't read CI results. Anthropic's docs say to keep CI as its own required check in GitHub, and that's how Wyro plugs in. Claude can approve, but GitHub still won't merge until the Wyro check passes. When Wyro fails, a person has to look at the finding and either fix it or accept it as known debt.
- Claude Approvals decides who has to approve: Claude, one person, or two.
- Wyro decides whether the change can merge at all, based on what it reaches.
Step 1: run Wyro on every pull request
If you already use the action from Checks in CI, skip to step 2.
# .github/workflows/architecture.yml
name: architecture
on: [pull_request]
permissions:
contents: read
pull-requests: write # for the verdict comment
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DominicPaaul7/wyro-check-action@v1On a repository that already has findings, create a baseline first (npx wyro-check . --update-baseline, then commit .wyro/baseline.json). After that, only findings a pull request adds will fail it.
Step 2: make it a required check
In GitHub, open Settings → Branches (or Rulesets) for your default branch. Turn on "Require status checks to pass" and add the check job from the architecture workflow (it appears once the workflow has run on one pull request). Claude Approvals also posts its own check, so you can require both.
Step 3: keep people on the files that decide what Wyro enforces
An agent shouldn't be able to approve a change to the rules that judge it. Wyro's config and baseline are those rules: one line added to the baseline silences a finding. Give them a human seat in .claude/approvals.yml, and do the same for the directories that hold your auth middleware.
# .claude/approvals.yml
version: 1
mode: observe # watch for a week or two, then delete this line to enforce
rules:
- purpose: "A person approves changes to what Wyro enforces."
paths: ["wyro.json", ".wyro/**", ".github/workflows/architecture.yml"]
verdict:
claude: comments
seats: 1
- purpose: "A person approves changes to auth middleware."
paths: ["src/middleware/**", "src/auth/**"] # your own paths
verdict:
claude: comments
seats: 1Your other rules, including the ones that let Claude approve, stay as they are. When rules overlap, Claude Approvals uses the strictest one, so these two can only add a person to a pull request. They never take one away.
What each tool covers
- Claude Code Review reads the diff the way a reviewer does: logic, naming, edge cases and intent. A model judges it, so it can catch things no rule describes.
- Wyro reads the whole backend, before and after the change: every route, every table, and the auth, validation and rate limits between them. Rules judge it, so the result is the same on every rerun. You can point to it in an audit.
Neither one replaces the other. Running them together is the point: one finds what a reviewer would notice, and the other blocks the merge when a pull request reaches a table it never reached before.
Using a coding agent day to day? Wyro also runs inside the agent before it opens the pull request. See For coding agents.