Vercel's open-source durable-harness lets Pi, OpenCode, Claude Code, and Codex survive crashes mid-turn
It logs an intent before every model and tool call and the outcome after, with a queue message behind each turn, so a dead function hands off to a new one that resumes from the log without re-billing finished calls; only tools marked replay: 'safe' rerun, and others return to the model as "possibly run." Sessions live on Vercel, local files, or self-hosted Postgres, though Claude Code and Codex support is experimental and runs only inside a Vercel Sandbox (docs).