Checkpoints & Rewind
Before affer writes or patches anything, it hashes the existing content with SHA-256 and stores a snapshot locally. Break a test or go the wrong direction? Open the /rewind modal and restore your file to any earlier turn. Your git history stays untouched.

How checkpoints work
Section titled “How checkpoints work”- Every time a write, edit, or patch tool runs,
afferrecords the prior file contents keyed by their SHA-256 digest. - Checkpoints stay inside your local data directory (overridable via
--data-dirorAFFER_DATA_DIR). - Selecting an earlier turn in
/rewindrestores the exact bytes on disk for the files modified after that point.
Combining rewind with session forks
Section titled “Combining rewind with session forks”If you want to keep your current branch of work while trying a different approach from an earlier turn, fork the session instead of overwriting it:
affer fork <session-id> --before-turn 4