Skip to content

About

Durable nanocode agents on Vercel: every SQL write is a step in the session's Workflow run, with durable-harness. A template and a live demo.

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

durable-vercel

Live Demo · How It Works · Guide

nanocode agents in Vercel Functions: one Workflow run per session, with every write to the agent's journal recorded as a step of the run. A template and the source of nanocode.xyz/vercel.

A Function appends each journal write to the Workflow run, and when it dies the queue starts another that replays the run

  • Durable. A Function holds the journal in memory and appends each write to the run with durable-harness. When it dies mid-turn, the queue starts another that replays the log and finishes the turn.
  • No sandbox. Code Mode cells run beside the agent in the Function: bash on a workspace kept in the same journal, git, Python and WebAssembly.
  • One module. The runtime is nanocode-ts, the Rust SDK compiled to WebAssembly. This repository holds the Next.js app around it.

Run It

npm install
npm run dev       # next dev, at http://localhost:3000
npm run drill     # Kill a turn midway and check that it resumes
npx vercel deploy # Deploy to a Vercel project

DECISIONS.md records what each change established, with its measurements.

License

MIT or Apache-2.0.

About

Durable nanocode agents on Vercel: every SQL write is a step in the session's Workflow run, with durable-harness. A template and a live demo.

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages