harbor-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHarbor CLI Reference
Harbor CLI 参考文档
Harbor CLI manages the full evaluation lifecycle: creating tasks, running agents, viewing results. Install with . Global option: / .
uv tool install harbor--version-vFor complete flag tables with types and defaults for every command, read .
references/flags.mdHarbor CLI 管理完整的评估生命周期:创建任务、运行Agent、查看结果。使用 进行安装。全局选项: / 。
uv tool install harbor--version-v如需每个命令包含类型和默认值的完整参数表,请阅读 。
references/flags.mdQuick Reference
快速参考
| Command | Description |
|---|---|
| Run evaluations (alias for |
| Start an evaluation job |
| Resume an interrupted job |
| AI-powered failure summaries for a job |
| Run a single trial (debugging) |
| AI-powered summary of a single trial |
| List available datasets |
| Download a dataset |
| Scaffold a new benchmark adapter |
| Structural + AI review of an adapter |
| Scaffold a new task |
| AI quality assessment of a task |
| Launch task environment interactively |
| Analyze failing trials for a task |
| Convert Terminal-Bench tasks to Harbor |
| Browse job/trial results in web UI |
| Run successive evaluation sweeps |
| Export trace data in ATIF format |
| Clean Docker images and cache directory |
| Administrative commands (hidden) |
| 命令 | 描述 |
|---|---|
| 运行评估( |
| 启动评估任务 |
| 恢复中断的任务 |
| 基于AI生成任务失败总结 |
| 运行单次测试(用于调试) |
| 基于AI生成单次测试总结 |
| 列出可用数据集 |
| 下载数据集 |
| 生成新基准适配器的脚手架 |
| 对适配器进行结构化+AI审核 |
| 生成新任务的脚手架 |
| 基于AI对任务进行质量评估 |
| 交互式启动任务环境 |
| 分析任务中的失败测试 |
| 将Terminal-Bench任务转换为Harbor格式 |
| 在Web UI中浏览任务/测试结果 |
| 运行连续评估扫描 |
| 以ATIF格式导出追踪数据 |
| 清理Docker镜像和缓存目录 |
| 管理命令(隐藏) |
harbor run / harbor jobs start
harbor run / harbor jobs start
The primary command. is an alias for .
harbor runharbor jobs startDefaults: agent = , n-concurrent = , environment = , output = .
oracle1docker./jobsEssential flags:
| Flag | Short | Description |
|---|---|---|
| | Local path to task directory |
| | Dataset from registry (e.g., |
| | Job config YAML/JSON file |
| | Agent name (default: |
| | Model identifier. Repeatable |
| | Concurrent trials (default: |
| | Environment backend (default: |
| | Output directory (default: |
| | Pass env var to agent: |
| | Agent kwarg: |
| | Include tasks by glob pattern. Repeatable |
| | Exclude tasks by glob. Repeatable |
| | Max tasks to run |
| | Suppress trial progress |
| Enable debug logging | |
| Print config and exit | |
| Skip running tests | |
| Skip Docker build cache | |
| Download path from env after trial. Repeatable | |
| Scale all timeouts (default: |
Additional flags for environment kwargs (), environment env vars (), verifier kwargs (), orchestrator kwargs (), agent images, retry config, trace export, and per-phase timeout multipliers are in .
--ek--ee--vk--okreferences/flags.md核心命令。 是 的别名。
harbor runharbor jobs start默认值: agent = ,n-concurrent = ,environment = ,output = 。
oracle1docker./jobs关键参数:
| 参数 | 简写 | 描述 |
|---|---|---|
| | 任务目录的本地路径 |
| | 注册表中的数据集(例如: |
| | 任务配置YAML/JSON文件 |
| | Agent名称(默认: |
| | 模型标识符。可重复设置 |
| | 并发测试数(默认: |
| | 环境后端(默认: |
| | 输出目录(默认: |
| | 向Agent传递环境变量: |
| | Agent关键字参数: |
| | 通过通配符模式包含任务。可重复设置 |
| | 通过通配符模式排除任务。可重复设置 |
| | 最大运行任务数 |
| | 隐藏测试进度 |
| 启用调试日志 | |
| 打印配置后退出 | |
| 跳过测试运行 | |
| 跳过Docker构建缓存 | |
| 测试后从环境下载路径。可重复设置 | |
| 缩放所有超时时间(默认: |
关于环境关键字参数()、环境变量()、验证器关键字参数()、编排器关键字参数()、Agent镜像、重试配置、追踪导出和各阶段超时乘数的额外参数,请查看 。
--ek--ee--vk--okreferences/flags.mdExamples
示例
bash
undefinedbash
undefinedRun local task with oracle (validates solution + tests)
使用oracle运行本地任务(验证解决方案+测试)
harbor run -p ./my-task
harbor run -p ./my-task
Run with a real agent
使用真实Agent运行
harbor run -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
harbor run -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
Dataset evaluation with concurrency
带并发的数据集评估
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1 -n 8
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1 -n 8
Cloud environment
云环境
harbor run -d my-dataset -a claude-code -m anthropic/claude-sonnet-4-1 -e daytona
harbor run -d my-dataset -a claude-code -m anthropic/claude-sonnet-4-1 -e daytona
From config file
从配置文件运行
harbor run -c eval-config.yaml
harbor run -c eval-config.yaml
Pass API key to agent
向Agent传递API密钥
harbor run -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
--ae ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
--ae ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
harbor run -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
--ae ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
--ae ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
Run subset of tasks
运行任务子集
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1
-t "bash-*" -l 10
-t "bash-*" -l 10
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1
-t "bash-*" -l 10
-t "bash-*" -l 10
Dry run
试运行
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1 --dry-run
undefinedharbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1 --dry-run
undefinedharbor jobs resume
harbor jobs resume
Resume an interrupted or partially completed job.
bash
harbor jobs resume -p ./jobs/my-job-2025-01-15
harbor jobs resume -p ./jobs/my-job -f AgentTimeoutError| Flag | Short | Description |
|---|---|---|
| | Path to job directory with |
| | Remove trials matching this error type before resuming. Repeatable. Default: |
恢复中断或未完成的任务。
bash
harbor jobs resume -p ./jobs/my-job-2025-01-15
harbor jobs resume -p ./jobs/my-job -f AgentTimeoutError| 参数 | 简写 | 描述 |
|---|---|---|
| | 包含 |
| | 恢复前移除匹配该错误类型的测试。可重复设置。默认: |
harbor jobs summarize
harbor jobs summarize
Generate AI-powered failure summaries for trials in a job.
bash
harbor jobs summarize ./jobs/my-job
harbor jobs summarize ./jobs/my-job -m sonnet --all --overwrite| Flag | Short | Description |
|---|---|---|
| Path to job dir or parent (positional) | |
| | Model: |
| | Max concurrent queries (default: |
| Analyze all or only failed trials (default: | |
| Overwrite existing |
为任务中的测试生成基于AI的失败总结。
bash
harbor jobs summarize ./jobs/my-job
harbor jobs summarize ./jobs/my-job -m sonnet --all --overwrite| 参数 | 简写 | 描述 |
|---|---|---|
| 任务目录或父目录路径(位置参数) | |
| | 模型: |
| | 最大并发查询数(默认: |
| 分析所有测试或仅失败测试(默认: | |
| 覆盖现有 |
harbor trials start
harbor trials start
Run a single trial. Useful for debugging and task development.
Key difference from : the environment flag is (not ), and output goes to (default: ).
harbor jobs start--environment-type--env--trials-dir./trials| Flag | Short | Description |
|---|---|---|
| | Path to local task directory |
| | Trial config YAML/JSON |
| | Agent name (default: |
| | Model for the agent |
| | Environment type (default: |
| Output directory (default: | |
| | Env var for agent: |
| | Agent kwarg: |
| Keep environment after trial | |
| Skip running tests |
Full flag list (task kwargs, git options, etc.) in .
references/flags.mdbash
undefined运行单次测试。适用于调试和任务开发。
与的关键区别: 环境参数为(而非),输出路径为(默认:)。
harbor jobs start--environment-type--env--trials-dir./trials| 参数 | 简写 | 描述 |
|---|---|---|
| | 本地任务目录路径 |
| | 测试配置YAML/JSON |
| | Agent名称(默认: |
| | Agent使用的模型 |
| | 环境类型(默认: |
| 输出目录(默认: | |
| | Agent的环境变量: |
| | Agent的关键字参数: |
| 测试后保留环境 | |
| 跳过测试运行 |
完整参数列表(任务关键字参数、Git选项等)请查看。
references/flags.mdbash
undefinedTest with oracle (validates solution + tests)
使用oracle测试(验证解决方案+测试)
harbor trials start -p ./my-task
harbor trials start -p ./my-task
Test with real agent
使用真实Agent测试
harbor trials start -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
harbor trials start -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
Keep container for inspection
保留容器以便检查
harbor trials start -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1 --no-cleanup
The oracle agent runs `solution/solve.sh` inside the environment, then the verifier runs `tests/test.sh`. If oracle does not get reward 1.0, your tests or solution have a bug.harbor trials start -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1 --no-cleanup
Oracle Agent会在环境中运行`solution/solve.sh`,然后验证器运行`tests/test.sh`。如果Oracle未获得1.0的奖励,说明你的测试或解决方案存在bug。harbor trials summarize
harbor trials summarize
bash
harbor trials summarize ./trials/my-trial
harbor trials summarize ./trials/my-trial -m sonnet --overwrite| Flag | Short | Description |
|---|---|---|
| Path to trial directory (positional) | |
| | Model: |
| Overwrite existing |
bash
harbor trials summarize ./trials/my-trial
harbor trials summarize ./trials/my-trial -m sonnet --overwrite| 参数 | 简写 | 描述 |
|---|---|---|
| 测试目录路径(位置参数) | |
| | 模型: |
| 覆盖现有 |
harbor datasets
harbor datasets
harbor datasets list
harbor datasets list
bash
harbor datasets list
harbor datasets list --registry-url https://custom-registry.example.com
harbor datasets list --registry-path ./local-registry.jsonFlags and are mutually exclusive. Default: Harbor's public registry.
--registry-url--registry-pathbash
harbor datasets list
harbor datasets list --registry-url https://custom-registry.example.com
harbor datasets list --registry-path ./local-registry.json参数和互斥。默认:Harbor公共注册表。
--registry-url--registry-pathharbor datasets download
harbor datasets download
bash
harbor datasets download terminal-bench@2.0
harbor datasets download terminal-bench@2.0 -o ./my-tasks --overwrite| Flag | Short | Description |
|---|---|---|
| Name or | |
| | Download dir (default: |
| Re-download even if cached |
bash
harbor datasets download terminal-bench@2.0
harbor datasets download terminal-bench@2.0 -o ./my-tasks --overwrite| 参数 | 简写 | 描述 |
|---|---|---|
| 名称或 | |
| | 下载目录(默认: |
| 即使已缓存也重新下载 |
harbor adapters
harbor adapters
harbor adapters init
harbor adapters init
bash
harbor adapters init my-benchmarkInteractive wizard that prompts for benchmark name, adapter ID, class name, description, source URL, and license. Creates the adapter directory with template files.
bash
harbor adapters init my-benchmark交互式向导,提示输入基准名称、适配器ID、类名、描述、源URL和许可证。创建包含模板文件的适配器目录。
harbor adapters review
harbor adapters review
bash
harbor adapters review -p adapters/my-benchmark
harbor adapters review -p adapters/my-benchmark --skip-ai -o report.mdbash
harbor adapters review -p adapters/my-benchmark
harbor adapters review -p adapters/my-benchmark --skip-ai -o report.mdharbor tasks
harbor tasks
harbor tasks init
harbor tasks init
bash
harbor tasks init my-task
harbor tasks init my-task -p ./custom-tasks| Flag | Short | Description |
|---|---|---|
| Task name (positional) | |
| | Output directory (default: |
| Skip pytest in test.sh | |
| Skip solution directory | |
| Add anti-cheating canary strings | |
| Add full metadata template to task.toml |
bash
harbor tasks init my-task
harbor tasks init my-task -p ./custom-tasks| 参数 | 简写 | 描述 |
|---|---|---|
| 任务名称(位置参数) | |
| | 输出目录(默认: |
| 在test.sh中跳过pytest | |
| 跳过解决方案目录 | |
| 添加反作弊金丝雀字符串 | |
| 向task.toml添加完整元数据模板 |
harbor tasks check
harbor tasks check
AI-powered quality assessment against a rubric.
bash
harbor tasks check ./my-task
harbor tasks check ./my-task -m opus -o results.json
harbor tasks check ./my-task -r custom-rubric.toml| Flag | Short | Description |
|---|---|---|
| Task name or path (positional) | |
| | Model: |
| | Write JSON results here |
| | Custom rubric ( |
基于评分准则的AI驱动质量评估。
bash
harbor tasks check ./my-task
harbor tasks check ./my-task -m opus -o results.json
harbor tasks check ./my-task -r custom-rubric.toml| 参数 | 简写 | 描述 |
|---|---|---|
| 任务名称或路径(位置参数) | |
| | 模型: |
| | 将JSON结果写入此处 |
| | 自定义评分准则( |
harbor tasks start-env
harbor tasks start-env
Launch task environment interactively for manual inspection.
bash
harbor tasks start-env -p ./my-task
harbor tasks start-env -p ./my-task -e daytona
harbor tasks start-env -p ./my-task --agent claude-code -m anthropic/claude-sonnet-4-1| Flag | Short | Description |
|---|---|---|
| | Path to task directory |
| | Environment type (default: |
| | Include solution and tests (default: |
| | Interactive shell (default: |
| Agent to install in environment | |
| | Model for the agent |
Full flag list in .
references/flags.md交互式启动任务环境以便手动检查。
bash
harbor tasks start-env -p ./my-task
harbor tasks start-env -p ./my-task -e daytona
harbor tasks start-env -p ./my-task --agent claude-code -m anthropic/claude-sonnet-4-1| 参数 | 简写 | 描述 |
|---|---|---|
| | 任务目录路径 |
| | 环境类型(默认: |
| | 包含解决方案和测试(默认: |
| | 交互式shell(默认: |
| 在环境中安装的Agent | |
| | Agent使用的模型 |
完整参数列表请查看。
references/flags.mdharbor tasks debug
harbor tasks debug
Analyze failing trials for a task using AI.
bash
harbor tasks debug my-task-id -m sonnet
harbor tasks debug my-task-id --job-id my-job --jobs-dir ./jobs| Flag | Short | Description |
|---|---|---|
| Task ID (positional) | |
| | Model for analysis |
| Specific job to analyze | |
| Directory containing jobs |
使用AI分析任务中的失败测试。
bash
harbor tasks debug my-task-id -m sonnet
harbor tasks debug my-task-id --job-id my-job --jobs-dir ./jobs| 参数 | 简写 | 描述 |
|---|---|---|
| 任务ID(位置参数) | |
| | 用于分析的模型 |
| 要分析的特定任务 | |
| 包含任务的目录 |
harbor tasks migrate
harbor tasks migrate
Convert Terminal-Bench tasks to Harbor format.
bash
harbor tasks migrate -i ./old-tasks -o ./harbor-tasks
harbor tasks migrate -i ./old-tasks -o ./harbor-tasks --cpus 2 --memory-mb 4096| Flag | Short | Description |
|---|---|---|
| | Terminal-Bench task dir or parent |
| | Output directory |
| Override CPUs for all tasks | |
| Override memory (MB) | |
| Override storage (MB) | |
| Override GPUs |
将Terminal-Bench任务转换为Harbor格式。
bash
harbor tasks migrate -i ./old-tasks -o ./harbor-tasks
harbor tasks migrate -i ./old-tasks -o ./harbor-tasks --cpus 2 --memory-mb 4096| 参数 | 简写 | 描述 |
|---|---|---|
| | Terminal-Bench任务目录或父目录 |
| | 输出目录 |
| 覆盖所有任务的CPU配置 | |
| 覆盖内存配置(MB) | |
| 覆盖存储配置(MB) | |
| 覆盖GPU配置 |
harbor view
harbor view
Browse job/trial results in a web UI.
bash
harbor view ./jobs/my-job
harbor view ./jobs --port 9000
harbor view ./jobs --dev| Flag | Short | Description |
|---|---|---|
| Directory with trajectories (positional) | |
| | Port or range (default: |
| Bind host (default: | |
| Hot-reload development mode | |
| Force rebuild viewer | |
| Skip auto-build |
Shows job summaries, per-trial reward values, agent trajectories, and test output.
在Web UI中浏览任务/测试结果。
bash
harbor view ./jobs/my-job
harbor view ./jobs --port 9000
harbor view ./jobs --dev| 参数 | 简写 | 描述 |
|---|---|---|
| 包含轨迹的目录(位置参数) | |
| | 端口或端口范围(默认: |
| 绑定主机(默认: | |
| 热重载开发模式 | |
| 强制重新构建查看器 | |
| 跳过自动构建 |
展示任务总结、单测试奖励值、Agent轨迹和测试输出。
harbor sweeps run
harbor sweeps run
Run successive sweeps. Each sweep drops tasks that already have at least one success, focusing effort on remaining failures.
bash
harbor sweeps run -c sweep-config.yaml
harbor sweeps run -c sweep-config.yaml --max-sweeps 5 --trials-per-task 3
harbor sweeps run -c sweep-config.yaml --hint "Try grep to find the file first"| Flag | Short | Description |
|---|---|---|
| | Job config file (YAML/JSON) |
| Max sweeps (default: | |
| Trials per task per sweep (default: | |
| Hint string passed to agent kwargs | |
| JSON mapping task name to hint | |
| Push exported datasets to HF Hub |
Additional export flags in .
references/flags.md运行连续扫描。每次扫描会排除已至少成功一次的任务,专注于剩余失败任务。
bash
harbor sweeps run -c sweep-config.yaml
harbor sweeps run -c sweep-config.yaml --max-sweeps 5 --trials-per-task 3
harbor sweeps run -c sweep-config.yaml --hint "Try grep to find the file first"| 参数 | 简写 | 描述 |
|---|---|---|
| | 任务配置文件(YAML/JSON) |
| 最大扫描次数(默认: | |
| 每次扫描每个任务的测试次数(默认: | |
| 传递给Agent关键字参数的提示字符串 | |
| 任务名称到提示的JSON映射 | |
| 将导出的数据集推送到HF Hub |
导出相关额外参数请查看。
references/flags.mdharbor traces export
harbor traces export
Export ATIF trajectories as training datasets.
bash
harbor traces export -p ./jobs/my-job
harbor traces export -p ./trials --filter success --push --repo my-org/traces
harbor traces export -p ./jobs/my-job --sharegpt --episodes last| Flag | Short | Description |
|---|---|---|
| | Path to trial dir or root containing trials |
| Search recursively (default: recursive) | |
| | |
| | |
| ShareGPT-formatted conversations | |
| Push to Hugging Face Hub | |
| HF repo id ( |
Additional flags (, , , ) in .
--subagents--instruction-metadata--verifier-metadata--verbosereferences/flags.md将ATIF轨迹导出为训练数据集。
bash
harbor traces export -p ./jobs/my-job
harbor traces export -p ./trials --filter success --push --repo my-org/traces
harbor traces export -p ./jobs/my-job --sharegpt --episodes last| 参数 | 简写 | 描述 |
|---|---|---|
| | 测试目录或包含测试的根目录 |
| 递归搜索(默认:递归) | |
| 每个测试的 | |
| | |
| ShareGPT格式的对话 | |
| 推送到Hugging Face Hub | |
| HF仓库ID( |
额外参数(、、、)请查看。
--subagents--instruction-metadata--verifier-metadata--verbosereferences/flags.mdharbor cache clean
harbor cache clean
Remove Harbor Docker images and .
~/.cache/harborbash
harbor cache clean
harbor cache clean --force
harbor cache clean --dry
harbor cache clean --no-docker # Only clean ~/.cache/harbor
harbor cache clean --no-cache-dir # Only clean Docker images| Flag | Short | Description |
|---|---|---|
| | Skip confirmation |
| Preview without deleting | |
| Skip Docker image removal | |
| Skip |
移除Harbor Docker镜像和。
~/.cache/harborbash
harbor cache clean
harbor cache clean --force
harbor cache clean --dry
harbor cache clean --no-docker # 仅清理~/.cache/harbor
harbor cache clean --no-cache-dir # 仅清理Docker镜像| 参数 | 简写 | 描述 |
|---|---|---|
| | 跳过确认 |
| 预览删除内容但不执行 | |
| 跳过Docker镜像移除 | |
| 跳过 |
harbor admin upload-images
harbor admin upload-images
Build and push task Docker images to a container registry. Updates with for pre-built image workflows. Hidden from but fully functional.
task.tomldocker_imageharbor --helpbash
harbor admin upload-images -r my-registry.io --tag 20260317
harbor admin upload-images -r my-registry.io --dry-run -f "bash-*"Key flags: (default: ), (required), (default: today ), , , (default: push), , (default: ), , . Full details in .
--tasks-dir / -ttasks--registry / -r--tagYYYYMMDD--dry-run--filter / -f--push/--no-push--delete/--no-delete--parallel / -n1--update-config/--no-update-config--override-config/--no-override-configreferences/flags.md构建并推送任务Docker镜像到容器注册表。更新中的字段以支持预构建镜像工作流。该命令在中隐藏,但功能完整。
task.tomldocker_imageharbor --helpbash
harbor admin upload-images -r my-registry.io --tag 20260317
harbor admin upload-images -r my-registry.io --dry-run -f "bash-*"关键参数:(默认:)、(必填)、(默认:当日)、、、(默认:推送)、、(默认:)、、。完整详情请查看。
--tasks-dir / -ttasks--registry / -r--tagYYYYMMDD--dry-run--filter / -f--push/--no-push--delete/--no-delete--parallel / -n1--update-config/--no-update-config--override-config/--no-override-configreferences/flags.mdSupported Agents
支持的Agent
| Agent | CLI value | Notes |
|---|---|---|
| Oracle | | Runs |
| Nop | | Does nothing (baseline) |
| Claude Code | | Needs |
| Aider | | |
| Codex | | |
| Cline CLI | | Model format: |
| Cursor CLI | | |
| Gemini CLI | | Needs |
| Goose | | Model format: |
| Mini SWE-agent | | |
| SWE-agent | | |
| OpenCode | | |
| OpenHands | | Needs |
| OpenHands SDK | | |
| Qwen Coder | | |
| Terminus | | Harbor's built-in agent |
| Terminus 1 | | |
| Terminus 2 | |
| Agent | CLI值 | 说明 |
|---|---|---|
| Oracle | | 运行 |
| Nop | | 无操作(基准测试) |
| Claude Code | | 需要 |
| Aider | | |
| Codex | | |
| Cline CLI | | 模型格式: |
| Cursor CLI | | |
| Gemini CLI | | 需要 |
| Goose | | 模型格式: |
| Mini SWE-agent | | |
| SWE-agent | | |
| OpenCode | | |
| OpenHands | | 需要 |
| OpenHands SDK | | |
| Qwen Coder | | |
| Terminus | | Harbor内置Agent |
| Terminus 1 | | |
| Terminus 2 | |
Environment Backends
环境后端
| Backend | CLI value | Description |
|---|---|---|
| Docker | | Default. Local containers |
| Daytona | | Cloud sandbox with Docker-in-Docker |
| E2B | | E2B cloud sandboxes |
| GKE | | Google Kubernetes Engine |
| Modal | | Serverless with GPU support |
| Runloop | | Runloop cloud environments |
Note: uses / . uses / .
harbor run--env-eharbor trials start--environment-type-e| 后端 | CLI值 | 描述 |
|---|---|---|
| Docker | | 默认。本地容器 |
| Daytona | | 支持Docker-in-Docker的云沙箱 |
| E2B | | E2B云沙箱 |
| GKE | | Google Kubernetes Engine |
| Modal | | 支持GPU的无服务器环境 |
| Runloop | | Runloop云环境 |
注意: 使用 / 。 使用 / 。
harbor run--env-eharbor trials start--environment-type-eCommon Workflows
常见工作流
Create and test a new task
创建并测试新任务
bash
harbor tasks init my-taskbash
harbor tasks init my-taskEdit: task.toml, instruction.md, Dockerfile, tests/test.sh, solution/solve.sh
编辑:task.toml、instruction.md、Dockerfile、tests/test.sh、solution/solve.sh
harbor tasks check ./my-task
harbor trials start -p ./my-task # oracle validates tests
harbor trials start -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
harbor view ./trials
undefinedharbor tasks check ./my-task
harbor trials start -p ./my-task # oracle验证测试
harbor trials start -p ./my-task -a claude-code -m anthropic/claude-sonnet-4-1
harbor view ./trials
undefinedRun a benchmark evaluation
运行基准评估
bash
harbor datasets list
harbor datasets download terminal-bench@2.0
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1 -n 8
harbor view ./jobs
harbor traces export -p ./jobs/my-job --push --repo my-org/tracesbash
harbor datasets list
harbor datasets download terminal-bench@2.0
harbor run -d terminal-bench@2.0 -a claude-code -m anthropic/claude-sonnet-4-1 -n 8
harbor view ./jobs
harbor traces export -p ./jobs/my-job --push --repo my-org/tracesDebug a failing task
调试失败任务
bash
harbor tasks start-env -p ./my-task # interactive shell in the containerbash
harbor tasks start-env -p ./my-task # 在容器中启动交互式shellInside: bash /tests/test.sh && bash /solution/solve.sh
容器内执行:bash /tests/test.sh && bash /solution/solve.sh
harbor tasks debug my-task-id -m sonnet # AI analysis of failures
harbor trials start -p ./my-task # re-test with oracle
undefinedharbor tasks debug my-task-id -m sonnet # AI分析失败原因
harbor trials start -p ./my-task # 使用oracle重新测试
undefinedResume a failed job
恢复失败任务
bash
harbor jobs resume -p ./jobs/my-job-2025-01-15
harbor jobs resume -p ./jobs/my-job -f AgentTimeoutError
harbor jobs summarize ./jobs/my-jobbash
harbor jobs resume -p ./jobs/my-job-2025-01-15
harbor jobs resume -p ./jobs/my-job -f AgentTimeoutError
harbor jobs summarize ./jobs/my-jobCommon Gotchas
常见注意事项
API keys: Most agents need keys passed via . Claude Code needs , OpenHands needs , Goose needs provider-specific keys. If the agent fails immediately, check the key.
--aeANTHROPIC_API_KEYLLM_API_KEYDocker must be running. Harbor uses Docker for sandboxed environments. Network exhaustion from many concurrent trials can cause failures -- helps.
harbor cache cleanModel name format varies by agent. Claude Code uses , Cline CLI uses (e.g., ), Goose uses . A about model format usually means the wrong format for that agent.
anthropic/claude-sonnet-4-1provider:model-idopenrouter:anthropic/claude-opus-4.5provider/model_nameValueError--env--environment-typeharbor run--env-eharbor trials start--environment-type-eDefault agent is oracle. Forgetting gives you the oracle agent, which just runs . Fine for task validation, not for real evaluations.
-asolve.sh--no-cleanupharbor trials startRetry defaults skip common errors. defaults to , , , , . These usually indicate task bugs, not transient failures.
--retry-excludeAgentTimeoutErrorVerifierTimeoutErrorRewardFileNotFoundErrorRewardFileEmptyErrorVerifierOutputParseErrorAPI密钥: 大多数Agent需要通过传递密钥。Claude Code需要,OpenHands需要,Goose需要提供商特定密钥。如果Agent立即失败,请检查密钥是否正确。
--aeANTHROPIC_API_KEYLLM_API_KEYDocker必须运行。 Harbor使用Docker提供沙箱环境。大量并发测试可能导致网络耗尽,可解决此问题。
harbor cache clean模型名称格式因Agent而异。 Claude Code使用,Cline CLI使用(例如:),Goose使用。关于模型格式的通常意味着该Agent使用了错误的格式。
anthropic/claude-sonnet-4-1provider:model-idopenrouter:anthropic/claude-opus-4.5provider/model_nameValueError--env--environment-typeharbor run--env-eharbor trials start--environment-type-e默认Agent是oracle。 忘记添加参数会使用oracle Agent,它仅运行。适用于任务验证,但不适用于真实评估。
-asolve.sh--no-cleanupharbor trials start重试默认跳过常见错误。 默认排除、、、、。这些错误通常表示任务存在bug,而非临时故障。
--retry-excludeAgentTimeoutErrorVerifierTimeoutErrorRewardFileNotFoundErrorRewardFileEmptyErrorVerifierOutputParseError