CRYO

Your agent died at 3am.
It didn't notice.

Cryo freezes running agents on Fly.io Sprites to disk and brings them back after the Sprite restarts, or on another Sprite. Same memory, same conversation.

Core temp37.0°C
Agentthinking
Memory190 MB in RAM
● LIVE
claude · tmux · cryo-lab● running
› Remember this codeword: PINEAPPLE-42.
● Got it. PINEAPPLE-42.
› And a second one: MANGO-7. Keep both.
● Noted, both are in memory.
cryo: saved to disk · Claude paused 0.26s · 190 MB
cryo: thawed in 0.17s · same pid · same memory
› What were the two codewords?
● PINEAPPLE-42 and MANGO-7.
190 MB of a mind, frozen to disk
I · Alive
II · Pause
III · Death
IV · Cryo
V · Thaw

Claude Code on a Fly.io Sprite, holding things only it knows.

Nobody types for a while. The Sprite pauses to save money.

The pause goes cold. Every process on the machine dies.

But seconds earlier, cryo froze its whole mind to disk.

The Sprite wakes. The agent is back, mid-sentence.

Replay of a real run on cryo-lab. Same codewords, same timings.
how it works ↓
How it works

Freeze, die, thaw. Or move.

CRIU copies a running process, every page of its memory, to disk. cryo decides when, and puts it back.

cryo-lab-2running
memory
disk
cryo-labrunning
memory
disk
up 6 h
up 17 h
claude 190 MB
claude on disk
1

Freeze

After the agent does real work, cryo copies it to disk. It's paused for about 0.26 s.

2

Die

The Sprite goes cold, moves host or is restored. Every process is gone. The disk isn't.

3

Thaw

On boot, cryo restores the copy: same process, same memory, mid-sentence.

4

Teleport

Or ship the copy to another Sprite and thaw it there. Only toward a Sprite whose clock is ahead.

Dive log

Seven walls the docs don't mention.

Freezing a process on a Sprite with CRIU, and moving it to another one, hit seven walls. Here is each one, and the way around it. A few of them may be news to Fly too.

depth01

Root can't trace other users

Sprites drop CAP_SYS_PTRACE, so CRIU can't freeze anything the sprite user owns.

agents start as root, the same owner as CRIU
depth02

Time can't be restored

No CAP_SYS_TIME, so restoring a time namespace fails outright.

drop the timens image; the clock just jumps
depth03

File watches can't reopen

No CAP_DAC_READ_SEARCH, so inotify watches can't be reopened by handle. Claude Code watches its settings.

a seccomp filter hides inotify; agents fall back
depth04

The disk lies about devices

On the overlay root, folders report one device and files another, so watched files can't be found. io_uring can't be dumped at all.

the same filter switches off inotify and io_uring
depth05

Restore keeps the boot_id

It restarts the container, not the kernel, so "did we reboot?" says no.

pair boot_id with PID 1's start time
depth06

Timers only tick while awake

A paused Sprite freezes every process, so "every 60 seconds" can mean an hour.

snapshot after real work, measured in CPU time
depth07

Clocks don't travel between Sprites

Every Sprite's monotonic clock counts from its own boot, and without a time namespace a moved process can't be given its old clock. Land on a Sprite that booted later and every timer in the agent waits for hours. We moved Claude to a younger Sprite and it froze mid-sentence; moved toward the older one, it answered at once.

teleport checks both clocks and only lands agents moving forward in time
Bring your own agent

Give yours a second life.

One Python file on top of CRIU and two Sprite services. When an agent comes back, or lands on another Sprite, cryo emails you through the Resend connector, and the key never touches the machine.

# on any Sprite sudo apt-get install -y criu tmux git clone https://github.com/miracle352/cryo && cd cryo && sudo ln -sf "$PWD/cryo" /usr/local/bin/cryo sudo env PATH="$PATH" HOME=$HOME IS_SANDBOX=1 cryo run myagent --tmux -- claude sudo env PATH="$PATH" HOME=$HOME cryo install --api # freeze after work, thaw on every boot sudo cryo alerts --email you@example.com # "your agent survived a restart" sudo cryo teleport myagent # move it, alive, to another Sprite
0s to thaw Claude Code
0s to thaw a Node server
0MB of memory kept
0walls found and beaten

You were gone 0s.

this page was frozen. nothing was lost.