How to evaluate AI agents that debug your code
How to evaluate AI agents that name a cause: count an honest I don't know as a success, check the files they read, and refuse a rise in confident errors.
Felipe Lira
in short
To evaluate an AI agent that names a cause, treat an honest I don't know as a success and grade the files it actually read, not how fluent the answer sounds. Do not ship a change that makes confident errors more common. Hinto already records what it read and treats an honest I don't know as a success. The steps below are how to test any agent the same way.
on this page
To evaluate an AI agent that names a cause, write the outcomes in advance (including an honest "I don't know"), then grade the files it actually read rather than how fluent the answer sounds. Do not ship a change that makes confident errors more common.
An agent eval is a repeatable test: you give the agent a task with a known answer, run it, and grade the result with a rule you wrote before you looked. Vendor guides walk through end-to-end scores, step scores, and a second model scoring the write-up. Those work when success is a database row or a passing test. They miss the failure that hurts a small team most: a debugging answer that is specific, well argued, and wrong.
Hinto has to follow a public rule on every ticket. Each one arrives with a cause in one sentence or an honest I don't know, a confidence, what the answer rests on, and what it could not check. A fluent wrong cause sends an engineer into the wrong file. The investigation page states the rule the eval has to enforce: "An honest I could not determine the cause is a successful outcome. Bluffing is the failure mode we refuse." The steps below are how to test an agent against that rule. We have not published a solve rate.

Why accuracy-only scoring rewards guesses
Most agent evals score the final answer and the steps that led to it. A confident wrong answer can pass both. Braintrust's guide to agent evaluation is a fair picture of the usual method: end-to-end scoring (did the task succeed) plus step scoring (right tool, valid parameters), with code checks for objective outcomes and LLM judges for open-ended reasoning.
A debugging answer is a different object. "The digest went out twice because the lock is released before the send finishes" can be specific and still blame the wrong file. If the only score is accuracy, guessing pays.
OpenAI made this point for language models in Why language models hallucinate (5 September 2025). On SimpleQA, a short-answer factual test, o4-mini was right 24% of the time and wrong 75% of the time. gpt-5-thinking-mini was right 22% of the time and wrong 26% of the time, because it abstained on 52% of the questions. An accuracy leaderboard ranks the guesser first.

