Judgment Labs Logo

judgment behaviors

View and manage behaviors (the binary or categorical labels judges assign).

The Judgment CLI is deprecated and no longer under active development. This reference is retained for existing users. See the CLI deprecation notice for supported alternatives.

View and manage behaviors (the binary or categorical labels judges assign).

Commands

CommandDescription
behaviors create-binaryCreate a binary (yes/no) behavior.
behaviors create-classifierCreate a classifier (multi-label) behavior.
behaviors deleteDelete a behavior.
behaviors getGet a behavior with judge details and stats.
behaviors listList behaviors.
behaviors updateUpdate a behavior’s description.

behaviors create-binary

Create a binary (yes/no) behavior.

Create a binary behavior. The judge LLM uses your prompt to decide true/false on each qualifying span.

judgment behaviors create-binary [OPTIONS] [[[ORG_ID] PROJECT_ID] NAME PROMPT...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] NAME PROMPTno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--descriptiontextnoHuman-readable description shown in the UI.
--modeltextnoLLM model ID used by the judge prompt. Defaults to "gpt-5.3-codex" when omitted.
--category-idstextnoUUIDs of categories to attach the behavior to. Pass an array of category UUIDs.
--advanced-settingstextnoJSON object overriding the judge's online-evaluation configuration. All four fields are required when this is supplied. Shape: continuous runs the judge automatically on qualifying spans; on_demand requires a manual judgment traces evaluate call. online_sampling_rate is a percent (0–100) of matching spans to score.
--judge-idtextnoAttach the new behavior to an existing judge instead of creating one. The judge must be score_type=binary and have no existing behaviors.
-o, --outputyaml, jsonnoOutput format.

--advanced-settings shape

{
  "online_evaluation_mode": "continuous" | "on_demand",
  "online_sampling_rate": <number 0-100>,
  "online_span_triggers": [
    {"field":"span_name"|"span_attribute","operator":"contains"|"equals"|"exists","value":"<string>","key":"<attr-key>"?}
  ],
  "online_session_scoring": <bool>
}

behaviors create-classifier

Create a classifier (multi-label) behavior.

Create a classifier behavior. The judge LLM picks one of the supplied options for each qualifying span.

judgment behaviors create-classifier [OPTIONS] [[[ORG_ID] PROJECT_ID] NAME PROMPT...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] NAME PROMPTno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--optionstextyesJSON array of the allowed output categories the classifier judge can return. Must contain at least one option. Shape:
--modeltextnoLLM model ID used by the judge prompt. Defaults to "gpt-5.5" when omitted.
--category-idstextnoUUIDs of categories to attach the behavior to. Pass an array of category UUIDs.
--advanced-settingstextnoJSON object overriding the judge's online-evaluation configuration. All four fields are required when this is supplied. Shape: continuous runs the judge automatically on qualifying spans; on_demand requires a manual judgment traces evaluate call. online_sampling_rate is a percent (0–100) of matching spans to score.
--judge-idtextnoAttach the new behavior to an existing judge instead of creating one. The judge must be score_type=categorical and have no existing behaviors.
-o, --outputyaml, jsonnoOutput format.

--options shape

[
  {"name":"<label>", "description":"<optional human description>", "category_ids":["<uuid>", ...]},
  ...
]

--advanced-settings shape

{
  "online_evaluation_mode": "continuous" | "on_demand",
  "online_sampling_rate": <number 0-100>,
  "online_span_triggers": [
    {"field":"span_name"|"span_attribute","operator":"contains"|"equals"|"exists","value":"<string>","key":"<attr-key>"?}
  ],
  "online_session_scoring": <bool>
}

behaviors delete

Delete a behavior.

judgment behaviors delete [OPTIONS] [[[ORG_ID] PROJECT_ID] BEHAVIOR_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] BEHAVIOR_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--delete-scorerbooleannoWhen true, also delete the underlying prompt scorer if no other behaviors reference it.
--delete-all-valuesbooleannoFor classifier behaviors, when true deletes every category row for this judge (not just the provided behavior_id). Ignored for binary behaviors.
-o, --outputyaml, jsonnoOutput format.

behaviors get

Get a behavior with judge details and stats.

judgment behaviors get [OPTIONS] [[[ORG_ID] PROJECT_ID] BEHAVIOR_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] BEHAVIOR_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--start-datetextnoOptional ISO 8601 start date for stats.
--end-datetextnoOptional ISO 8601 end date for stats.
-o, --outputyaml, jsonnoOutput format.

behaviors list

List behaviors.

List every behavior in a project along with rolled-up trace counts and last-seen stats.

judgment behaviors list [OPTIONS] [[[ORG_ID] PROJECT_ID]...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID]no

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
-o, --outputtable, yaml, jsonnoOutput format.

behaviors update

Update a behavior’s description.

judgment behaviors update [OPTIONS] [[[ORG_ID] PROJECT_ID] BEHAVIOR_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] BEHAVIOR_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--descriptiontextnoNew human-readable description for the behavior.
-o, --outputyaml, jsonnoOutput format.