# Making every harness durable

DevFeed: [Making every harness durable](<https://devfeed.tech/articles/making-every-harness-durable-91278.md>)

Original publisher: [Read original article](<https://vercel.com/blog/making-every-harness-durable>)

Author: Eric Dodds

Published: 2026-10-19T13:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [Multi-step AI processes](<https://devfeed.tech/topics/multi-step-ai-processes.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-workflows](<https://devfeed.tech/tags/agent-workflows.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [code](<https://devfeed.tech/tags/code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [crash](<https://devfeed.tech/tags/crash.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [database](<https://devfeed.tech/tags/database.md>), [durability](<https://devfeed.tech/tags/durability.md>), [eve](<https://devfeed.tech/tags/eve.md>), [fx](<https://devfeed.tech/tags/fx.md>), [harness](<https://devfeed.tech/tags/harness.md>), [network](<https://devfeed.tech/tags/network.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [pi](<https://devfeed.tech/tags/pi.md>), [postgres](<https://devfeed.tech/tags/postgres.md>)

## AI overview

`durable-harness` makes supported coding-agent harnesses resume after crashes or timeouts by logging each model and tool call's intent and result, with a queue handing interrupted turns to a new function. Completed calls are read from the log; interrupted tools marked `safe` can rerun, while other tools are presented to the model as possibly executed so it can decide whether to check. It supports Vercel, local development, and self-hosted Worlds including Postgres, MongoDB, Redis, or Turso. Workspace choices range from logged virtual files for short tasks to a persistent Vercel Sandbox for larger or longer-running work. Claude Code and Codex require a Vercel Sandbox for their built-in shell and filesystem tools; Pi and OpenCode have other workspace options. The excerpt says credentials for database and API work can stay in functions rather than entering a sandbox.

## Source excerpt

Developers are familiar with running coding agents locally through harnesses like Pi, Claude Code, and others. They are reliable daily drivers for generating code, but keeping agents running around the clock requires your computer to be on and awake, which led to the laptop lid memes and Mac mini demand spike. Running harnesses in the cloud Harness workloads are moving to the cloud. Individual developers are deploying always-on coding agent workflows, projects like OpenWork and HanaAgent use open-source harnesses as the engines behind the apps, and engineers are building their own harness products. These harnesses are designed for long-lived processes that keep the session in memory, and agent tasks commonly run for minutes or hours. Locally, a harness has direct, continuous access to the workspace and session history on the same disk, so resuming interrupted work only requires a simple prompt. In the cloud, you can replicate that setup with a VM and persistent storage, but the VM doesn't automatically record which model and tool calls completed or resume interrupted turns after a crash. A failed turn or network error means lost work. Also, not every agent task executed through a harness needs a sandbox. Database queries and API calls can run securely in functions, and that also means required credentials never have to enter the sandbox. Making every harness durable We built eve and fx to run durably in the cloud out of the box, and today we are introducing durable-harness, which extends that durability to any harness, including Pi, OpenCode, Codex, and Claude Code. It uses the same machinery that powers Workflow SDK to survive crashes and function timeouts. With durable-harness, you can: Run any of these harnesses durably on Vercel Self-host a harness with your own Postgres instance Make your local harness workflow durable Build your own durable harness Sessions that survive a crash mid-turn Take the example of a coding agent adding a pricing page to an existing ap