RoboHarness README

项目的 README,来自 github.com/BinceQu/RoboHarness。合并为一个 markdown 文件:README.md。

RoboHarness

A Simple Harness Outperforms VLA and World Action Models

Project Page · Quick Start · Documentation · Citation · 中文

License: MIT Benchmark

RoboHarness overview

RoboHarness overview: visual keypoints are tracked persistently, converted into geometric constraints, executed, and verified in a closed loop. View original PDF

News

Overview

Without training models, RoboHarness combines visual clicks, keypoint tracking, and geometric constraints to provide an embodied control panel for an LLM agent.

The LLM marks points of interest on a 2D image and continuously receives their positions via optical-flow tracking and depth back-projection; with this information, it composes accurate primitive actions to perform complex manipulation.

The reported BEHAVIOR results use Claude Code 2.1.259 with Qwen3.8-Flash-Next-FP8 and the R1 Pro robot. A Codex harness is also available.

RoboHarness V2 replaces the tool plugin with a robot workspace that the agent works inside: robot model, joint manuals, readable Python tools and skills. It runs on the same tasks and evaluator with --harness v2; see harness/v2. The commands below use V1 and reproduce the paper results.

Repository structure

RoboHarness/
├── run.sh           # entry point: ./run.sh --task task01 [--harness claude_code|codex|v2]
├── harness/         # agent side: how the agent sees and controls the robot
│   ├── v1/          #   paper version: Claude Code and Codex plugins
│   └── v2/          #   workspace harness: R1 Pro and ARX X5 workspaces
├── eval/            # evaluation side: runner, BEHAVIOR interface, RoboDojo bridge, viewers
├── BEHAVIOR/        # official simulator and evaluator (submodule)
├── tasks/ prompt/   # task definitions and archived prompts
├── configs/         # example configurations
└── scripts/ docs/ tests/ website/
Path Purpose
harness/v1/claude_code/ Claude Code harness used for the paper results
harness/v1/codex/ Codex harness
harness/v2/ V2 workspace harness (R1 Pro on BEHAVIOR, ARX X5 on RoboDojo); --harness v2
eval/runner/ Task runner behind ./run.sh: starts the evaluator stack and agent, collects official scores
eval/behavior/ BEHAVIOR interface: RGB-D observations, robot control and the official evaluator wrapper
eval/robodojo/ RoboDojo bridge for V2
BEHAVIOR/ BEHAVIOR simulator and evaluator, pinned to v3.9.1
tasks/ Task definitions, evaluation instances and step budgets
prompt/ Task-specific instructions for household manipulation
reference_results/ Reference evaluator scores (hosted on Hugging Face; setup.sh fetches them)
validation_results/ Evaluation reports and scores (hosted on Hugging Face)

See eval/README.md for the evaluation side in more detail.

Installation

Use Linux x86-64, an NVIDIA RTX GPU, Python 3.11 and the CUDA 12.4 toolkit. The validation host has 48 GB VRAM per GPU; this is the tested capacity, not a measured minimum. You also need BEHAVIOR scene data, local cache space and a separately configured model endpoint.

git clone --recurse-submodules https://github.com/BinceQu/RoboHarness.git
cd RoboHarness
./scripts/setup.sh
cp configs/example.json configs/local.json

Videos, reference results and validation reports are hosted in the RoboHarness-assets dataset, pinned by assets.lock.json, so cloning stays small. setup.sh fetches the reference results the runner needs; python3 scripts/fetch_assets.py --group all fetches everything and verifies each SHA-256. The paper and project page correspond to the v1.0-paper release.

Follow the installation guide to obtain the licensed datasets, install Claude Code 2.1.259, and configure the model endpoint and authentication. Edit configs/local.json for this machine's data and Python paths.

Run a task

The model server and the evaluation runner are separate processes. Keep your model server running throughout evaluation. setup.sh installs the simulation and agent environments; it does not download LLM weights or start a model server.

1. Connect to your model service.

The default Claude Code harness uses an Anthropic-compatible /v1/messages endpoint with image input, tool calls and streaming. The paper configuration uses Qwen3.8-Flash-Next-FP8. If your server only provides OpenAI Chat Completions, follow the bridge setup first. Codex uses a different Responses configuration.

On the evaluation machine, open a terminal in this repository and replace the host, served model ID and key below with your service's values:

