Repository navigation
Releases
Roller 0.8.0
Roller 0.8.0 imports native OpenCode and Pi sessions, runs Codex and OpenCode single-agent task lists in remote sandboxes, and adds roller doctor, JSON output for roller bench report, and diagnostics that say why compaction SFT windows split or fail to align.
uv tool install roller-agent # or: python -m pip install roller-agentAdded
roller import --harness opencodeimports native OpenCode sessions from its SQLite database,opencode.dbunder$OPENCODE_DATA_DIR,$XDG_DATA_HOME/opencodeor~/.local/share/opencode, or from a database or data directory passed on the command line, including the olderstorage/layout. Root sessions become samples with the native record astrace.jsonl, ACTF and usage; subagent sessions are counted and left out. A session without context compaction also exports linear SFT, and running the import again updates changed sessions and skips unchanged ones.examples/cookbook/opencode-local-importgenerates a syntheticopencode.dband walks through the import offline.roller import --harness piimports native Pi v1.6.1 sessions. It preserves the original JSONL and shows the raw history of the reopened branch in the Viewer. Text Chat Completions sessions with matching captured Calls can export verified, per-call SFT segments.- OpenCode task lists can run in a remote sandbox with
--sandbox-provider NAME --sandbox-template NAME. The pinned CLI runs in the sandbox, and Roller collects its native journal, ACTF, task outputs, and optional wire trace, Calls and token IDs. roller doctorreports Python,roller-agent, Docker availability, optional extras, and sandbox providers.roller bench report --jsonand--format jsonprint the benchmark report JSON directly to stdout without summary formatting.- Single-agent Codex task collection supports remote sandboxes through
--sandbox-providerand--sandbox-template. Roller recovers task outputs, the native session, ACTF, wire traces and Calls. Token IDs use the existing--codex-chat-completionstranslation.examples/cookbook/remote-sandbox-codex-opencoderuns one task list with Codex and with OpenCode.
Changed
- Compaction SFT conversion errors now name the Call (ID, request sequence, protocol) and the ACTF main step that failed to align, and say why the Call's output did not match.
- An SFT window that starts because the captured prompt stopped continuing the previous window (
boundary_source: observed_context_change) records why inwindow_breakin the sample'strajectory.sft_segments: the tool list changed, a replayed message differs (with its index, role, and whether its image parts, text, tool calls or reasoning differ), the new prompt holds an assistant message beyond the previous window, or the previous window was a summary request.
Fixed
roller export --format tokenswrites an emptytokens.jsonland reports zero counts for imported runs without recorded token IDs.roller import --harness opencoderetains conversations with non-image user attachments. SFT keeps the saved model-visible text parts when available and reports why an attachment prevents export otherwise.
Roller 0.7.0
Roller 0.7.0 adds the Stirrup Harness, Claude Code remote sandbox execution, the VIALS and ZeroBench bench adapters, OpenAI multimodal SFT records with XTuner export, --training-files-only compact runs, upgraded pinned Harness versions, and a decoupled layered module architecture.
uv tool install roller-agent # or: python -m pip install roller-agentAdded
roller export --format xtunerexports a run as a single mergedxtuner.jsonl(combining unsegmented rollouts and compaction segments, with a line-for-linextuner_index.jsonl, supporting--min-score). Images are extracted to<output>/media/with EXIF-orientedimage_whmetadata (--inline-imageskeeps base64 data URIs inline),tool_calls[].function.argumentsJSON strings are parsed into objects, andtarget_start_indexis translated into per-message"loss": falseon earlier assistant turns.- Stirrup Harness (
--harness stirrup, thestirrupextra, Python 3.12 or later). Stirrup 0.2.2's agent loop runs in the Roller process withcode_exec,view_imageandfinish; the sample's Docker container or remote sandbox executes the commands and holds the files, and gets no model key. Model requests go from Roller through the local request recording proxy, so--wire-trace full,--capture-callsand--token-idswork in Docker and remote sandboxes alike. The request fields are set by--stirrup-*options and--thinking, in a fixed order. A history summary splits SFT into windows from captured Calls, and the summary request is a window of its own. - SFT windows built from captured Chat Completions Calls keep the images of user and tool messages, as the linear export does.
- Claude Code Harness in a remote sandbox (
--harness claude-code --sandbox-provider NAME --sandbox-template NAME). The CLI itself runs in the sandbox, started from the release the template mounts (--claude-sandbox-binaryfor a path other than/opt/claude-code/bin/claude), and the sandbox holds the task's files. A sandbox created without egress cannot reach the request recording proxy, so the provider's optionalroute_httpcarries the CLI's requests out through the sandbox API while the proxy stays on the collecting host:--wire-trace full,--capture-callsand--token-idswrite the same wire trace, Calls, blobs and token ids as under Docker, and the native session trace, its ACTF conversion, usage and output collection are read from the sandbox the same way.--networkand--keep-container-on-errorapply to Docker only. --claude-tool-images-inlinekeeps an image a tool returned in the tool message itself instead of the user message that follows it, for endpoints and chat templates that render it there. Off by default, which is how vLLM's own Messages endpoint arranges such a turn.--claude-context-windowtells Claude Code the served context length, so it compacts its history before the endpoint would refuse the request and end the sample. In a remote sandbox the Harness also fixes the CLI settings an agentic benchmark run depends on: no attribution header, which varies per conversation and would defeat the served model's prefix cache; no experimental betas, telemetry or error reporting; and a reply timeout the relay's whole-response delivery fits inside.- ZeroBench bench (
--bench zerobench, thezerobenchextra): the 100 main questions (--bench-variant zerobench) or the 334 sub-questions (--bench-variant zerobench_subquestions), read from Hugging Face at a pinned revision (ZEROBENCH_REVISIONto change it). Each task carries its images as files under/taskfor the agent to crop and view, with the official question and answer-format instruction, and the official strict{final answer}rule scores the final message with no judge and no environment variables.bench reportadds avg@k and pass@k over k samples per question.examples/cookbook/zerobench-claude-coderuns the protocol with Claude Code in a remote sandbox. - SFT windows rebuilt from captured Anthropic Calls carry the images a tool returned, in the tool message itself or in the user message after it, whichever the collection served (
--claude-tool-images-inline). A trajectory whose tools answer with images -- a vision agent cropping and viewing a picture -- could not be converted at all before. - Text blocks of one message are concatenated in those windows rather than joined with a newline, as the endpoint concatenates them. The separator added a character the model was never served; it kept the window's length and changed one token id, so only a token-level comparison against the recorded ids showed it.
- VIALS bench (
--bench vials, thevialsextra): the 161 questions of thetaskstest split, read from Hugging Face at a pinned revision (VIALS_REVISIONto change it) and cached under--bench-root. Each task follows the upstream tool-assisted agent adapter: its prompt, the images as files under/task, and the answer in/task/answer.txt, judged against the reference with the upstream judge prompt.bench reportadds pass^k, avg@k and pass@k over k samples per question.docker/vialsbuilds the tools image andexamples/cookbook/vials-stirrupruns the protocol with Stirrup. roller collect --training-files-only(training_files_onlyin a bench run configuration) keeps only the training files of a sample once it has finished and been graded:trace_SFT.jsonorsft_segments/,token_ids.jsonl,info.jsonandscore.json, with each image of the SFT records stored once for the run, in the run directory'sblobs/. The trace, ACTF, Calls and wire trace are removed after the context windows have been cut from the Calls, and the run-levelsft.jsonlis not written.roller export --format sft,xtunerandtokensgive the same output as for the run collected without the option,--resumetakes these samples as finished andbench reportreads their scores. 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.bench.grade.collector_filesgrades a copy of those workspace files in the collecting process, for containers without network; the judge's key stays out of the container.files.output_dir: nullgives a Stirrup task no output directory: the workspace holds only the task's files and what the agent writes, and nothing is collected from it. VIALS tasks use it.
Changed
-
Upgraded all eight pinned Harness versions, Dockerfiles, and optional SDK extras: OpenClaw
2026.11.10, Claude Code2.1.332, Codex0.172.0, DeepSeek Harness0.2.2rc2, Hermes8fc037444731(v0.23.4,python:3.14-slim-bookworm,uv==0.13.10), OpenCode1.19.6, Pi Agent1.6.1,stirrup==0.2.2, ande2b==2.66.0(#167). -
Decoupled Roller's internal architecture into a strictly layered dependency graph and split oversized modules (
cli/,actf/,execution.py,docker_runtime.py,option_specs.py,run_outputs.py,sample_lifecycle.py,sample_metadata.py,hf_redaction.py,wire_transforms.py,compaction_parsers.py, and per-Harness config/session modules) while preserving the CLI, YAML run configs, on-disk run/lock formats, public package exports, androller.sandbox_providersentry point (#166). -
Task prompts reach the model as written; Roller no longer strips leading and trailing whitespace from
prompt,questionandmessages[].content. A blank prompt is still rejected. Tasks whose prompt had such whitespace get a new bundle digest. -
Stirrup passes no proxy variables into the container, since its model requests start in the Roller process.
-
Multimodal SFT records (
trace_SFT.json,sft.jsonl,sft_segments.jsonl) now use standard OpenAI content lists ({"type": "text", "text": ...}and{"type": "image_url", "image_url": {"url": "data:<mime>;base64,..."}}) instead of flattening blocks with<image>placeholders and a top-levelimageslist. Text-only messages keep plain stringcontent, literal<image>in source text no longer blocks SFT export, and no extra newline is inserted before images.roller export --format sftand--format xtunerstill upgrade legacy<image>+imagesruns on disk. -
wire_trace.jsonland the captured Calls store each image of the request bodies once per sample, inblobs/<sha256>.<subtype>, and keepdata:<mime>;base64,roller-blob:<sha256>.<subtype>in place of the data URI. Every request resends the images of the conversation so far, so both files grew with the square of the number of turns: a Stirrup sample with 18 requests and 7 images takes 14 MB instead of 94 MB. Roller restores the original data URIs, character for character, when it reads the files; runs collected earlier are read as they are. -
The run-level
calls.jsonllists the exportable Calls without theircontextandoutput(schema_version: roller.call-index/v1). It held a second copy of every captured Call; the request and response stay in the sample'scapture/. -
--token-idsworks in a remote sandbox (--sandbox-provider). The wire recorder in the sandbox writestoken_ids.jsonland Roller copies it into the sample. The sandbox template needs this Roller version. -
roller export --format hfwrites the trace of a Hermes sample as a Hermes session, the format ofhermes sessions export, so the Hub lists it as a Hermes trace. It was a Pi session converted from ACTF. -
The
pdfextra installs on Python 3.11 and later, with Pillow 13 or later. Pillow 13 has the fixes for the vulnerabilities reported in earlier versions and needs Python 3.11. On Python 3.10,--claude-pdf-as-imagesreports that the extra needs Python 3.11.
Fixed
- The Hugging Face export of imported sessions also replaces the local user name inside longer names, such as
pytest-of-<user>,_Users_<user>_and<user>.github.io, and right after an escaped line break or a URL escape such as%2F. A user name still...
Roller 0.6.0
Added
- Token-in, token-out collection from a Chat Completions endpoint that returns token ids, such as vLLM. With
--capture-calls,--token-idssaves the prompt and completion token ids of every model call with the logprob of each sampled token intoken_ids.jsonl. A call that continues an earlier one holds only the prompt tokens that follow it, so the file grows with the length of the conversation. The run records whether the endpoint reports logprobs before or after temperature and top-p.roller export --format tokensjoins the calls of a conversation into one sequence in which every token appears once, with the positions the model generated marked. --token-idsworks with every Harness in Docker. Hermes, OpenCode, DeepSeek Harness, Pi Agent and OpenClaw call Chat Completions themselves. Claude Code and Codex do through--claude-chat-completionsand--codex-chat-completions, which translate their Messages and Responses requests to Chat Completions at the request recording proxy, with the same prompt vLLM renders for its own Messages and Responses endpoints.- The WildClawBench cookbook includes an OpenCode collection script with full request and call capture.
Changed
- Roller now calls Docker through the named verbs of
DockerRuntime(exec,copy_in,copy_out,kill,remove,ps,image_id, …) instead of writingdockerargument lists at each call site. The argv and recorded provenance are unchanged, and the Docker command line is spelled in one module.
Fixed
- OpenCode uses the configured output budget for model requests. ACTF keeps observed turns and tool calls from attempts that hit a context overflow or end with a running tool. Those attempts are unavailable for SFT.
- Hugging Face export preserves the OpenCode native journal when ACTF is unavailable and redacts OpenCode's effective proxy bypass assignment.
Roller 0.5.0
Added
-
Single-agent WildClawBench collection with DeepSeek Harness can use a remote sandbox.
roller collectandroller bench runaccept an execution provider and template. Docker remains the default. Thee2bextra enables E2B and the WildClawBench cookbook includes the template recipe. -
The WildClawBench cookbook includes a DeepSeek collection script and an assets-only preparation mode for collectors without a Docker daemon.
-
roller importimports the local Claude Code and Codex sessions, compressed Codex sessions included, as a run that the Viewer and every export read. Imported samples record a title, a project and where their tools and system prompt came from (tools_source,system_prompt_source), whichsft_index.jsonlcarries. -
The Hugging Face export of imported sessions replaces their home directories, user names and account identifiers, the global git name and email, and the values of credential variables in the exporting environment.
-
SFT records keep
tool_referenceblocks of tool results as JSON text. -
--codex-tool-images-as-userkeeps tool text and attaches the original tool-image bytes as a following user message for compatible Responses backends. -
--preserve-task-keyspreserves deliberate benchmark key fixtures during HF export while redacting known collection credentials. -
docker/wildclawbenchprovides cleaned base/Codex image recipes, license notices and collection examples. -
Collection credential preflight, detailed failure summaries, progress, ETA, 60-second heartbeats and
collect.log;--max-consecutive-errorsstops dispatch after 10 consecutive errors by default, and--retry-backoffspaces sample retries. -
Grader retries in the live container and
--resume-unscoredto rerun agents whose grading failed. Grading failures now cause a nonzero exit. -
SFT record indexes and
roller export --format sft --min-scorefor score-filtered training data. -
HF credential-shape redaction and a residual review report beside the exported dataset.
-
English/Chinese Viewer controls, benchmark scores, sorting/filtering and inline user-message images.
-
Collector ownership labels, signal cleanup and
roller cleanfor leftovers of dead collectors.
Fixed
-
DeepSeek exports retain the native journal when an attempt has no ACTF trajectory. Runtime and capture artifacts remain available when output collection fails.
-
Benchmark graders read JSONL journals one record at a time, including journals with large image payloads.
-
HF export no longer drops the rest of a file after text that names a private key header without its key, which broke the JSON of the trajectory.
-
HF export matches the credential shapes in one pass per line, which halves its time on large runs.
-
Grader proxy bypass expands configured CIDR ranges to matching endpoint hosts.
-
HF export rules also apply to generated model group names and sample paths; configured proxy bypass values and URL credentials are redacted.
-
Export review avoids repeated email-pattern backtracking on long image payloads.
-
Benchmark reports aggregate each model separately, include failed samples in denominators and use consistent category denominators.
-
Resume accepts task/model supersets and compatible patch upgrades, and rebuilds derived SFT artifacts without rerunning valid samples.
-
HF exports exclude previous export directories and review reports from shared run files.
Roller 0.4.0
Roller 0.4.0 exports a run for publishing. roller export writes ATIF, the trajectory format of Harbor, and with --format hf a Hugging Face dataset folder that the Hub opens in its trace viewer, with the endpoints, host names, host paths and credentials of the collection environment replaced. Five Harness images are prebuilt at ghcr.io/valen-team.
uv tool install roller-agent # or: python -m pip install roller-agentOne change affects existing setups: OpenClaw runs in /root/.openclaw/workspace instead of /tmp_workspace. It is described under Changed.
Added
- Prebuilt
linux/amd64images of the Codex, Hermes, OpenCode, DeepSeek and Pi Harnesses atghcr.io/valen-team. Claude Code is built locally because its licence does not allow redistribution. roller export RUN_DIRconverts the trajectories of a run to ATIF-v1.7, the trajectory format of Harbor. Each sample becomes atrajectory.jsonwith its images stored as files.roller export RUN_DIR --format hfpackages a run as a Hugging Face dataset folder: a dataset card with the statistics of each model, the agent session of every sample, which the Hub opens in its trace viewer, and a table with one row per sample. The folder holds what is published, and--include-runsadds a Roller run directory with every file of the samples, whichroller viewopens. A run is written as one part per Harness and model, named<harness>-<model>, so further runs can be exported into the same folder. The exported files are redacted by default: the model endpoints, the hosts thatNO_PROXYnames, the name and domain of the machine, the run directory and the host paths of the configuration, and the credential values of the run are replaced with placeholders, and--no-redactturns this off.--redact-rules FILEadds rules that replace text, leave out files, or stop the export on a forbidden pattern. The statistics table of the card has no token column for a run whose endpoint reported no usage.
Changed
- OpenClaw runs in
/root/.openclaw/workspace, the workspace path of an OpenClaw install, which Roller links to the task workspace. A session records this path as its working directory, so tools that recognize OpenClaw sessions by it, such as the trace viewer of the Hugging Face Hub, label them as OpenClaw. It was/tmp_workspacebefore. The task workspace and its files stay at the same paths. WildClawBench upstream runs OpenClaw in the same path. - The project status is Beta, in the package classifiers and the documentation.
- The handbook moved to valen-team.github.io/roller and is maintained in the website repository.
docs/and the Sphinx build are removed from this repository.
Fixed
- ACTF
metric.prompt_tokens_lenof an OpenClaw step counts the whole prompt, including cache reads and writes, as it does on the other six Harnesses. It left the cached tokens out before. OpenClaw, Hermes, OpenCode, DeepSeek and Pi steps also recordcache_read_tokensandcache_write_tokens. Trajectories of existing runs keep the values they were written with.
Roller 0.3.0
Roller 0.3.0 adds the SWE-Bench Pro bench adapter, keeps images in the trajectories of all seven Harnesses, and lets a benchmark run be described in a YAML file. It also fixes defects found by running every Harness against a real model.
uv tool install roller-agent # or: python -m pip install roller-agentFour changes affect existing setups: capture=full Context is now stored in the run directory, an OpenClaw model must be declared in --model-config, WildClawBench scores samples whose agent timed out, and OpenClaw runs with heartbeat polls and transcript redaction turned off. Each is described under Changed.
Added
- SWE-Bench Pro bench adapter, scored by the hidden tests in the official instance images (#54).
roller bench run --config FILEdescribes a benchmark run in layered YAML. The example configurations ship in the package and are written byroller init(#67).files.attach_imagessends input images with the first user message on OpenClaw, Codex, Claude Code, OpenCode and Pi. User-message images are kept in ACTF and SFT (#63, #76).--pi-input-modalitiesand--deepseek-input-modalitiesdeclare whether the model accepts images. The Viewer shows images returned by tools (#80, #109).- Native tool selection for Hermes (
--hermes-toolset), OpenCode (--opencode-native-tools,--opencode-deny-tool) and DeepSeek (--deepseek-profile,--deepseek-permission-mode). Defaults are unchanged (#78). --retry-backoff,--claude-unique-tool-idsand--codex-image-detail(#76).capture=fullContext is kept in the run directory undercontext/, addressed by content and readable by the owner only (#73).- A dry run lists
task_bundle_digest,input_tree_digestandcontext_manifest_digestfor every planned rollout (#106). --resume-verify-outputsrereads recorded output files on Resume and reruns a sample whose content no longer matches its SHA-256.- Python 3.13 is tested and declared, and the package ships a
py.typedmarker. scripts/test_multimodal_e2e.pychecks image inputs against a real Harness and model.
Changed
- A dry run validates inputs without copying them or writing any file (#106).
- With
--model-config, an OpenClaw model must be listed by its provider in the file; a mistyped model stops the run before a container starts (#115). - Containers start from the image id that was inspected, and a tag that changed since preflight is reported (#74, #115).
- OpenClaw runs with transcript redaction and heartbeat polls turned off, so task text is recorded verbatim and no model request is made outside the task (#96, #108).
- DeepSeek profiles other than
sdk-minimalrun commands unconfined inside the task container by default, and their delegation tools are not offered to the model (#109). - WildClawBench grades a sample whose agent timed out or failed on the workspace it left, instead of leaving it unscored (#67).
- Output files are hashed while they are copied, and the Claude Code settings digest is SHA-256. Locks with the earlier digest still resume (#74).
Fixed
- OpenClaw subagent samples collected over Chat Completions were excluded from SFT (#110).
- An OpenClaw reply over Chat Completions whose text was interrupted by reasoning was stored with a line break inserted at the interruption.
- The task JSON Schema listed three of the seven Harnesses and rejected several fields the loader accepts (#107).
- The test suite failed on macOS (#111).
Roller v0.2.1
Roller 0.2.1 is the first release on PyPI. It adds roller init, so the quick start runs from a plain package install without cloning the repository.
Install
# uv
uv tool install roller-agent
# pip
python -m pip install roller-agentWhat's new
-
roller init [DIRECTORY]. Writes the example tasks, model configuration templates andapi.env.exampletoDIRECTORY/examples(default: the current directory). Files that already exist are kept. The quick-start commands run unchanged afterwards:mkdir roller-quickstart && cd roller-quickstart roller init
-
PyPI package.
roller-agentis published from this repository through Trusted Publishing on everyv*tag. Links and images on the PyPI project page point at the files of the released tag. -
Installation docs. The README and the getting-started guides lead with
uvandpip; installing from source is described separately for contributors. English and Chinese are updated together.
Packaging and CI
- The build backend is hatchling. The wheel contains the 0.2.0 files plus the starter examples under
roller/examples/. - The version is defined once, in
src/roller/version.py. - A
testextra installs the test dependencies:python -m pip install -e ".[test]", thenpython -m pytest. - CI runs the test suite on Python 3.10 and 3.12, and runs the quick start from the built wheel in an empty directory.
- Repository links point at
Valen-Team/Roller.
See Getting started for the first collection, or the README · 简体中文.
Full changelog: v0.2.0...v0.2.1
Roller v0.2.0
Roller runs tool-using agents in disposable Docker containers and records what they do. Users supply tasks and custom environments; Roller collects the complete agent trajectory and evaluates the task result.
This is the first tagged release.
Supported runtimes and benchmarks
Harnesses (7): OpenClaw (default), Codex, Claude Code, Hermes, OpenCode, DeepSeek Harness, Pi Agent. All seven read the same task format, are selected with --harness, and produce samples in the same directory layout. Any of them can act as the Task Agent or the User Simulator.
Benchmark adapters (4): WildClawBench, SkillsBench, PinchBench, QwenClawBench. roller collect --bench converts the benchmark's tasks, collects the trajectories and runs each grader in the container where the task ran, before teardown.
What a run produces
Each rollout is stored as a sample containing the Harness-native session (trace.jsonl), a normalized trace (trace_ACTF.json), an SFT record (trace_SFT.json), the files the agent wrote (results/) and run metadata (info.json). Run-level sft.jsonl aggregates the training records.
Produced under specific conditions: sft_segments/ when the Task Agent compacts its context (with --capture-calls), wire_trace.jsonl with --wire-trace full, and conversation.json for User Simulator tasks.
Capabilities
- Batch collection. Rollouts run in parallel across tasks and models.
--retries Ngives each failed rollout up to N more attempts. - Resume. Inputs are snapshotted and hashed before a container starts, and
lock.jsonrecords the settings that determine sample content.--resumeskips completed samples and reruns the rest; if a recorded setting has changed it reports the difference and exits. - Multi-turn and User Simulator. User turns are predefined in the task, or generated by a second model running in its own Harness that decides when the task is done.
- Viewer.
roller viewserves a read-only web interface for browsing tasks, comparing models and inspecting each step. No additional dependencies; listens on127.0.0.1by default.
Requirements
Python 3.10 or later and a running Docker daemon.
git clone https://github.com/Valen-Team/Roller.git
cd Roller
python -m pip install -e .See Getting started for the first collection, or the README · 简体中文.
Notes
The project is in Alpha; the task schema is roller.task/v1. 624 tests pass on Python 3.12. Licensed under Apache 2.0.
Roller runs third-party agent runtimes and benchmarks, which keep their own licenses.