Skip to main content

Roller 0.8.0 — OpenCode and Pi import, Codex and OpenCode in remote sandboxes

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 bench reports and compaction window diagnostics.

Highlights​

  • OpenCode session import (roller import --harness opencode). Roller reads the root sessions of OpenCode's SQLite database, opencode.db under $OPENCODE_DATA_DIR, $XDG_DATA_HOME/opencode or ~/.local/share/opencode, or a database or data directory passed on the command line, including the older storage/ layout. Each session becomes a sample with its native record as trace.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-completions translation. See the Codex and OpenCode guides.

Added​

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 in window_break in the sample's trajectory.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 tokens writes an empty tokens.jsonl and reports zero counts for imported runs without recorded token IDs.
  • roller import --harness opencode keeps 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