Skip to main content

Roller 0.7.0 — Stirrup, remote Claude Code, VIALS and ZeroBench

Roller 0.7.0 adds the Stirrup Harness, Claude Code in a remote sandbox, the VIALS and ZeroBench adapters, OpenAI multimodal SFT records with XTuner export, and compact --training-files-only runs.

Highlights​

  • Stirrup Harness (--harness stirrup, the stirrup extra, Python 3.12 or later). Stirrup 0.2.2's agent loop runs in the Roller process with code_exec, view_image and finish; the sample's Docker container or remote sandbox executes the commands and holds the files, and gets no model key. Model requests go through the local request recording proxy, so --wire-trace full, --capture-calls and --token-ids work in Docker and remote sandboxes alike. Request fields are set by the --stirrup-* options and --thinking.
  • Claude Code in a remote sandbox (--harness claude-code --sandbox-provider NAME --sandbox-template NAME). The CLI runs in the sandbox from the release the template mounts (--claude-sandbox-binary for a path other than /opt/claude-code/bin/claude). A sandbox without egress sends the CLI's requests out through the provider's optional route_http, so the wire trace, Calls, blobs and token ids are the same as under Docker. --network and --keep-container-on-error apply to Docker only.
  • Two benchmarks. ZeroBench (--bench zerobench, the zerobench extra): the 100 main questions or the 334 sub-questions (--bench-variant zerobench_subquestions), scored by the official strict {final answer} rule with no judge. VIALS (--bench vials, the vials extra): the 161 questions of the tasks test split, judged against the reference with the upstream judge prompt. Both are read from Hugging Face at a pinned revision (ZEROBENCH_REVISION, VIALS_REVISION), and bench report adds avg@k and pass@k (plus pass^k for VIALS).
  • XTuner export. roller export --format xtuner writes a single merged xtuner.jsonl with a line-for-line xtuner_index.jsonl and --min-score. Images go to <output>/media/ with EXIF-oriented image_wh (--inline-images keeps data URIs), tool-call arguments are parsed into objects, and target_start_index becomes per-message "loss": false on earlier assistant turns.
  • Compact runs. roller collect --training-files-only (training_files_only in a bench run configuration) keeps only a finished, graded sample's training files: trace_SFT.json or sft_segments/, token_ids.jsonl, info.json and score.json, with each image stored once in the run's blobs/. The sft, xtuner and tokens exports give the same output as without the option; the Viewer, the Hugging Face and ATIF exports and rebuilding SFT need the removed files. Samples that failed, or whose grading failed, keep all their files.

Added​

  • SFT windows built from captured Chat Completions Calls keep the images of user and tool messages; windows rebuilt from captured Anthropic Calls carry the images a tool returned, so vision-agent trajectories can be converted.
  • Text blocks of one message are concatenated in those windows rather than joined with a newline, as the endpoint concatenates them.
  • --claude-tool-images-inline keeps an image a tool returned in the tool message itself. Off by default, which matches vLLM's own Messages endpoint.
  • --claude-context-window tells Claude Code the served context length, so it compacts its history before the endpoint would refuse the request. In a remote sandbox the Harness also turns off the attribution header, experimental betas, telemetry and error reporting, and sets a reply timeout that fits the relay.
  • bench.grade.collector_files grades a copy of workspace files in the collecting process, for containers without network; the judge's key stays out of the container.
  • files.output_dir: null gives a Stirrup task no output directory. VIALS tasks use it.
  • examples/cookbook/zerobench-claude-code and examples/cookbook/vials-stirrup run the two benchmark protocols; docker/vials builds the VIALS tools image.

Changed​

  • Pinned Harness versions: OpenClaw 2026.11.10, Claude Code 2.1.332, Codex 0.172.0, DeepSeek Harness 0.2.2rc2, Hermes 8fc037444731 (v0.23.4), OpenCode 1.19.6, Pi Agent 1.6.1, stirrup==0.2.2 and e2b==2.66.0, with their Dockerfiles and optional SDK extras (#167).
  • Layered architecture. Internal modules are split into a strictly layered dependency graph while the CLI, YAML run configs, on-disk run and lock formats, public package exports and the roller.sandbox_providers entry point are preserved (#166).
  • Multimodal SFT records (trace_SFT.json, sft.jsonl, sft_segments.jsonl) use standard OpenAI content lists (text and image_url parts) instead of <image> placeholders and a top-level images list. Text-only messages keep plain string content. The sft and xtuner exports still upgrade legacy runs on disk.
  • Smaller captures. wire_trace.jsonl and captured Calls store each image once per sample in blobs/<sha256>.<subtype> and keep a roller-blob: reference in its place; a Stirrup sample with 18 requests and 7 images takes 14 MB instead of 94 MB. Roller restores the original data URIs when it reads the files; earlier runs are read as they are.
  • The run-level calls.jsonl lists the exportable Calls without their context and output (roller.call-index/v1); the request and response stay in the sample's capture/.
  • --token-ids works in a remote sandbox; the sandbox template needs this Roller version.
  • Task prompts reach the model as written: leading and trailing whitespace is no longer stripped, and a blank prompt is still rejected. Tasks whose prompt had such whitespace get a new bundle digest.
  • roller export --format hf writes a Hermes sample's trace as a Hermes session, so the Hub lists it as a Hermes trace.
  • Stirrup passes no proxy variables into the container.
  • The pdf extra installs on Python 3.11 and later, with Pillow 13 or later. On Python 3.10, --claude-pdf-as-images reports that the extra needs Python 3.11.

Fixes​

  • The Hugging Face export of imported sessions also replaces the local user name inside longer names and after escaped line breaks or URL escapes such as %2F. A user name still left is listed in the redaction report as user_name.
  • roller export --format hf --include-runs leaves out the tokens/ folder written by roller export --format tokens.
  • SFT windows built from captured Calls stay open when the Harness replays a tool call with schema defaults filled in or argument keys reordered, as Claude Code does; each such call used to start a new record that repeated the previous one.

Install​

Terminal
uv tool install roller-agent # or: python -m pip install roller-agent