Making every harness durable
- article
- Saved
Written by AI
- TLDR
- durable-harness lets Pi, OpenCode, Codex, and Claude Code resume cloud work after crashes, disconnects, and function timeouts.
- Best for
- Developers running long-lived coding agents in the cloud
- The tip
- Use the durable log to resume interrupted turns without repeating completed work.
- What you need
- A coding-agent harness
- Vercel or your own Postgres instance
- Start here
- Choose a harness to run durably
- Configure Vercel or your own Postgres instance
- Run a task and test recovery after an interruption
- Filed note
- Vercel's durable-harness lets Pi, OpenCode, Codex, and Claude Code resume long-running work after crashes and function timeouts.
articleThe source
- Highlights
With `durable-harness`, a new function reads completed results from the log and resumes the turn.
Interrupted work resumes without replaying finished steps.
If the browser disconnects, the agent keeps running, and reconnecting catches up from the log.
The agent is not tied to an open client connection.
- 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.
From vercel.com