export ROBOHARNESS_MODEL_URL='http://YOUR_MODEL_HOST:31000'
export ROBOHARNESS_MODEL='Qwen3.8-Flash-Next-FP8'
export ANTHROPIC_API_KEY='YOUR_MODEL_SERVER_KEY'
export ANTHROPIC_AUTH_TOKEN="$ANTHROPIC_API_KEY"

Use the origin without /v1 for ROBOHARNESS_MODEL_URL. The model ID must match the name exposed by your server. For a server with authentication disabled, use local-no-auth as the key. 127.0.0.1 works only when the model service is on this evaluation machine, or an SSH tunnel forwards it here.

Send a small request before starting the simulator:

python3 - <<'PY' | curl --fail-with-body --silent --show-error \
  "${ROBOHARNESS_MODEL_URL%/}/v1/messages" \
  -H 'Content-Type: application/json' \
  -H 'anthropic-version: 2023-06-01' \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
  --data-binary @-
import json, os
print(json.dumps({
    "model": os.environ["ROBOHARNESS_MODEL"], "max_tokens": 128,
    "messages": [{"role": "user", "content": "Reply with OK."}]
}))
PY

Expect a Messages response with "type": "message". This checks reachability, authentication and the model ID; the service must also support the image and tool features above. Connection errors, HTTP 401/403 and HTTP 404 are covered in model connection troubleshooting.

2. Save the session configuration.

In the same terminal, copy your installation settings on first use and save the model address and name. Existing session settings are retained:

python3 - <<'PY'
import json, os
from pathlib import Path
path = Path(os.environ.get("ROBOHARNESS_SESSION_CONFIG", ".local/session-config.json"))
source = path if path.exists() else Path("configs/local.json")
config = json.loads(source.read_text())
config.update(model_url=os.environ["ROBOHARNESS_MODEL_URL"],
              model=os.environ["ROBOHARNESS_MODEL"])
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(json.dumps(config, indent=2) + "\n")
print("Saved", path)
PY

The default session file is .local/session-config.json; set ROBOHARNESS_SESSION_CONFIG to select another file. Review it: data_path must point to the BEHAVIOR data root, and interface_python, evaluator_python and agent_python must point to the installed environments. The example paths work with setup.sh. Set cache_dir to writable scratch space outside any Git checkout when needed. Relative paths are resolved from the repository root. Credentials stay in the shell environment; export them again in each new terminal. Later configuration edits belong in this session file.

3. Inspect the plan, then launch.

claude --version  # must be 2.1.259 for the paper configuration
./run.sh --list
./scripts/reproduce_task.sh task01 --gpu 0 --dry-run
./scripts/reproduce_task.sh task01 --gpu 0 --run-dir runs/task01-001

In the dry-run output, check model_url, model, gpu, the three ports and the five instance IDs. Dry-run prints configuration; it does not contact the model or validate the simulator installation. The final command starts the interface, evaluator and Claude Code agent and runs all five instances in order. --gpu 0 selects the simulation GPU; model-serving GPUs are selected when you start your own model server. Choose resources with enough capacity for both.

Change task01 to another listed task; task04 is not included. Use a new output directory for every run, or omit --run-dir to generate one automatically. For a single-instance trial, add --instances 301 and use a separate directory; the full task mean requires all five instances.

4. Watch the rollout and read the results.

With default ports, task01's interface is http://127.0.0.1:15071 on the evaluation machine. For a remote machine, run this on your own computer, then open that address in your browser:

ssh -N -L 15071:127.0.0.1:15071 YOUR_USER@YOUR_EVALUATION_HOST

The launcher prints the HTTP, policy and gate ports. Configure them with task_ports if needed. For the command above, outputs are in:

Path Contents
runs/task01-001/summary.json Completed instance count, scores and current mean Q-score
runs/task01-001/output/json/ Official per-instance evaluator results
runs/task01-001/instance_301/ Prompt, agent output, error log and trajectory for instance 301
runs/task01-001/run.log and runs/task01-001/logs/ Controller, interface and evaluator logs

After all five instances finish, generate the comparison report:

python3 scripts/report_validation.py runs/task01-001 \
  --output .local/reports/task01-001 --check-live --require-match

Open .local/reports/task01-001/README.md for the result. --require-match returns a nonzero exit code for an incomplete or mismatched evaluation. Both runs/ and .local/ are ignored by Git.

