Write what working means as sentences with IDs, let CI show which have proof, get a reviewer that didn't build it, and lock the rules.
This article was first published on Medium. The canonical URL is https://medium.com/@r3dtuxedo/who-checks-the-work-when-you-cant-read-the-code-9f16874ae92d.

A checklist where every line needs proof.
TL;DR
- Checking the plan and checking the code are two jobs. Only you can do the first: write what "working" means in sentences you could verify, one ID each. The agent can do most of the second, but it shouldn't be the one grading itself.
- Put the IDs in test names. A small CI check then shows, per sentence, PASS, FAIL or NO TEST. A review bot or a fresh agent session reads the diff against the same sentences, and you click through the preview for what's left. A bot alone checks the code against its idea of good, not your idea of working.
- This catches missing proof, not bad proof. An empty test named AC-3 turns that row green (I tried it). So spot-check by breaking one feature on purpose, and lock the criteria and the workflow so a PR can't edit them without you. A kit with the script, workflow, PR template and an AGENTS.md block is in a gist below.
A post in r/ClaudeCode in late October asked a question many people who build with agents have. The author said they're not a developer. Claude plans the project and writes the code, it goes to GitHub, and Copilot reviews it. They wrote: "if Claude helps me make the plan AND writes the code, who checks that the plan made sense in the first place? And who checks that the code actually does what we planned?"
They had tried pasting Claude's reports into ChatGPT for a second opinion. That ended up with them in the middle, not knowing which AI was right. And ChatGPT "wasn't even looking at the actual code."
Their last question was the useful one: are checking the plan and checking the code two different jobs?
They are. Several replies said so, in different words, and I answered with a short version of this article. This is the longer one, with the files to copy. It follows Define Done as a Command, which was about plans that carry their own finish line. Here the reader may not be able to judge the code at all, so the checks have to work without that.
Two jobs, not one
The plan check asks: does this list say what I meant? Only you can answer. You know the product, and the agent doesn't.
The code check asks: does the code do what the list says? That's where machines are useful, because it's slow and detailed and has to be repeated on every change.
The trouble starts when one agent does the plan, the code and the grading. One reply put it well: "Same agent that built it will defend it."
Another reply explained why the ChatGPT idea didn't work: "The check has to happen where the code is." A second model looking at a pasted summary is judging the story, not the repo.
The agent can do the checking. It can't also write the question.
Here is how I'd split it. Five checks, three owners:

Your sentences are the thing everything else checks against.
| Check | Who does it | Catches | Doesn't catch |
|---|---|---|---|
| Criteria | You | A plan that doesn't say what you meant | Anything you forgot to write down |
| Tests tied to IDs | Agent writes, CI runs | A sentence with no proof, or failing proof | A hollow test, or behaviour no sentence covers |
| Reviewer on the diff | Bot or fresh agent session | Code that doesn't match a sentence, and changes nobody asked for | Problems you didn't state and it can't see in the diff |
| Click-through | You | What it's actually like to use | Rare paths, slow rot, security holes |
| Branch rules | GitHub settings | The agent editing its own pass conditions | Settings changed by someone with admin rights |
Step 1: Write what "working" means, one sentence at a time
Do this before any code exists, and keep it in a file in the repo, not in the chat. A chat transcript can't be run against. As one reply said, turn the plan into a short list of criteria where each one is checkable: "The export button produces a CSV with columns X, Y, Z" instead of "export should work."
Some rules that make the sentences usable:
- Say what a user sees, or what the data does. "Signing up twice with the same email shows 'You already have an account', and no second account is created."
- One claim per sentence, one ID per sentence. AC-1, AC-2 and so on.
- Add "must never happen" lines. I label them NOT-1. Anything touching money, logins or other people's data deserves at least one.
- Mark what a test can't judge. "Looks right on a phone" is a (manual) line. You'll click it later.
- Let the agent draft, then edit. If you can read a sentence and say "yes, that's what I meant" or "no, it isn't," you've done the plan check.
Two prompts help here. Ask the agent to poke holes in its own plan against your sentences. And after it builds, ask for a plain list of what it built and what it did not build. One reply gave the question to ask a reviewer: "what in this diff doesn't match the plan," not "is it good."
This is what a few lines look like:
- AC-1: A visitor can sign up with an email address and a password.
- AC-3: Signing up twice with the same email shows "You already have an account", and no second account is created.
- AC-5 (manual): The sign-up page is usable on a phone.
- NOT-1: The password is never shown in the confirmation email or in the logs.
Step 2: Make CI show which sentences have proof
The next step is for the agent to write one test per ID, with the ID in the test name, and to see each test fail before it writes the code. One reply described the habit: write the tests out in plain English first, then have the code written until they pass.
But "the agent says the tests pass" is still the agent grading itself. So I wrote a small script, criteria-check.py, that reads your sentences and the test results, and shows one row per sentence. It's about 150 lines of Python with no dependencies. A test counts for a sentence when its name contains the ID.
Any runner that writes JUnit XML works. I ran it against real output from node --test, pytest and Playwright. In pytest an ID is written AC_2, since function names can't contain a hyphen, and the script accepts that.
The kit also has a GitHub Actions workflow that runs your tests and the script, and writes the table to the run's Summary page, using $GITHUB_STEP_SUMMARY. Everything is in one gist, with a README:
https://gist.github.com/br4vesirrobin/0b2e9d153af5201c19c21bb929066b91
Here is one sentence followed all the way through:

