Highlights
- OpenCode session import (
roller import --harness opencode). Roller reads the root sessions of OpenCode's SQLite database,opencode.dbunder$OPENCODE_DATA_DIR,$XDG_DATA_HOME/opencodeor~/.local/share/opencode, or a database or data directory passed on the command line, including the olderstorage/layout. Each session becomes a sample with its native record astrace.jsonl, ACTF and usage; subagent sessions are counted and left out. A session without context compaction also exports linear SFT. See Session import. - Pi session import (
roller import --harness pi). Native Pi v1.6.1 sessions keep their original JSONL, and the Viewer shows the raw history of the branch Pi reopens. Text Chat Completions sessions with matching captured Calls export verified per-call SFT segments. - Codex and OpenCode in remote sandboxes (
--sandbox-provider NAME --sandbox-template NAME). Single-agent task lists run the pinned CLI in the sandbox, and Roller recovers the task outputs, the native session, ACTF, and the optional wire trace, Calls and token IDs. Codex token IDs use the existing--codex-chat-completionstranslation. See the Codex and OpenCode guides.
Added
roller doctorreports Python,roller-agent, Docker availability, optional extras and sandbox providers.roller bench report --jsonand--format jsonprint the benchmark report JSON to stdout without summary formatting. Both commands are in the CLI reference.examples/cookbook/opencode-local-importgenerates a syntheticopencode.dband walks through the import offline;examples/cookbook/remote-sandbox-codex-opencoderuns one task list with Codex and with OpenCode.
Changed
- Compaction SFT conversion errors 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. See SFT format.
Fixes
roller export --format tokenswrites an emptytokens.jsonland reports zero counts for imported runs without recorded token IDs.roller import --harness opencodekeeps conversations with non-image user attachments. SFT keeps the model-visible text OpenCode saved when there is one, and otherwise reports why the attachment prevents export.
Install
Terminal
uv tool install roller-agent # or: python -m pip install roller-agent