Skip to Content
Judgment Labs

Judgment documentation

Judgment is infrastructure for observing, evaluating, and self-improving long-horizon agents.

Set up Judgment with your coding agent

Paste it into your agent from your repo's root.

Judgment works from your agent's traces, whether they come from production or from tests in your own environment.

How it works

The loopRuns again after every fixTraceEvery run of youragent, recordedMonitorJudges scoreevery runDetect & SearchIssues and answersacross your tracesShipPull request,gated by CIEvalsRegression testsand experimentsNew capabilityA feature, model orprompt to prove

Trace

Tracing sends each run of your agent to Judgment, so you can read what it did, step by step.

Monitor

A judge labels traces for a failure or signal you already know to look for, and can alert your team when it fires. Most judges are Agent judges, so they can evaluate long traces.

Detect and search

Issues searches your traces for recurring problems you didn't know to look for. The Judgment Agent uses judge labels as indexes to answer questions across all your data and cites the traces behind each answer.

Evals

Tests run your agent over a set of test inputs and grade each trace with the same judges, so you can prove a fix or a new capability before it ships.

Ship

Run your tests in CI to gate pull requests on the result. After you ship, the same judges keep labeling new traces, so you can see whether the failure stops.

Start here

Jump to a product

On this page