harbor trials command group provides commands for running and managing individual trials. A trial is a single execution of an agent on a task.
Commands
harbor trials start
Start a single trial.Configuration
Path
Path to a trial configuration file in YAML or JSON format. Should implement the schema of
harbor.models.trial.config:TrialConfig. Allows for more granular control over the trial configuration.Trial Settings
Path
Path to a local task directory, or path within git repo if
--task-git-url is specified.string
Name of the trial. Default: auto-generated
Path
Directory to store trial results. Default:
./trialsfloat
Multiplier for task timeouts. Default:
1.0float
Multiplier for agent execution timeout. Overrides
--timeout-multiplier.float
Multiplier for verifier timeout. Overrides
--timeout-multiplier.float
Multiplier for agent setup timeout. Overrides
--timeout-multiplier.float
Multiplier for environment build timeout. Overrides
--timeout-multiplier.Agent Options
AgentName
Agent name. Default:
oraclestring
Import path for custom agent.
string
Model name for the agent.
float
Agent execution timeout in seconds. Overrides task default.
float
Agent setup timeout in seconds. Overrides default.
list[string]
Additional agent kwarg in the format
key=value. You can view available kwargs by looking at the agent’s __init__ method. Can be set multiple times to set multiple kwargs.Common kwargs include: version, prompt_template, etc.list[string]
Environment variable to pass to the agent in
KEY=VALUE format. Can be used multiple times.Example: --ae AWS_REGION=us-east-1Environment Options
EnvironmentType
Environment type. Default:
dockerstring
Import path for custom environment (e.g.,
module.path:ClassName).boolean
Whether to force rebuild the environment. Default:
--no-force-buildboolean
Whether to delete the environment after completion. Default:
--deleteint
Override the number of CPUs for the environment.
int
Override the memory (in MB) for the environment.
int
Override the storage (in MB) for the environment.
int
Override the number of GPUs for the environment.
list[string]
Environment kwarg in
key=value format. Can be used multiple times.Verifier Options
float
Verifier execution timeout in seconds. Overrides task default.
Task Options
string
Git URL for a task repository.
string
Git commit ID for the task. Requires
--task-git-url.Examples
Run a single trial on a local task:trial-config.yaml:
harbor trials summarize
Summarize a single trial using Claude Agent SDK.Arguments
Path
required
Path to the trial directory to summarize.
Options
string
Model to use for summarization (e.g.,
haiku, sonnet, opus). Default: haikuboolean
Overwrite existing
summary.md file.Examples
Summarize a failed trial:Trial Directory Structure
A typical trial directory structure:Trial Results
Theresult.json file contains:
Use Cases
Development and Debugging
Trials are useful for:- Testing a single task during development
- Debugging agent behavior
- Iterating on task definitions
- Testing custom agents or environments
Running Quick Tests
Quickly test a task before running a full job:Analyzing Individual Failures
After a job completes, deep dive into specific failures:See Also
- harbor run - Run complete evaluation jobs
- harbor jobs - Manage jobs
- harbor tasks - Manage task definitions