Claude Code deletes your sessions after 30 days.Packbat keeps them.
Free, open source, and yours. Put the file back and the harness resumes it.
works with claude code · codex · opencode · gemini cli · pi
Set it up once.
The wizard finds your harnesses, creates the archive, and installs the schedule.
$ packbat initChoose the archive location. Add an encrypted remote or skip it. Packbat runs the first sync and checks itself.
Every hour, the archive catches up.
New and changed sessions
A cheap stat walk finds only what needs archiving.
Compressed verbatim
The raw file is kept in its native shape and scoped to this machine.
Caught up after sleep
The schedule runs again at login or wake, so missed hours do not become gaps.
Bring the thread back.
Restore returns every file to the exact place its harness expects, then prints the resume command.
$ packbat restore c5de331arestored 3 files to ~/.claude/projects/…restored 3 files to ~/.claude/projects/-Users-liam-projectsclaude --resume c5de331aYour remote never sees a session.
Packbat encrypts every off-box copy before upload. The recovery kit holds the only key.
on this machine
Raw archive and the public encryption recipient.
on your remote
Ciphertext only. S3-compatible storage, SFTP, or any rclone remote.
with you
The recovery kit. Keep a copy off the machine.
Doctor watches the whole loop.
$ packbat doctor