The baton
Checkpoints
A git ref through a throwaway index. HEAD and your branch never move.
A checkpoint is a snapshot of your whole working tree at the moment Claude Code stopped, kept in git where you can inspect it and go back to it.
How it is made
- Git reads
HEADinto a throwaway index file inside.frontier/baton, not your real index. - Relief runs
git add -Aagainst that throwaway index. Tracked changes and new files that are not ignored are included. - Files that hold secrets (
.env, key files and the like) are removed from the throwaway index. They are listed inlatest.jsonas skipped, never read. - Git writes a tree and makes a commit on top of
HEAD, with the messageFrontier baton checkpoint <stamp>. refs/frontier/baton/<stamp>is pointed at that commit, and the throwaway index is deleted.
Your working tree, your real index, HEAD and your branches are never touched. Every git call uses a fixed argument list and no shell.
A checkpoint needs a git repository with at least one commit. Without that, the baton says so and the takeover offers Here only.
Look at it
git for-each-ref refs/frontier/baton # every checkpoint
git diff refs/frontier/baton/<stamp> # what changed since the checkpoint
git show --stat refs/frontier/baton/<stamp> # what the checkpoint holdsgit diff compares the checkpoint with your working tree, so it shows changes to files git already knew about. A brand new file that has not been added yet appears in git status, not in the diff.
Because it is an ordinary commit, you can also copy a file back from it:
git restore --source refs/frontier/baton/<stamp> -- path/to/fileReuse
A limit is often reported more than once, because Claude Code retries or you type again while it is out. The baton opened for the first report is reused for six hours, so there is no second checkpoint and no second window.
Cleaning up
Nothing is pruned for you. Delete a checkpoint you no longer need with git update-ref -d refs/frontier/baton/<stamp>.