The same trap shows up in agent evals. If "I could not determine the cause" scores as a failure, the agent learns to invent a cause. Split the results. Count a right cause and an honest insufficient-evidence answer as successes. Count a miss and a confidently wrong answer as different failures, and treat the second as worse.
1. Count I don't know as a success
Count a right cause and an honest "I don't know" as successes, and treat a confidently wrong answer as worse than a miss. Write four buckets before you run anything, each with a one-line definition so two people would grade the same transcript the same way.
| Outcome | What happened | Success? |
|---|---|---|
| Right cause | Named the place that holds the defect, explained the mechanism, and was confident enough to act | Yes |
| Honest insufficient | Said the evidence cannot show a cause, and that was true | Yes |
| Miss | Pointed at the wrong place, cited too broadly to check, or claimed no cause without saying the evidence was missing | No |
| Confidently wrong | Named a cause with confidence, and that cause was wrong | No, the worst |
A transcript (also called a trace) is the record of one run: the files opened, the quotes, the cause sentence, and the confidence. Grade from that record. Do not grade from a summary the agent wrote about itself.
The honest-insufficient bucket is the one most scoreboards skip. Hinto states a confidence with the cause and records what it could not check. A missing connector (GitHub, Sentry, or Signal not hooked up) is written on the ticket as a gap, not filled in with a guess. Copy that into the eval: if the case withheld the mail-worker logs, "I cannot tell without those logs" is a success. Inventing a timezone bug in cron.ts is not.
2. Build cases the agent cannot cheat
Build each case from a real failure, with a known answer, in a snapshot of the code the agent cannot peek past. Start from failures you already reproduce by hand: a ticket, a known fix, and the code from before that fix. Anthropic's public eval guide (9 January 2026) says 20 to 50 simple tasks drawn from real failures is a great start. You do not need a benchmark. You need cases where two engineers would independently reach the same pass or fail.
Each case needs three pieces:
- The ticket in a customer's words. No file names, no function names, none of the fix's own words. If the ticket already names
sendDigest, the agent is matching a string, not investigating. - A snapshot of the code from before the fix. One commit, no parents, no sibling branch to diff against. Anthropic has published that Claude gained an unfair advantage in some internal evals by reading git history from previous trials. A debugging agent will do the same if you leave
mainin the repo. - An answer key. The files that hold the defect, and a short paragraph of the mechanism. The key is for the grader. It never goes into the prompt.
Keep a few cases out of everyday iteration. If you tune the prompt against every case you have, the eval stops measuring the agent and starts measuring how well you fitted the prompt to those cases. Hold those cases until a change already looks better on the ones you iterate on, and run them once.
Grade against the commit that was live when the ticket arrived, not against main today. That is how Hinto reads GitHub: read-only code at the commit that was live, never a write. An eval that grades against a later commit is grading a different product.
3. Grade the files it read
Grade the files a cause-finding agent cited, and prove it read them, before anyone scores the paragraph. A coding agent that writes a patch can be graded by unit tests. SWE-bench is a public benchmark that gives agents GitHub issues and grades the patch by running tests: they fail before the patch and pass after it. An agent that names a cause has no test suite. The answer is a sentence. You have to check the evidence under that sentence first.
Take the files the cause cites and ask two questions the transcript can answer without anyone interpreting prose.
- Did the fix change one of them? If the defect lives in
src/mail/sendDigest.tsand the cause cites onlysrc/jobs/cron.ts, the run is a miss. Stop. Do not ask a model whether the timezone theory is "reasonable." - Did the run verifiably read that file? A recorded open of the file before the citation counts. A quoted excerpt that actually occurs in the file at the snapshot commit also counts. A made-up quote does not. A read that happens after the citation cannot have informed it.
Only a run that passes both can be a right cause. An agent that lists half the repository is not investigating; it is spraying names until one of them hits. Cap how many files a cause may cite, and fail a run that goes over.
This is the opposite of a common eval instinct. Anthropic's guide says it is often better to grade what the agent produced, not the path it took, so you do not punish a valid approach you did not anticipate. That advice fits a coding agent whose output is working code. It does not fit a cause-finding agent. The path is the evidence. A paragraph that never opened the defective file is a guess, even if the words happen to be right.
Hinto already records what it read. Your eval should check the same thing, on cases where you know the answer.
4. Use an LLM judge last
Use an LLM judge for the explanation after the place is verified, and never let it decide a ship-or-not call alone. An LLM judge is a second large language model (LLM) that scores an answer against a rubric. Do not use it to rescue an answer that pointed at the wrong file.
The MT-Bench and Chatbot Arena paper (Zheng et al., 2023) found that LLM judges favor answers by their position and favor longer answers. It also found that a judge can be misled into accepting a wrong answer to a math question it could solve on its own. Four limits keep that from deciding your eval.
- Blind. The judge sees the ticket, the answer, the rubric, and the expected mechanism. It does not see which model, which tools, or which prompt produced the run.
- Gated. Ask it only when the cited place is right and the agent claimed a cause. Nothing it says should turn a miss into a success.
- Overruled. A person who labels the same answer beats the judge. Agents do not label.
- Flipped. Before you ship a change, take every unlabelled judge call that would move a run into or out of success, or into or out of confidently wrong, and reverse it against the candidate. If the decision changes, the result is inconclusive until a person labels those runs.
The last rule is the one to copy even if you skip the rest. It turns "the judge liked it" into "the decision survives the judge being wrong."
One run, graded by hand
The walkthrough below is made up. It is not a published lab result. It shows the four outcomes on one ticket so you can grade the next run yourself.
Ticket (customer words): "The weekly digest went out twice this morning. I did not change anything."
Answer key (grader only): The defect is in src/mail/sendDigest.ts. A lock is released before the send finishes, so two workers both send. src/jobs/cron.ts only schedules the job.
Run A. The cause cites sendDigest.ts, quotes the unlock that sits above the send, and says two workers can both think they hold the lock. The quote matches the file at the snapshot commit, and the transcript shows the file was opened before the citation. Right cause. Success.
Run B. The case did not include the mail-worker logs. The agent says it cannot name a cause without those logs, and it does not invent one. Honest insufficient. Success.
Run C. The agent never opens sendDigest.ts. It writes a fluent paragraph blaming a timezone bug in cron.ts. Miss if it hedges. Confidently wrong if it does not. The worst outcome is C with confidence.
That is the whole method on one ticket. You can do the first ten by hand. Automate the file and quote checks once the rules stop moving. Leave the mechanism to a judge only after those checks pass.
On Hinto's investigation page the public sample is a checkout ticket: the customer picked monthly and was charged yearly. The investigation write-up names a cause, a confidence, and a gap (Stripe charge metadata it could not check). That is the shape you are grading on your own product: the cause sentence, the files it rests on, and the gaps. The sample is not a customer, and it is not an eval result.
5. Refuse a rise in confident errors
Do not ship a change that makes confidently wrong answers more common, even if the solve rate goes up. Write the experiment before you measure it: one sentence of hypothesis, the current version, the candidate, the main thing you hope got better (reliability, speed, or cost), and how much worse the other two may get. Then run both versions on the same cases.
A higher solve rate that adds confidently wrong answers is a worse agent. The person who gets that answer will act on it. OpenAI's SimpleQA table is the same idea in public: the guesser looks slightly more accurate and is wrong three times as often.
Read the transcripts. Anthropic's guide is blunt about this: you will not know if your graders work unless you read the runs. When a task fails, the transcript tells you whether the agent made a genuine mistake or whether your grader rejected a valid answer. Failures should look fair.
A few mechanical rules keep you from fooling yourself:
- Run each case more than once. Agents are not deterministic. One lucky trial is not a result.
- Do not rerun a case because the first attempt looked bad and keep only the pretty one. Count the runs you started.
- If the comparison is too noisy to decide, say so. Do not ship on a maybe.
We do not publish a solve rate for Hinto. There is no public number to quote, and we will not invent one. The method is the thing you can copy.
Questions to ask a vendor
Ask how they test the tool, then ask the six questions below. If you are building the agent, ask yourselves the same six.
- When it names a cause, can it show the file it read, and can you check that quote against the commit that was live?
- Does it ever say it could not tell, and does the eval count that as a success or a failure?
- Do they report confidently wrong answers separately from misses?
- Who grades the explanation, a model or a person, and what happens when they disagree?
- Could the agent see the answer during the test, through git history, a fixed branch, or leaked strings?
- Did they test on cases nobody tuned against?
These are the questions we hold our own investigator to. If you bring your own agent to Hinto, Hinto wakes that worker on each new ticket and does not run its investigator. The same six questions apply to the worker you connect.
Questions
- What is an agent eval?
- An agent eval is a repeatable test: you give the agent a task with a known answer, run it, and grade the result with a rule you wrote in advance. For an agent that debugs code, the useful grade is whether it named the right place and the right cause from evidence it actually read, not whether the write-up sounds sure of itself.
- Should an agent eval count I don't know as a success?
- When the evidence cannot show the answer, yes. An accuracy-only scoreboard rewards guessing. OpenAI showed this on SimpleQA in September 2025: the model that guessed more often looked slightly more accurate and was wrong far more often. Count an honest insufficient-evidence answer as a success, and treat a confidently wrong answer as the worst outcome.
- Can you trust an LLM as a judge?
- Only inside limits. Zheng et al. (2023) found that LLM judges favor answers by their position and favor longer answers, and that a judge can accept a wrong answer to a math question it could solve on its own. Use a judge for the explanation after the place is verified. Let a person overrule it. Do not let it decide a ship-or-not call alone.
- How is this different from grading a coding agent with unit tests?
- A coding agent that writes a patch can be graded by whether tests pass. An agent that names a cause has no test suite. The answer is a sentence about your code. You have to check the files it cited against the commit that was live, and check that it actually read them, before anyone judges the paragraph.
- How do I stop the agent reading the answer in git history?
- Give each case a snapshot of the code from before the fix, with no parents and no sibling branch to diff against. Anthropic has published that Claude gained an unfair advantage in some internal evals by reading git history from previous trials. Also keep a few cases you never tune prompts or tools against.