The ID is the thread that ties the stages together.
And this is what the check prints when the agent skipped a sentence:

A missing test is a red row, not a quiet gap.
You don't have to read any code to understand that screen. AC-4 has no proof, so it isn't done.
What this proves, and what it doesn't
It proves every sentence has at least one test with its ID and that none of them fail. It doesn't prove the tests are good.
I checked this on purpose. I made a test file where every test was empty: test('AC-1 ...', () => {}), one per ID. The check turned all rows green and exited 0.
My own demo has a milder version. AC-2 says the confirmation email arrives "within a minute." The test checks that one email was queued. Nothing measures the minute. The row is green, and it shouldn't be fully trusted.
A green row means a test with that name passed. It doesn't mean the test checks the sentence.
That's what the next two steps are for. And there's one cheap spot-check you can do yourself: pick one sentence, and ask the agent to break the feature on purpose. The matching test must go red. If it doesn't, the test is hollow.
Step 3: A reviewer that reads the diff against your sentences
The original question named three bots, and they work the way you'd expect: they read the real code on each pull request and leave comments. Here is what their documentation says, with a few other options. This isn't a ranking, and I haven't compared them head to head.
| Reviewer | Where it runs | What it reads or is told | Worth knowing |
|---|---|---|---|
| GitHub Copilot code review | On the PR | AGENTS.md at the repo root, custom instructions and skills | Doesn't count toward required approvals unless you turn that on. Skips files like package.json. Paid plans only. |
| CodeRabbit | On the PR | Picks up AGENTS.md and CLAUDE.md. Plain-language custom checks, Team plan and up | A check is a warning by default. Error blocks merges only with Automatic Approvals. A built-in one compares the PR to the linked issue. |
| Greptile | On the PR | Custom rules, written as plain sentences | Reviews with a graph of the whole repo, per its docs. Its docs I read don't mention AGENTS.md. |
Claude Code /code-review
|
In your session, as a background subagent with its own context | The current diff, or a PR you name | Looks for correctness bugs. /security-review is a separate command. /simplify doesn't look for bugs. |
Codex /review
|
In your session | Your working tree | Focuses on behaviour changes and missing tests. Also runs inside Claude Code as /codex:review. |
For a beginner, my advice is to pick one, not all of them. If you already pay for Copilot, turn on its review before buying a second tool. One reply said CodeRabbit and Copilot review do a similar job, so you don't need both.
What matters more is what you tell the reviewer. A bot knows what good code usually looks like. It can't know that "one free trial per user" is a rule of your product unless you write it down. So:
- Put the IDs in the PR description. The PR template in the kit has an "Acceptance criteria covered" section.
- Keep the AGENTS.md rule from the end of this article. Copilot and CodeRabbit both read AGENTS.md, according to their docs.
-
Use a plain-language check if your tool has one. The gist has a CodeRabbit example that fails when a listed ID has no test that checks its sentence. I wrote it from their docs, but I haven't run it in CodeRabbit, and custom checks need a paid plan. It uses the YAML form that CodeRabbit's docs label configuration V2. For V3, the docs say custom checks live in
.coderabbit/pre-merge-checks/instead, so check which version your repository uses.
A fresh session works too
You don't need a bot to get a reviewer that didn't build the code. Define Done as a Command argued for a reviewer that sees only the plan and the diff. Claude Code's best-practices page lists "getting a reviewer that hasn't seen how the code was written" as a reason to use a subagent, and its own example asks one to review a diff against SPEC.md.
Open a new session, don't paste the build chat, and give it something like this:
Review this branch against ACCEPTANCE.md. Don't read the chat history.
1. For each ID, name the test that covers it. Does the test check what the sentence says, or does it only call the code?
2. List anything in the diff that no ID asks for.
3. For each NOT- sentence, say how this diff could break it.
Only report gaps that affect correctness or a stated criterion. One line per ID, in plain English.
The last line of the prompt matters. The same page explains why: "A reviewer that's asked to find problems will always find something." Fix every finding and you end up with extra layers and tests for cases that can't happen. Telling the reviewer to flag only what affects correctness or the stated requirements keeps the list honest.
A second model is a reasonable extra. One reply recommended a different, stronger model for reviews, and OpenAI's Codex plugin for Claude Code lets you run a Codex review from inside Claude Code. But a fresh session already removes the biggest problem, which is the shared story.
Step 4: You click through the preview
One of the most repeated pieces of advice in the thread was also the most useful: use the thing yourself. "Click through every screen yourself before you call it done." "Click through the app like a stranger and write down what surprised you."
This is the only check that tests your intent directly, and it needs a copy of the app that isn't production. Preview deployments do that. Vercel creates one for pushes to non-production branches, including PRs. Cloudflare Pages creates a unique preview URL for each PR, kept updated as you push, but only when the PR comes from the same repository.
Two cautions:
- Previews can be public. Cloudflare says preview URLs are public by default, and offers Cloudflare Access to restrict them.
- Don't point a preview at production. On Vercel, each environment has its own variables, like database connection info and API keys. Give previews test data and test keys.
That's why the PR template ends with "Test data only: no real emails, cards or customer data." The CI summary also lists every (manual) sentence as a to-do line, so the click-through list writes itself.
Step 5: Lock the rules
Everything above has one hole. The agent that writes the code can also edit the file with your sentences, the tests, the script and the workflow.
GitHub's docs say workflows triggered by pull_request run against the merged result of the PR. So whatever the PR says ACCEPTANCE.md contains is what CI checks. Copilot's docs say it reads instructions and skills from the PR's branch, not from main. That's convenient for testing a change to them. It also means a PR can change the rules it's judged by.
I'm not saying agents do this on purpose. It can be an honest "fix": a test is failing, a sentence looks too strict, so the sentence changes. But it makes the check worthless.
Two settings on your main branch close the gap, both from GitHub's branch protection:
-
Require the
acceptancestatus check. Merging is blocked until it's green. Keep the job name unique across your workflows, and don't add conditions that let the job skip, because GitHub counts a skipped required check as passing. - Add a CODEOWNERS file and require review from code owners. Then a PR that touches your criteria, tests or workflow needs your approval:
/ACCEPTANCE.md @your-github-username
/.github/ @your-github-username
/tools/ @your-github-username
GitHub also advises owning the CODEOWNERS file itself, and /.github/ covers it. The kit has this as CODEOWNERS.example.

