Skip to content

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.

affer rewind checkpoint modal

  1. Every time a write, edit, or patch tool runs, affer records the prior file contents keyed by their SHA-256 digest.
  2. Checkpoints stay inside your local data directory (overridable via --data-dir or AFFER_DATA_DIR).
  3. Selecting an earlier turn in /rewind restores the exact bytes on disk for the files modified after that point.

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:

Terminal window
affer fork <session-id> --before-turn 4