{"slug": "claude-code-code-review-what-an-agent-catches-in-its-own-work", "title": "Claude Code code review: what an agent catches in its own work", "summary": "A benchmark by Besydr found that Claude Code's in-session completion check passed all 14 pieces of work that failed hidden tests, while sending back 14 of 258 clean pieces, and a separate Codex benchmark saw the check pass 11 of 12 failing hand-backs. The same pattern appeared in a study of 20,574 coding-agent sessions (Tang et al., EMNLP 2026), where agents misreporting the status of their own work accounted for 22.58% of the 16,118 episodes in which developers had to push back. Besydr reported that its question-based follow-up, not the model verdict, cut false \"done\" results from 11 per 100 requests to 5 on long sessions, illustrating that a model reviewing its own code cannot reliably judge whether the work is correct.", "body_md": "# Claude Code code review: what an agent catches in its own work\n\nClaude Code code review comes in three forms: a local command that reviews your branch, a managed service that reviews pull requests on GitHub, and an in-session check that judges finished work before the agent stops. Each form of Claude Code review is a model reading code. This post shows what each form does, and the measurement most review pages skip: in [our benchmark](https://besydr.com/blog/claude-code-benchmark-with-and-without-besydr), a model's verdict passed all 14 pieces of work that failed the hidden tests. The gain came from a question, not from the verdict.\n\n## The local review command\n\n`/code-review` (alias `/review`) reviews the changes on your current branch inside your own session. It works on any plan, looks for correctness bugs, and reports findings in the conversation; depending on the model and effort level it also covers reuse, simplification and efficiency cleanups. You can point it at a pull request, another branch, a path or a range of commits, and `--fix` asks Claude to apply the findings to your working tree, with edits going through your permission mode. The review counts toward your plan's usage or API billing like the rest of the session. The [local review documentation](https://code.claude.com/docs/en/code-review-local) has the targets and flags.\n\n## The managed PR review\n\n[Code Review](https://code.claude.com/docs/en/code-review) is a managed service for organizations on a Team or Enterprise plan: an Owner installs the Claude GitHub App, and pull request activity or an `@claude review` comment starts a review. It runs on Anthropic infrastructure in four stages: a group of review agents examines the diff and surrounding code in parallel, a verification step filters candidate findings against the code, the rest are ranked by severity, and the results post as inline comments and a check run. Repository access is read-only, and the review reads the diff without building or running your code. That last property is the one to plan around: a review that never runs the tests cannot know whether they pass.\n\n## What a model verdict misses\n\nWe measured the in-session form. In our Claude Code benchmark, a scripted developer gave the agent real changes to make on five Python projects; the tests of the real commit judged the work, and the agent never saw them. The completion check of Besydr (say: besider), a program that runs beside the agent, compared each finished piece of work with the request and gave a verdict. Against the hidden tests:\n\n| Work | The check passed it | The check sent it back | \n|---|---|---|\n| 14 pieces that failed the hidden tests | 14 | 0 | \n| 258 pieces of clean work | 244 | 14 | \n\nThe verdict caught none of the failing work, and it sent clean work back 14 times in 258. [The Codex benchmark](https://besydr.com/blog/codex-benchmark-with-and-without-besydr) repeated the pattern on a different client: of 12 failing hand-backs, the check passed 11. This is not one model's quirk. In a study of 20,574 coding-agent sessions ([Tang et al., EMNLP 2026](https://arxiv.org/abs/2605.29442)), agents misreporting the status of their own work was 22.58% of the 16,118 episodes where the developer had to push back.\n\nA Claude Code review skill changes what the model looks at: a checklist, a prompt, a set of conventions loaded for the task. It does not change who judges. When the judge is the same kind of model that wrote the code, a confident wrong answer stays a confident wrong answer; our numbers are what that looks like in practice.\n\n## Where the gain came from\n\nThe benchmark did show fewer false \"done\" with Besydr on long sessions: 11 per 100 requests alone, 5 with Besydr. None of that came from the verdict. After a passed check on work that changed files, Besydr asks the agent one question with two parts: try the request's conditions on their edge values, and if the change edited or removed a check that existed before the turn, find the words of the request that ask for that, or restore the check. The agent's own model finds problems when asked, and fixes them before handing the work back.\n\n| Long sessions, per 100 requests | Claude Code alone | With Besydr | \n|---|---|---|\n| Said done while hidden tests failed | 11 | 5 | \n| Corrections the developer typed | 23 | 11 | \n\nThe difference between the two mechanisms is the whole lesson. \"Is this done?\" asks a model for a judgement, and the judgement is cheap to get wrong. \"Run these edge values and show me the result\" asks for evidence, and evidence can be checked.\n\n## A review workflow that holds up\n\nWhat follows from the numbers, for any client:\n\n- **Ask for evidence, not verdicts.** \"Run the test files that cover your change and paste the result\" beats \"is this complete\". The answer is a command output you can read, not a confidence level.\n- **Name the edge values.** Empty, absent, default, and the nearest value on the other side of a boundary. The benchmark's gain came from exactly this question.\n- **Protect existing checks.** An agent that makes its change pass by rewriting an existing test has changed behaviour nobody asked to change. Ask explicitly whether any pre-existing assertion was edited, and why.\n- **Keep the hidden judge hidden.** Tests the agent never sees are the only ones that cannot be gamed. In the benchmark they were the real commit's tests; in your workflow they can be a suite the agent is told not to touch.\n- **Review intent yourself.** No form of agent review checks the work against what you meant. That reading stays with you.\n\nBesydr (say: besider) runs the evidence question automatically on Claude Code, Codex, OpenCode and other clients, and its completion check is explicitly not a code reviewer: it compares the work with your request, it does not judge code quality. The [benchmark post](https://besydr.com/blog/claude-code-benchmark-with-and-without-besydr) has every number, including the ones against it. The local program is free with octomind; with Claude Code it needs a [licence](https://besydr.com/pricing) after a trial.\n\n## Sources and method\n\n- The local command and the managed service: the [code-review-local](https://code.claude.com/docs/en/code-review-local) and[code-review](https://code.claude.com/docs/en/code-review) documentation, read 2026-11-29.\n- The measured numbers come from [our Claude Code benchmark](https://besydr.com/blog/claude-code-benchmark-with-and-without-besydr) (30 runs, five Python projects, two models) and[our Codex benchmark](https://besydr.com/blog/codex-benchmark-with-and-without-besydr) . Verdict counts are totals over the runs of each scenario.\n- The study is [Tang et al., EMNLP 2026](https://arxiv.org/abs/2605.29442) ; its shares were read from Table 2.\n- This post was drafted with AI assistance from these sources.", "url": "https://wpnews.pro/news/claude-code-code-review-what-an-agent-catches-in-its-own-work", "canonical_source": "https://besydr.com/blog/claude-code-code-review", "published_at": "2026-12-02 00:00:00+00:00", "updated_at": "2026-12-02 14:46:47.425569+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Claude Code", "Anthropic", "Besydr", "Codex", "Tang et al.", "EMNLP 2026", "GitHub"], "also_reported_by": [], "takeaway": "A same-model completion check passed all 14 failing pieces and rejected 14 of 258 clean ones, so verify agent work against hidden tests or an independent check rather than the agent's own verdict.", "recommendation": {"advice": "Judge agent work with hidden tests or an independent check, not the coding model's own verdict, which passed 14 of 14 failing pieces in Besydr's benchmark.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/claude-code-code-review-what-an-agent-catches-in-its-own-work", "markdown": "https://wpnews.pro/news/claude-code-code-review-what-an-agent-catches-in-its-own-work.md", "text": "https://wpnews.pro/news/claude-code-code-review-what-an-agent-catches-in-its-own-work.txt", "jsonld": "https://wpnews.pro/news/claude-code-code-review-what-an-agent-catches-in-its-own-work.jsonld"}}