The tests and the rules live in the same pull request as the code. Treat them as separate.
The plan limits are real. According to GitHub's docs, protected branches work on public repositories on the Free plan, but private ones need Pro, Team or Enterprise. If you're solo on a free private repo, you can't enforce this. The workaround is a habit: the PR template has a line to check the Files tab for changes to those paths, and you read that diff yourself.
On a team, or with a second account, the CODEOWNERS version is the stronger one.
How much checking is enough
One reply in the thread laid out review depth by stakes, and I agree with its main point: it depends on how bad it is if the code is wrong. Here is my version:
| What you're building | Minimum I'd do |
|---|---|
| A script you'll run once | Criteria, plus read what files it touches |
| A prototype or something only you use | Criteria, tests per ID, your click-through |
| Something other people sign in to or pay for | All five checks, with the required status check and CODEOWNERS |
| Money, personal data or safety | All of the above, plus a person who can read the code, or a paid review |
What this still doesn't cover
Anything you didn't write down. Security and maintainability are rarely in anyone's sentences. Claude Code has a separate /security-review for the diff, and I'd run it before anything real goes live.
Wrong sentences. If your criterion is wrong, a perfect pass proves nothing. That's why Step 1 asks the agent to challenge the plan, and why the click-through exists.
What the agent can reach. None of this limits what the agent can touch on your machine. What Can Your Agent Actually Touch? covers sandboxes, network rules and secrets.
The need for a person. One reply said at some point you need a human mind to ensure correctness and take responsibility. I agree. This setup makes that person's job smaller, and for a hobby project it may be enough. For anything where a mistake costs real people money, it isn't.
On how much to expect from reviewers: CodeRabbit published a report on 470 open-source GitHub PRs, 320 of them AI co-authored. It found about 1.7 times more issues per AI PR, and logic and correctness issues 75% more common. Treat that as a direction, not a measurement of your repo. CodeRabbit sells a review tool, and the authors say they inferred which PRs were AI-written from signals in the PRs.
Put it in AGENTS.md
AGENTS.md is the instructions file Codex, Cursor and OpenCode read, and Claude Code reads it too when there's no CLAUDE.md. (If you keep a CLAUDE.md, put @AGENTS.md at its top.) Copilot's reviewer and CodeRabbit read it as well. A rule here is a request, not a lock, so it works alongside step 5, not instead of it:
## Done means proven
- What "working" means lives in ACCEPTANCE.md, one sentence per ID (AC-1, NOT-1). Never edit it, .github/ or tools/ without asking me first.
- Write a test for each ID before the code. Put the ID in the test name. See it fail first.
- Before you say done, run the tests and `python3 tools/criteria-check.py --results 'reports/*.xml'`, and paste the output.
- Then list what you did NOT build or change, and anything you weren't sure about.
- In the PR description, list the IDs you covered. For each (manual) ID, tell me what to click.
- If a sentence is unclear or can't be tested, ask me. Don't reword it yourself.
The checklist

