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
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
Quickstart
Set up your first project and see what Judgment finds in your agent's traces.
Improve an agent end to end
Follow an example agent from first trace to regression test.
Jump to a product
Tracing
Send your agent's traces to Judgment from Python or TypeScript.
Issues
Find recurring problems in your agent's traces that no judge is checking for yet.
Judges
Label traces and sessions with labels you define.
Tests
Run offline tests on your agent with a test suite, and check every run with your judges.
Judgment Agent
Ask about your traces and labels in plain words.