Code vs Model vs Human Graders
The three ways to grade an AI's answer, when each one fits, and how they work together, explained simply for your AI interview.
In short
A code grader checks an AI answer with fixed rules, a model grader uses a second model to judge it against a rubric, and a human grader is a trained reviewer. Teams use code wherever a rule can decide, a model where judgement is needed, and people to check that both are right.
11 min readIntermediateCommon · estimateFacts checked 26 November 2026
Say it out loud
Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.
There are three kinds of grader. Code graders run fixed rules, like checking a date format or a policy number. Model graders use a second AI to judge an answer against a written rubric. Human graders are trained people who give the gold-standard verdict, and model graders are calibrated against them. I use code wherever a rule can decide, a model where judgement is needed, and people to check the model grader against real labels.
A grader is the step that turns an AI answer into a verdict, usually pass or fail, or a score. The first kind is code. It is a short program with fixed rules: the answer must be valid JSON, the policy number must exist, the amount must be under the approved limit. It is fast, cheap, objective and reproducible, so it can run on every change. Its weakness is nuance. A rule can check that a reason is well formed, and it cannot check that the reason is fair.
The second kind is a model grader. A separate model reads the answer and a written rubric, then scores it. It handles open-ended work like tone, completeness, or whether a reason fits the policy wording. The cost is that it is less predictable, and a vague rubric gives inconsistent verdicts. So before I trust it, I check it against human labels and measure how often they agree.
The third kind is human. Trained reviewers give the gold-standard verdict, and they produce the labels that model graders are calibrated against. They are slow and expensive, so I use them on a sample of replies. Once the system is stable, people review only now and then.
In practice I combine all three. For a claims assistant, code checks the format and the policy number, a model grader checks whether the reason fits the policy, and adjusters review a weekly sample. The rule I follow is to use the cheapest grader that can answer the question reliably.
What are code, model and human graders, in plain words?
A grader is the step that marks an AI's answer. It gives a pass or fail, or a score. Anthropic's engineering team says: "Agent evaluations typically combine three types of graders: code-based, model-based, and human."
Picture how a bank audits a loan file. A system checks that every box is filled in. A senior auditor scores the reasoning against the bank's written guide. A review board sets the standard and reads a sample of files. An insurer's claims triage agent, which drafts a decision and a reason for each motor claim, needs all three kinds of check too.
Key words
- Grader
- The step that marks an AI answer as pass, fail or a score.
- Rubric
- A written list of what a good answer must do.
- Ground truth
- The correct verdict that people have already agreed on.
- Calibrate
- Measure how often a grader agrees with human labels before you trust it.
- Eval
- A test: an input, the AI's output, and the grading that scores it.
How do the three graders compare?
- Code
Fixed rules
Fast, cheap, objective and reproducible, so it can run on every change. It checks formats, policy numbers and limits. Weak point: a correct answer worded differently can fail, and a rule can't judge nuance.
- Model
A judge with a rubric
A second model reads the answer against a written rubric. It handles tone, completeness and whether a reason fits the policy. Weak point: it can vary between runs and needs checking against people.
- Human
Trained reviewers
The gold standard, meaning the most trusted verdict. People give the verdict that model graders are calibrated against. Weak point: slow and expensive, so use a sample of replies.
Pick the grader that fits the question
What must be true?
the one question the grader answers
Pick one
Code grader
formats, policy numbers, limits
Model grader
tone, and whether a reason fits
Human grader
new or risky cases
Verdict
pass, fail or a score
- 1A rule can decide the question, so it goes to code.
- 2The question needs judgement, so it goes to a model grader.
- 3The case is new or risky, so a person grades it.
- 4The code check gives an exact pass or fail.
- 5The judge gives a verdict against the written rubric.
- 6The reviewer gives the gold-standard verdict that model graders are calibrated against.
Two terms first. Deterministic means a grader gives the same verdict for the same input every time. OpenAI calls a plain text rule a string check grader. It uses basic string operations to return a 0 or 1, so it is the code grader in its simplest form.
“We recommend choosing deterministic graders where possible, LLM graders where necessary or for additional flexibility, and using human graders judiciously for additional validation.”
Anthropic
“String check graders are good for scoring straightforward pass or fail answers”
OpenAI
The rule is: rules first, a judge where judgement is needed, and people to check both.
How do you check that a model grader is right?
A model grader is only as good as its rubric and its agreement with people. OpenAI's guide describes it as prompting a separate model to grade the outputs of the model you're evaluating. Before you trust it, build a set of answers that people have already graded, and measure the match.
OpenAI also advises providing many high quality examples of answers, from the model and from trusted human experts. Their guide says you can then evaluate how effectively the model grader distinguishes answers of different quality levels. In their ticket example, each item has a human-provided correct label, and a string check compares the model's output with that label.
How the graders work together on a release
Set up once
Human labels
reviewers' agreed verdicts
Check the judge
how often it agrees with people
Every release
Model grader
judges each reply by the rubric
Code checks
rules run on each reply
Ship or fix
scores stay on target
- 1People's verdicts become the answer key.
- 2The judge is tuned until it agrees with those verdicts.
- 3Each reply gets a judge verdict before release.
- 4Rule failures go to the same release gate.
Here is a small worked example. An insurer's triage agent returns a decision, a policy number and a reason. A code grader checks that the decision is allowed and the policy exists. It cannot judge the reason, so the team compares the verdicts with a human label for each claim.
# A claims team checks its triage agent's replies, then tests the code check against human verdicts.
ALLOWED = {"approve", "deny", "refer"}
POLICIES = {"POL-2041", "POL-7713"} # policy numbers the company really issued
def code_grader(reply):
# Fast exact rules: the decision must be allowed and the policy must exist.
if reply["decision"] not in ALLOWED or reply["policy"] not in POLICIES:
return "fail"
return "pass"
replies = [
{"claim": "CL-101", "decision": "deny", "policy": "POL-2041"},
{"claim": "CL-102", "decision": "approve", "policy": "POL-9999"},
{"claim": "CL-103", "decision": "maybe", "policy": "POL-7713"},
{"claim": "CL-104", "decision": "refer", "policy": "POL-7713"},
]
human = {"CL-101": "pass", "CL-102": "pass", "CL-103": "fail", "CL-104": "pass"}
for reply in replies:
verdict = code_grader(reply)
match = "agrees with human" if human[reply["claim"]] == verdict else "differs from human"
print(reply["claim"], verdict, match)Output
CL-101 pass agrees with human CL-102 fail differs from human CL-103 fail agrees with human CL-104 pass agrees with human
The reviewer passed CL-102, yet its policy number is not real. The code grader catches the broken reference that the reviewer missed. A check on the decision alone would miss it, and only a person or a judge can say whether the reason is fair.
Where does each grader go wrong?
Code graders are brittle
A correct answer worded in a new way can fail. Normalise the text first, or check the fact rather than the exact words.
Model graders vary between runs
A vague rubric gives inconsistent verdicts, and the same reply can pass one run and fail the next. Tighten the rubric, then re-test it against the labels.
Human graders disagree
Reviewers tire, and two reviewers can judge the same reply differently. Settle the disagreements, and keep one shared guide for everyone.
How would you grade a refund bot that quotes fees?
A bank's support bot must never quote a fee that is not in the fee table. I would layer the three graders so the cheapest check does the most work.
- 1
Code checks the fee first
Each quoted fee is matched against the fee table. That is a yes or no, so a code grader runs it on every reply.
- 2
A model judges the tone
A model grader with a rubric checks that the reply is clear, polite and tells the customer what to do next.
- 3
People sample the rest
Each week, reviewers label a sample of replies. Their labels re-check the model grader, so its scores stay honest.
What does the interviewer want to hear?
A strong answer covers
- The three graders: code, model and human, and what each one checks.
- Code first when a rule can decide, because it is fast, cheap and repeatable.
- A model grader needs a clear rubric and calibration against human labels.
- Humans give the gold-standard verdict, but they are slow, so sample them.
- Where each one fails: brittle rules, judges that vary between runs, tired reviewers.
- Combining them into one release check that people review now and then.
Common traps
Trap"Use an LLM judge for everything."
BetterA judge costs more, can vary between runs and needs calibration. Use a rule wherever a rule can decide.
Trap"Humans are the most accurate, so review every reply."
BetterHumans are the reference, but they are slow and costly. Sample them, and use them to check the cheaper graders.
Trap"A format check proves the answer is right."
BetterIt proves the answer is well formed, like a valid decision word. Whether the policy is real and the reason is right needs a rule lookup, a judge or a person.
Can you pick the right grader?
Spot the weak grader
A support team's model grader agrees with human reviewers on 6 of 10 replies. What should they do first?
Quick check
An insurer's triage agent words a correct decision in a new way, and the exact-match code check keeps failing it. What should the team change?
Can you answer these from memory?
Flash cards · tap a card to flip it
What will they ask next?
- Q264When do you need human evaluation?10 min
- Q265How do you sample production traffic for evals?Coming soon
- Q268How many eval examples are enough?11 min
- Q269What is a rubric-based grader?10 min
- Q271What are error analysis and transcript reading?11 min
- Q278How do you evaluate an LLM classifier (confusion matrix)?12 min
Learn it in depth
Last updated on 26 November 2026
Building an AI agent that needs its answers graded?
I design and build AI agents and the evaluation set-up around them: code checks, model graders and human review. Book a short call and tell me what your agent needs to get right.