judgeproof: check your LLM judge against human labels (open source)
judgeproof is a free, open-source Python CLI for teams that score AI output with an LLM judge. It checks whether the judge agrees with your human labels, how many labels you need to know, whether it saw the tool calls it grades, and whether it favors the answer shown first, and it fails CI when a check fails.
pip install judgeproofv0.1.2 · Dec 2, 2026MIT licensePython 3.10+only dependency: numpy
§01The problem
You can't trust an LLM judge you haven't checked.
Most eval tools help you write evals. Few check the judge that scores them. When we tested judges ourselves, this is what we found.
29%
High agreement, missed failures
GPT-4 agreed with expert raters on 87.4% of 984 MT-Bench items, but caught only 43 of the 148 upsets the experts saw. A judge that always said “no upset” scored 85.0%.
Source: examples/mt-bench/RESULTS.md
3 of 11
Judges asked to grade blind
We sent one agent run through the agent-judging features of five eval tools. In three of eleven routes, the judge was asked whether the reply matched a policy it was never shown.
Source: examples/five-tools/RESULTS.md
0 of 24
Correct replies that passed blind
Without the tool calls, a real OpenAI judge failed every correct reply that promised a credit. With the tool calls and reasoning on, it passed 47 of 48 correct replies and none of 72 wrong ones.
Source: examples/real-judge/RESULTS.md
§02See it work
87% agreement, and a judge that misses most upsets.
Real output from judgeproof agreement on GPT-4 vs expert votes, with each MT-Bench pair relabeled as “did the stronger model win?”.
$ judgeproof agreement labels.csv== all rows ==rows: 984 (distinct ids: 984)agreement: 87.4% (95% CI 85.2% to 89.4%)Cohen's kappa: 0.352 (95% CI 0.266 to 0.437)a judge that always says 'stronger': agreement 85.0%, kappa 0 confusion matrix (rows: human, columns: judge) stronger weaker stronger 817 19 weaker 105 43 per label: precision = when the judge says it, how often the human agrees; recall = when the human says it, how often the judge agrees stronger precision 88.6% recall 97.7% (human 836, judge 922) weaker precision 69.4% recall 29.1% (human 148, judge 62)- 1
Agreement is 87.4%. On its own, that looks like a judge you can ship.
- 2
A judge that always answers “stronger” scores 85.0%. The baseline line shows how little the 87.4% adds.
- 3
Recall on “weaker” is 29.1%: the judge caught 43 of the 148 upsets the experts saw. Kappa (0.35) and per-label recall show it; raw agreement doesn't.
- To gate CI, add thresholds. This exits 1 when the lower end of kappa's CI is under 0.6, or the judge catches under 80% of the failures your humans found:
judgeproof agreement labels.csv --min-kappa 0.6 --min-recall fail=0.8
§03Install
One command, one dependency.
Python 3.10 or later. The only dependency is numpy. judgeproof works alongside DeepEval, Inspect, promptfoo, Opik, Phoenix, Langfuse and the rest; it doesn't replace them.
pip install judgeproofThen point it at a CSV with one row per labeled example (id,human,judge). Labels can be any strings: pass/fail, 1–5, good/ok/bad. Full usage is in the README.
§04Commands
Five checks for the judge, not the model.
Every check exits non-zero when it fails, so any of them can gate a pull request.
judgeproof agreementJudge vs human labels: agreement and Cohen's kappa with 95% confidence intervals, per-label recall and the always-majority baseline.
judgeproof labels-neededHow many human labels you need before kappa's confidence interval is narrow enough to tell a good judge from a bad one.
judgeproof input checkDid the judge see the user message, tool names, arguments, tool results and final reply it grades? input verify then confirms it got the same bytes.
judgeproof position-biasHow often a pairwise judge changes its verdict when the two answers swap places, and whether it prefers the first one.
judgeproof captureA local fake judge that speaks the OpenAI API and records every request, so you can read what your eval tool sends.
§05In CI
Fail the build when the judge fails.
The GitHub Action fails the step whenever judgeproof exits non-zero. On any other CI, install it and call the CLI.
- 0
- passed
- 1
- a check failed
- 2
- bad input
- uses: woqsi/judgeproof@v0
with:
args: agreement evals/labels.csv --min-kappa 0.6 --min-recall fail=0.8A full workflow with all three gates: examples/ci/judgeproof.yml
§06Research behind it
The experiments behind it.
The data, code and outputs are in the repo, so you can rerun them.
Blog · Dec 1, 2026
LLM-as-a-judge for agents: does it see the tool calls?
What five eval tools send their LLM judge, and how a real judge grades 40 agent runs with and without the tool calls.
examples/mt-bench
A reproduction of the MT-Bench judge-agreement study: 12 of 12 published cells reproduced, the accuracy trap, labels needed and position bias. One script rebuilds every number.
examples/five-tools
One agent run sent through DeepEval, Inspect, promptfoo, Opik and Phoenix, with the exact judge requests each tool sent. They double as fixtures for input check.
examples/real-judge
40 support-bot runs graded by a real OpenAI judge, with and without the tool calls, reasoning off and on. Every prompt, grade and dollar of spend is in the folder.
§07FAQ
Questions engineers ask about LLM judges.
How do I check if my LLM judge agrees with human labels?
Label a sample yourself, put your labels and the judge's side by side in a CSV, and look at Cohen's kappa with a confidence interval and the recall on each label, not just raw agreement. On 984 MT-Bench items, GPT-4 agreed with experts 87.4% of the time, yet caught only 29% of the upsets they saw. judgeproof agreement prints all of this from one CSV.
How many human labels do I need to validate an LLM judge?
It depends on how rare the label you care about is. To pin kappa down to about ±0.1, the MT-Bench reproduction needed about 170 labels when the labels were balanced and about 710 when the important label appeared 15% of the time. judgeproof labels-needed estimates it from a pilot set of your own labels.
Does my eval tool send the tool calls to the LLM judge?
It depends on the tool and the setting. In our test, DeepEval sent everything; Inspect's model_graded_qa sent only the question and final reply unless include_history=True; promptfoo's trace judge got tool names but not arguments or results. Point your tool at judgeproof capture and run judgeproof input check on what it recorded.
Does hiding the tool calls change the judge's grade?
Yes. Through Inspect without the tool calls, gpt-5.4-mini failed all 24 gradings of correct credit offers, and with reasoning on it passed 23 of 72 wrong replies. With the tool calls and reasoning on, it passed 47 of 48 correct replies and 0 of 72 wrong ones.
How do I test a pairwise LLM judge for position bias?
Run each comparison twice with the answers swapped and count how often the verdict changes. On MT-Bench, GPT-4's verdict changed on 380 of 2,400 items (15.8%) when the order swapped. judgeproof position-bias reports the flip rate with a confidence interval and can fail CI above a threshold.
Does judgeproof replace DeepEval, promptfoo or Inspect?
No. Those tools help you write and run evals; judgeproof checks whether you can trust the judge that scores them. It works alongside DeepEval, Inspect, promptfoo, Opik, Phoenix, Langfuse and others, needs Python 3.10+ and numpy, and is MIT licensed.
What can't judgeproof check?
input check searches for text, so it can tell that the judge was shown the policy but not whether it understood it. Agreement is only as good as your labels: one labeler per item is noisier than a majority vote. And below about 100 labels with a label rarer than about 20%, confidence intervals are optimistic; labels-needed warns you.
judgeproof is MIT licensed and free.