Use Rift workspaces as the worktree backend in OpenCode V2.
npm install -g rift-snapshot@0.0.13
rift init
opencode plugin add 'github:anomalyco/rift#v0.0.13::path:plugins/opencode'OpenCode's workspace UI then creates Rift workspaces, and agents get rift.create, rift.list, and rift.remove.
Move sessions with OpenCode's opencode.session_move tool.
copyAll: exact snapshots instead of filtered ones.hooks: run.rift.tomllifecycle hooks. Hook output is not streamed; failures include its last 8 KiB.executable: Rift binary to run.database: non-default Rift registry.
- Starting refs are not supported; Rift snapshots a working directory, not a commit.
- Remove a workspace's child Rifts before removing it.
rift.removerefuses to remove the workspace the current session is in.- Windows can't create workspaces, because Rift needs copy-on-write cloning.
{ "plugins": [ { "package": "github:anomalyco/rift#v0.0.13::path:plugins/opencode", "options": { "copyAll": false, "hooks": true, "executable": "rift", "database": "/path/to/rift.sqlite" } } ] }