Print it, or keep it next to your AGENTS.md.
- Write the sentences in ACCEPTANCE.md, with IDs, NOT- lines and (manual) marks.
- Ask what wasn't built, and have the agent challenge the plan against your sentences.
- One test per ID, with the ID in the name, seen failing first.
- Run the check in CI and make it a required status check.
- Spot-check one test by breaking its feature on purpose.
- Add a reviewer that didn't build it: a bot, or a fresh session with the prompt above.
- Click through the preview with test data only, and do every (manual) line.
- Lock the paths with CODEOWNERS where your plan allows, and read that diff yourself where it doesn't.
-
Add the AGENTS.md block, and run
/security-reviewbefore anything real ships.
Threads that prompted this
- r/ClaudeCode: "Lost in the vibe coding jungle. Claude plans and builds, but who checks the work?", with replies about acceptance criteria, fresh-session review, click-throughs and review depth by stakes.
Sources
- Claude Code docs: Best practices, Commands (re-read 28 Nov 2026).
- Codex: slash commands (now redirects to learn.chatgpt.com/docs/developer-commands), codex-plugin-cc (re-read 28 Nov 2026).
- GitHub docs: Copilot code review, protected branches, code owners, events that trigger workflows, workflow commands (job summaries) (re-read 28 Nov 2026).
- CodeRabbit: pre-merge checks, code guidelines, State of AI vs Human Code Generation report (17 Dec 2025; re-read 28 Nov 2026).
- Greptile: introduction, custom rules (re-read 28 Nov 2026).
- Previews: Cloudflare Pages preview deployments, Vercel environments (re-read 28 Nov 2026).
- Test runner output formats: Playwright reporters;
node --testand pytest--junitxmlrun locally, 25 Oct 2026. - Previous articles: Define Done as a Command, Put Your Decisions in the Repo: ADRs.
Top comments (0)