#!/usr/bin/env bash # Continue an exact native session, or hand the readable progress record to a new Reach receiver. # Exit 0: a conversation continued/rebuilt (the next action may remain unfinished). # Exit 1: no recovery completed, lost task data, or an unresolved release. Exit 2: usage. set -Eeuo pipefail usage() { local status="${1:-2}" cat >&"$((status == 0 ? 1 : 2))" <<'USAGE' usage: sno rotate-agent-resume --to claude-code|codex|cursor|hermes|openclaw [--model ] [--provider

] --cwd --checkpoint --work