Reproduction contract

The paper's BEHAVIOR evaluation protocol is:

The runner defaults to session_timeout_s: 0, so there is no additional wall-clock limit. Execution time varies with hardware, model serving and concurrent load; evaluation budgets are measured in simulation control steps.

The report compares each complete task mean with its reference value using a tolerance of 1e-6. Individual instance scores may differ. --require-match exits nonzero if a task is incomplete, its mean differs, or the run fails the evaluation checks. Use --check-live on the evaluation host; omit it when analyzing copied runs. Add --watch for continuous reporting.

Citation

If you use RoboHarness in your research, please cite our paper:

@misc{qu2026roboharness,
  title         = {RoboHarness: A Simple Harness Outperforms VLA and World Action Models},
  author        = {Bince Qu and Wei Chen and Bo Zhang},
  year          = {2026},
  eprint        = {2610.14018},
  archivePrefix = {arXiv},
  primaryClass  = {cs.RO},
  doi           = {10.48550/arXiv.2610.14018},
  url           = {https://arxiv.org/abs/2610.14018}
}

GitHub's Cite this repository button provides the same reference in APA and BibTeX formats from CITATION.cff.

Development and license

Run the installed environments' CPU checks with ./scripts/check.sh. See contribution guidelines for focused checks and the information needed in a reproducibility issue.

Repository code is released under the MIT license, subject to the component-specific third-party notices. BEHAVIOR data, NVIDIA Isaac Sim and model weights have their own access and license terms.

RoboHarness (BinceQu/RoboHarness)

正在搜索数据库…

这是什么?RoboHarness 是一个免训练的 harness,为 LLM 智能体提供一个视觉-几何控制面板:模型在 2D 图像上标记兴趣点,这些点会被跟踪并转化为几何约束,让 LLM 能够直接组合并执行具身操作动作。
它是训练出来的机器人策略,还是围绕现有 LLM 的封装?它是一个 harness,不是训练出来的模型:LLM 在 2D 图像上标记点,并通过光流跟踪和深度反投影持续获取它们的位置,然后据此自行组合基础操作动作。
我怎么运行一次评估?连接到 Anthropic 兼容的 /v1/messages 模型端点(或对 OpenAI 风格的服务器使用桥接器),把该设置保存到会话配置文件,运行 setup.sh 安装仿真和智能体环境,然后启动一个任务,让界面、评估器以及 Claude Code 或 Codex 智能体一起运行全部五个实例。
试用之前我需要什么硬件和软件?你需要带 NVIDIA RTX GPU 的 Linux x86-64、Python 3.11 和 CUDA 12.4 工具包;验证所用主机每块 GPU 有 48GB 显存。你还需要获得授权的 BEHAVIOR 场景数据,以及单独运行的模型端点,例如 Claude Code 2.1.259 配合 Qwen3.8-Flash-Next-FP8。
有什么我该预料到的安装坑吗?BEHAVIOR 场景数据有你必须自行获取的独立许可证,而且你的模型服务器需要支持图像输入、工具调用和流式的 Anthropic 风格端点——普通的 OpenAI Chat Completions 服务器需要先做额外的桥接设置。
整个项目都能在 MIT 许可下自由使用吗?仓库代码本身采用 MIT 许可,但 BEHAVIOR 数据、NVIDIA Isaac Sim 和模型权重各自带有独立的获取与许可条款,你必须分别满足。
RoboHarness 声称胜过什么?该项目的标题就围绕这一主张:这个简单的 harness 胜过 VLA(视觉-语言-动作)模型和世界动作模型,并有一张针对这些基线外加一个抓取(pick)基线的物体泛化对比图作为支撑。
任务是怎么打分的?每个任务运行五个固定的评估实例(种子 20260911);官方 BEHAVIOR Challenge 2025 评估器为每次 rollout 产生一个 Q 分数,任务均值是全部五个的无权重平均值,结果保留四位小数。
已发布的结果中用了什么机器人和模型?已报告的 BEHAVIOR 结果将 Claude Code 2.1.259 与 Qwen3.8-Flash-Next-FP8 模型配对,控制 R1 Pro 机器人;还提供一个基于 Codex 的 harness 作为 Claude Code 的替代方案。
作者
BinceQu
大小
35 MB
星标
527
更新
提交Nov 05
时长
1个月
提交 · 90 天