cd /news/ai-agents/how-a-reviewer-agent-found-a-silent-… · home › topics › ai-agents › article
[ARTICLE · art-176785] src=pub.towardsai.net ↗ pub= topic=ai-agents verified=true sentiment=· neutral

How a Reviewer Agent Found a Silent Bug in My LLM Eval

A reviewer agent running Claude Opus 5.5 in Claude Code v2.1.316 flagged a silent scoring bug in an LLM evaluation before any model was called, according to the practitioner's first-person account: the scorer classified an answer containing both the old value and the corrected value ("9 and 10") as "wrong_other" rather than "kept_old_value," undercounting the failure the study measured while leaving overall accuracy unchanged. The author fixed the scorer by splitting answers on "and," "or," commas and slashes and flagging the old value when a whole separate part of the answer matched it, and later sent the lead six corrections to the report, at least three concerning text the skeptic had reviewed and passed. The author notes the "write only your own files" instruction did not prevent the skeptic from having shell access, and recommends giving a reviewer a read-only copy or a filesystem sandbox to enforce read-only review.

recommendation

Have a separate reviewer agent check your scorer against the written spec before running models, and split answers on "and," "or," commas and slashes so old-plus-new responses land in the kept-old-value category.

more in playbook: Evals and testing for LLM apps
by read6 min views2 publishedNov 26, 2026

Disclosure. I used Claude and ChatGPT for feedback and editing, including help rephrasing parts of this article. I also used a model from another provider to help review the evaluation report. The research and scoring decisions were mine.

I was building a small evaluation. Give a model a conversation in which the user corrects an earlier request, then score whether the answer uses the new value. The failure I cared about most was a model keeping the old value after it had been corrected. The scorer had a separate category for exactly that.

Here’s the scorer’s logic, simplified, with made-up data:

python
def score(answer):    if answer == new:        return "correct"    if answer == old:        return "kept_old_value"    return "wrong_other"
assert score("9") == "kept_old_value"assert score("9 and 10") == "wrong_other"  # Misclassified failure

An answer that kept the old value and added the new one still counted as wrong. It went into “wrong for other reasons.” Overall accuracy stayed the same, but the breakdown would undercount the failure I was studying every time a model answered that way.

The tests passed because none covered this case. My written spec even gave an old-plus-new answer as an example of “old value kept.” The Claude Code session I called the skeptic flagged the mismatch before the first call to any of the models in the evaluation. Its finding was easy to check. Run 9 and 10 through the scorer and compare the result with the spec.

Near the end of the run, I read the report closely and, with some help from a model from another provider, sent the lead six corrections. At least three concerned text the skeptic had reviewed and passed.

Checking went both ways. When the lead rewrote the “ceiling” line, the skeptic caught a wrong count in the new version. The outside review asked what the count could support. The skeptic checked whether the count itself was right.

All four sessions ran Claude Opus 5.5 in Claude Code v2.1.316 on one laptop. They could send messages to each other by name. Claude Code cross-session messaging

Everyone also added messages to one shared file, LOG.md. Corrections went in as new entries. For day-to-day decisions, the owner proposed a change, the skeptic challenged it, and the lead made the call and logged it. I wrote the brief and made decisions about what the evaluation measured.

The skeptic’s role file asked it to check sources, reproduce important claims, and record each claim, verdict, and supporting evidence. The verdicts were CONFIRMED, OVERSTATED, WRONG, and UNVERIFIED. It added CONCERN for decisions that could spoil the study even if the code did what the spec said.

“Write only your own files” was an instruction to the sessions. The skeptic still had shell access. To enforce a read-only review, give the reviewer a read-only copy or use a filesystem sandbox. Claude Code permissions

Other practitioners have tried dedicated reviewer agents and cross-provider code review. I wanted a record of what this setup caught on an evaluation, what slipped past, and what the review cost. Adversarial Review · Cross-provider PR review in Towards AI

The skeptic found a mismatch between the scorer and one example in the spec. I still had to decide what counted as keeping the old value. I chose to flag it when a whole, separate part of the answer matched that value. Splitting on “and,” “or,” commas, and slashes caught both 9 and 10 and 9 or 10. A model that says “or” may simply be unsure. I included those cases because the old value is still present as an option. Matching whole parts keeps 19 out of the category.

Here’s a synthetic version of the fix and the regression check. It uses the same old and new values as the first snippet.

import re
python
def score_fixed(answer):    if answer == new:        return "correct"    parts = re.split(r"\band\b|\bor\b|[,/]", answer)    if any(part.strip() == old for part in parts):        return "kept_old_value"    return "wrong_other"
assert score_fixed("10") == "correct"assert score_fixed("9") == "kept_old_value"assert score_fixed("9 and 10") == "kept_old_value"assert score_fixed("9 or 10") == "kept_old_value"assert score_fixed("9, 10") == "kept_old_value"assert score_fixed("9 / 10") == "kept_old_value"assert score_fixed("19") == "wrong_other"

The skeptic also flagged that a strict time parser would reject 5.30 where the prompt asked for 5:30. I accepted both in time fields. The evaluation was measuring whether the model used the corrected time, so I treated the separator as formatting.

I froze the scoring definitions and the list of accepted spellings before the first evaluated-model answer. A smoke test then exposed two implementation bugs in how repeated runs were handled. I reopened the freeze for those fixes on condition that the matching rules stayed byte-identical and every existing answer label was reproduced. The skeptic rechecked the fixes before the full run. After seeing outputs, I kept a separate exploratory review for answers whose meaning appeared right but failed strict matching.

In the first 20 hours and 40 minutes, the skeptic logged 99 verdicts on 81 distinct claims. Some claims were checked again after a fix. It marked 13 of the 81 as OVERSTATED or WRONG at least once. Eight were fixed and rechecked, four were reworded, and one became a caveat. The count describes how the skeptic labeled the claims it reviewed in that window.

Two checks were especially instructive:

The skeptic also surfaced a problem I created. Two sessions asked me how to handle the same startup bug, a minute apart. I approved a workaround in one terminal and a code fix in another. My answers reached the shared log one second apart. The skeptic asked for a single confirmed decision before it would pass either option. With a team, I’d have the lead ask each question once, record the answer, and tell the other sessions to proceed.

I took the usage figures from session transcripts and counted each API response once. I priced that usage at Anthropic’s public Opus 5.5 API rates per million tokens ($4 for uncached input, $5 for five-minute cache writes, $0.20 for cache reads, and $20 for output). The dollar figures are API-equivalent estimates. I ran the sessions through an enterprise account and had no invoice for the run. Anthropic API pricing

The full-run estimate comes from about 20.58 million tokens written to the five-minute cache, 408.4 million read from cache, 10,800 uncached input tokens, and 3.91 million output tokens.

Much of the wall-clock time was idle. The skeptic’s estimate covers its own session. Time and tokens spent by other sessions responding to its findings are part of the team total. I ran one configuration, so these numbers describe that setup’s usage.

I skipped the four-session setup for my next project, where I only needed a quick feasibility check. I’d use it again for a longer evaluation where a quiet scoring mistake could change the conclusion. I’d also put the claims in front of an outside reader earlier. The skeptic caught the missing case in the code. It took another look to catch what we’d claimed from the numbers.

How a Reviewer Agent Found a Silent Bug in My LLM Eval was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.

── more in #ai-agents 4 stories · sorted by recency
── more on @claude opus 5.5 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-a-reviewer-agent…] indexed:0 read:6min 2026-11-26 · —