Vercel Open-Sources durable-harness for Crash-Proof Coding Agents

Vercel has released durable-harness, an open-source package that keeps coding agent sessions alive through crashes and timeouts.Vercel durable-harness wraps existing harnesses, including Pi, OpenCode, Claude Code and Codex, without changing them.
Each session lives in a durable log.A dead function no longer means lost work.For teams moving agents off laptops and into the cloud, that closes a real gap.
durable-harness is a set of adapters from Vercel that store a harness session in a Workflow SDK World. A World bundles storage, a queue and a stream behind one interface. The package uses the same machinery that powers Vercel’s Workflow SDK.
Harnesses like Pi and Claude Code were designed as long-lived local processes. They keep the session in memory. Locally, the workspace and history sit on the same disk, so resuming takes 1 prompt. In the cloud, a VM with persistent storage does not track which calls completed. Vercel team notes a failed turn or network error then means lost work.
It writes each step of a turn to a durable log. Before a model or tool call runs, it records an intent. When the call finishes, it records the outcome. Each turn is backed by a message on Vercel Queues. If the function dies, the queue hands the turn to a new function. That function reads the log and continues.
After a crash, the log shows what finished, what was running and what never started:
Harness session files are mirrored into the log as well. That covers Claude Code’s transcript, Codex’s rollout and OpenCode’s event store.
Model-chosen commands never run on the function’s own disk. The tools docs list 3 workspace options:
Typed JSON documents, such as a to-do list, also live in the log. Each holds at most 64 KB.
The agent code stays the same across Worlds:
2 environment variables, WORKFLOW_TARGET_WORLD and WORKFLOW_POSTGRES_URL, move an agent to Postgres.
Check out the GitHub repo, docs and Vercel’s announcement. All credit goes to the researcher of this project. Wait! are you on telegram? now you can join us on telegram as well.
Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.
Datalab Releases OmniParseBench: An Open OCR Benchmark With 16,288 Pass/Fail Tests
The newsletter 70,000+ AI builders read. Model releases, tools and research, without the hype.
Practitioner-first AI/ML news and analysis, read by 1M+ developers and researchers every month.