piagent_
← ~/map

$ cat ~/map/durable-harness.md

durable-harness

Runs pi and other coding agents as resumable workflow runs — a crash mid-turn picks up from the event log.

tools✓ Oct 19

Facts

repository
github.com/vercel-labs/durable-harness ↗
GitHub Stars
★ 293
Forks
19
license
Apache-2.0
npm / mo
—
last push
Nov 4, 2026

install

npm install durable-harness @earendil-works/pi-durable @earendil-works/chord @earendil-works/pi-ai just-bash

## TL;DR

Vercel Labs' experimental library that runs coding-agent harnesses — pi via its own durable Harness — as workflow runs on a Workflow SDK World, where the conversation, the turn in flight, and every model and tool call land in an event log a crashed run resumes from.

## Key points

## FAQ

Q Does durable-harness support only pi?

No. Harness adapters ship for pi, OpenCode, libfx's fx, Claude Code, and Codex, each through its own subpath import; the Claude Code and Codex runs are confined to the session's own Vercel Sandbox.

Q What happens when a run crashes mid-turn?

The turn resumes from the run's event log, possibly on another machine, and a tool call that is not safe to repeat is never executed twice.

## References

## Related entries

Last updated: Nov 4, 2026