Skip to main content
Graders are deprecated. New graders can no longer be created, and grader training has been removed. Graders you already have keep working: you can still edit, archive, attach, and re-run them, and their verdicts still count. For a new check, write assertions, which describe the right outcome for one specific trace and are judged by Bitfab on every replay.

Overview

A grader is an automated judge that scores a trace as pass or fail against one specific property of a traced function, for example “the reply never invents an order number”. Graders turn a quality bar you would otherwise check by hand into a check that runs across every trace in a dataset and every replay in an experiment. Each grader belongs to one organization and one trace function. A trace function usually has several graders, one per property worth protecting.
Graders only run where they are attached. A grader with no dataset or experiment attached is a definition that never executes.
Graders are LLM-as-judge: a judge model reads the trace and returns pass or fail with a reason. You define what it should look for in plain language, not in code. A grader states a property every trace of a function should have. To pin down the exact right answer for one trace, write an assertion instead. See Assertions and graders.

Viewing Graders

A dataset’s Graders section lists the graders attached to it, and each trace’s verdict panel shows the verdict of every grader that judged it. Ask your agent to list the graders on a function with list_graders.

Status

Editing Graders

Existing graders are edited from your coding agent through the Bitfab plugin. Ask your agent in plain language:
The agent calls the save_grader tool with the grader’s id from list_graders. The same tool renames graders, clears pass and fail criteria, selects the judge model, and archives or restores. It cannot create a new grader. See the Claude Code, Cursor, or Codex plugin reference for the full tool signatures.

Writing Good Criteria

A grader is defined by a small set of fields:
One property per grader. A grader that checks tone, factuality, and formatting at once produces a fail you cannot act on. Three graders tell you which one broke.
Keep the focus checkable from the trace alone, and spell out acceptable variations so the judge does not fail a correct answer for phrasing it differently.

Judge Model

Every grader runs on a selectable judge model. Each verdict uses credits at the model’s tier. Have your agent pass a model to save_grader to change it. External graders have no model. Start on the default and move up only for criteria the default judge gets wrong.

Running Graders

On a Dataset

Open a dataset and use Manage in its Graders section to attach or detach graders. Your agent can do the same with add_graders_to_dataset and remove_graders_from_dataset. Only graders belonging to the same organization and trace function as the dataset can be attached, and detaching an assignment never deletes the grader itself. Once graders are attached, Re-run grades the dataset’s traces with the graders you select. Your agent can do the same with rerun_graders_on_dataset, which re-runs every attached grader unless you name a subset. Only one re-run can be in flight per dataset at a time; a second request joins the running one instead of starting another.

On an Experiment

When an experiment finishes replaying a dataset, its grader set is the union of the graders attached directly to that experiment and the dataset’s runnable graders at that moment. That set is then frozen onto the experiment, so its results stay reproducible even if the dataset’s attachments change afterwards. Attaching a grader to an experiment that has already completed records the assignment but does not regrade the traces it already produced. Use Re-run on the experiment (or rerun_graders_on_experiment from your agent), or run a fresh replay. Only the experiment’s completed replays are graded, never the originals they were compared against.

On One Trace

The verdict panel on a trace has a Re-run graders button that grades the trace with every grader that applies to it, and a Re-run button on each grader’s row.

On New Traces

Graders do not currently run automatically as new production traces arrive. Add traces to a dataset, attach the graders you want, and use Re-run (or rerun_graders_on_dataset) to grade them.

External Graders

An external grader is a grader Bitfab never runs. You evaluate traces with your own harness, CI job, or review queue, and post each verdict to Bitfab. Its verdicts are stored and shown exactly like a Bitfab-run grader’s, so pass rates and experiments count them the same way. New external graders can no longer be created. For a check that belongs to one trace, use an external assertion instead: you post its verdicts the same way, by assertion id. Post verdicts for an existing external grader with save_grader_verdicts, or from the SDKs:
  • An external grader’s verdicts count as decided as soon as they are posted. A person’s own verdict on the same grader and trace still wins.
  • It has no judge model and cannot be re-run.
  • Its verdict rows read “Decided by this external grader”.

Reading Results

  • Trace lists show a grader pass-rate pill on each trace that graders have judged.
  • Dataset rows show a pass-rate pill once graders are attached, splitting green to red at the trace’s pass rate across those graders.
  • Trace detail shows each grader’s verdict with the reason it gave. A failing grader also produces a failure diagnostic explaining what went wrong.
  • A grader’s verdict stands once it has judged a trace. A reviewer can give a verdict for a grader only on a trace it has not judged, which is how you build the correct answers a grader is checked against. When a grader’s verdict is wrong, tighten its criteria and re-run it.
Human review and automated grading are complementary: see the Reviewing verdicts guide for how reviewers record verdicts by hand.

Archiving

Ask your agent to archive a grader, which calls save_grader with status: "archived". Archived graders are hidden from list_graders by default, stop running everywhere, and keep their history. Ask your agent to restore one the same way; a grader that was trained comes back live and keeps grading new dataset traces.

Best Practices

  • One property per grader: a focused grader produces an actionable failure.
  • Attach before expecting results: a grader runs only on the datasets and experiments it is attached to.
  • Re-run after editing criteria: existing evaluations reflect the criteria in place when they ran.
  • Grade both directions: a dataset of only failures cannot tell you whether a grader is too strict.
  • Escalate the judge model deliberately: reach for a stronger model when the default judge is measurably wrong, not by default.