r/opencode • • 29d ago

Runward 0.2.0: a local timeline for OpenCode session exports (MIT)

I'm the maintainer of Runward. I added an OpenCode reader so an exported session can be inspected as a waterfall, console, and event timeline alongside recordings from other coding tools: https://github.com/K-kiron/runward

The reader accepts both nested v1 exports and flat-message v2 exports, plus JSONL from `opencode run --format json`. Explicit tool times are retained; missing times remain observation instants. A completed step isn't treated as a passed check or an idle session.

For an existing session, v2 uses `opencode session export SESSION_ID > session.json`; v1 uses `opencode export SESSION_ID > session.json`. Then, from the Runward directory, run `node cli.mjs --watch "opencode=/absolute/path/session.json"`. Exports are snapshots, so export again to refresh the file. Current v2 exports omit unsettled assistant messages upstream; live JSONL capture is an alternative.

To see the UI first, clone the repo and run `npm run demo` (Node.js 22+), then open http://127.0.0.1:4317. No model account or API key is needed for the synthetic demo. Runward has no runtime dependencies and makes no outbound requests; it reads only files you explicitly select and doesn't execute agent tasks.

This OpenCode adapter has synthetic tests based on the official schemas; I haven't validated it against a real model-backed OpenCode session yet. I'm looking for feedback on actual export compatibility and useful timeline details. Please share the producer version, OS, and a minimal synthetic reproduction rather than private raw logs; imported logs aren't automatically redacted.

Capture commands and boundaries: https://github.com/K-kiron/runward/blob/main/docs/adapters.md

Small parser regression tests and capture-doc fixes are welcome.

1 Upvotes

0 comments sorted by