Cubs

Guide 05

What survives a pause, a reset and a deleted machine

Every service says it keeps your files. The useful question is which operation destroys them, and whether you would notice in time — so treat the machine as a cache and Git as the record.

Published 4 Dec 2026

An agent works for four hours, you pause the machine or the session expires, and the diff is gone. Not because anything was lost from disk — the transcript is intact and the conversation resumes — but because the agent’s output only existed as files in a workspace that was replaced. Worth knowing before it happens: which operation removes what.

The five words

These get used interchangeably and mean different things. Read the vendor’s own definition before trusting any of them.

Operation Processes Disk Memory Reversible
Disconnect Keep running Untouched Untouched Yes
Pause / stop Stopped Kept Lost Yes — resume
Idle expiry / reclaim Stopped, then replaced May be replaced with a fresh image Lost Partly; conversation may be restored, files may not
Reset Stopped Wiped, fresh image Lost Only from a backup
Delete Gone Gone, permanently Gone No

The distinction that catches people is between the second and third rows. Pause is a promise about the disk. Idle expiry is a promise about the conversation, which is not the same promise, and a service can honour one and break the other without lying.

How the services differ

The table below describes each service’s documented behaviour, not its marketing. Check the vendor’s page before you rely on a cell.

Service Pause / stop Idle behaviour What a restart loses
Local machine with tmux Manual Sleep ends everything Everything not on disk; nothing if the disk is fine
Plain VPS You stop it Nothing — it bills until you destroy it Processes only
Claude Code cloud sessions VM pauses after a few idle minutes, files saved A paused VM can be reclaimed; reopening provisions a fresh VM Running shell commands, subagents, session-scoped scheduled tasks. Conversation history is restored
GitHub Codespaces Stopped manually or by idle timeout, default 30 minutes Max lifetime of 12 hours regardless of timeout Running processes; the filesystem survives a stop
Cubs Explicit Pause, keeps the disk Nothing — a paused machine stays paused until you resume Processes and memory; disk contents stay

The Codespaces numbers are worth repeating because they are unusually explicit: the idle timeout defaults to 30 minutes and can be set between 5 and 240, and a codespace stops at 12 hours no matter what. An agent on a twelve-hour ceiling needs to commit early and often, not eventually.

The cloud-session row is the one that produced a public report. On 29 October 2026 a Max subscriber filed an issue after a session’s container restarted and the second restart wiped the disk mid-task: five finished but unpushed fixes, a site walkthrough report, an audit, a 75-persona test setup. The transcript survived; the work did not. Whether that was a bug or the documented reclaim path is the vendor’s answer to give. The lesson does not depend on which it was.

Six habits

1. Commit and push as you go

The single highest-value habit, and the one agents skip because “commit” is not in the task. Put it in the project file so it is part of every session:

<!-- CLAUDE.md (or AGENTS.md for Codex) -->
## Working agreement
- Commit after each step that changes behaviour. Small commits, imperative subject.
- Push to the branch after every commit. Do not leave work only on this machine.
- Never `git add -A` in a repository with a dirty tree you did not create.
- If a task will run unattended, commit and push before starting the risky part.

Codex reads AGENTS.md; Claude Code reads CLAUDE.md. If you use both, keep one file and symlink the other so they cannot drift.

2. One branch and worktree per task

A branch that only this task touched is a branch you can throw away without a conversation about which hunks to keep. A worktree per task means two agents cannot write the same file, so a reset costs one task rather than all of them.

git worktree add -b feat/ledger-export ~/work/ledger-export origin/main
git worktree list

3. Keep setup in the repository

If rebuilding the environment takes a forty-line shell history you no longer have, you will not rebuild it after a reset.

# scripts/setup.sh, committed
set -euo pipefail
npm ci
cp -n .env.example .env || true
npm run db:migrate

An agent that has read scripts/setup.sh can bootstrap a fresh machine in one command. An agent that has not will spend its first hour rediscovering the build.

4. Write progress to a file, not to the transcript

Transcripts are restored; process state is not. A short PROGRESS.md in the worktree is what turns “the session died” into “resume at step 4”.

## Ledger export — in progress
- [x] Query builder, pagination fixed
- [x] CSV writer, escaping edge cases
- [ ] Streaming for >100k rows  <- resume here
- [ ] Tests for the empty-export case
Notes: `npm test -- export` is green as of commit 3a1f9c2.

Ask for this explicitly in the task prompt. Models write it reliably when it is part of the deliverable and forget it when it is a suggestion.

5. Back up what is not in Git

Databases, uploaded files, .env values, local SQLite files, anything under ~/ outside a repository. A worktree removal does not touch them; a reset and a reclaim do.

# One archive, outside the machine, on a schedule you will actually keep
ssh you@host 'tar czf - -C ~ reports db/local.sqlite 2>/dev/null' > backup-$(date +%F).tar.gz

If the service offers a backup button, use it before any risky operation — a dependency upgrade, a migration, a reset. A backup you take after the failure is a receipt, not a backup.

6. Know what stops your agents

Write it down once, because the answer changes the habits above. On a laptop it is the lid. On a cloud session it is inactivity. On a codespace it is the twelve-hour ceiling. On a meeting-room Wi-Fi network it is a dropped connection that killed a foreground process. The habit is the same in all four cases — push early — but the trigger differs, and knowing yours is what makes the habit stick.

Where Cubs fits

Pausing a Cubs machine stops the processes and keeps the disk, so the expensive part of a reset — the clone and the install — is not repeated. Files are removed only when you press Delete, and an empty balance auto-pauses the machine rather than deleting anything. Backups are a button on the Machine page and produce an archive of the files, repositories and Git history; reset is still destructive by design, which is why the confirmation names what will be lost.

Questions

Questions

Does pausing a machine delete my files?
On Cubs, no. Pausing stops the processes and keeps the disk, which is why a paused machine still costs a smaller monthly rate. What pausing does lose is everything in memory: running processes, an unsaved editor buffer, a dev server's state. Anything written to disk is still there when you resume.
What is the difference between reset and delete?
Reset returns the machine to a fresh image: new disk, same name, same size, same price. Delete removes the machine and its disk permanently, and nothing restores it. Reset is recoverable only if you took a backup or pushed; delete is not recoverable at all, so the confirmation dialog is the last checkpoint.
How often should an agent commit?
After each step you would want to keep, not at the end of the task. An unpushed commit survives a process dying, a pause and a reboot; an uncommitted edit survives none of those if the disk goes. The cheap rule is: if you would be annoyed to retype it, it should already be in a commit, and preferably on the remote.

Read next

A new home for your agents

A machine that stays on, with your coding agents on it. $25 of credit to start, no card.

Get the download link

Enter your email and we will send the download link when the signed build ships. Open it on a Mac with Apple Silicon.

One message when the build is signed. No newsletter.