Skip to content
Empryo

Checkpoints

Undo, redo and rewind agent work, or edit, rewind and resend any prompt. Step back through past turns and restore files and the conversation.

Tools4 minutes to read
Copy & share
On this page9 sections

Checkpoints let you undo what the agent did. Every time you send a prompt and the agent finishes responding, Empryo saves a checkpoint. You can look back at any of them, undo to one, or start over from an earlier point with a new message.

Use them when the agent went in the wrong direction and you want to return to where things were good.

Look backLink to this section

In the terminal UI, press Ctrl+B to step back one checkpoint and Ctrl+F to step forward.

ShortcutAction
Ctrl+BView the previous checkpoint
Ctrl+FView the next checkpoint, or return to live

While you're viewing a past checkpoint, later messages are dimmed and a marker appears:

↶ Viewing checkpoint #2, send a message to rewind here.

Looking is read-only. No files change. Press Ctrl+F past the last checkpoint to go back to live.

Try again from an earlier pointLink to this section

Send a message while you're viewing a past checkpoint, and the conversation continues from there. The model forgets everything after that point. The later messages stay visible, dimmed, so you can still read them.

This is the quickest way to recover from a wrong turn: go back to the last good point and ask for something different.

Edit, rewind or resend a promptLink to this section

Every prompt you sent has three actions:

ActionWhat happens
EditPuts the prompt back in the box. When you send, it replaces the original and everything after it
Rewind hereRemoves everything after that prompt and sends it again
ResendSends the same prompt, with its files and images, again at the end of the chat. Nothing is removed
WhereHow
DesktopThe pencil next to a prompt edits it. The arrow beside it has Rewind here and Resend
TerminalHover a prompt: Edit, Rewind here, resend and Copy sit in a row under it
iPhone and AndroidLong-press a prompt

Edit and Rewind here change the conversation only. Files the agent changed stay as they are; use undo to restore them.

Turn off automatic snapshotsLink to this section

To restore files, Empryo saves a private git snapshot after each turn that edits them. These are refs under refs/empryo/, not tags, so they do not show in git tag and are never pushed. To stop them, turn off Checkpoint snapshots in the desktop app (Settings → General → Session log), pick checkpointSnapshots in the terminal's /settings → All settings, or set "checkpointSnapshots": false in your config. Viewing a past checkpoint and sending a message from it still works. /checkpoint undo refuses, leaving files and conversation unchanged, when it would have to restore a file through a turn that has no snapshot, so it never brings back an older version than the one you picked. /checkpoint still saves a snapshot when you ask, and an undo that goes ahead still saves a redo snapshot.

Undo and redoLink to this section

/checkpoint undo reverts the last checkpoint. It rewinds the conversation and restores the files the agent changed.

CommandWhat it does
/checkpointList all checkpoints
/checkpoint NView checkpoint N
/checkpoint liveReturn to the live view
/checkpoint undoUndo the last checkpoint
/checkpoint undo NUndo back to checkpoint N
/checkpoint redoRedo the last undone checkpoint
/checkpoint saveSave a snapshot of the current state now

Undone turns stay in the chat, dimmed, below a marker:

↶ Rewound past this point.

The checkpoint railLink to this section

A narrow rail along the right edge of the chat shows one mark per checkpoint. The terminal UI and the desktop app both have it.

  • A spinner marks the checkpoint that's still running.
  • The latest checkpoint is drawn as a diamond.
  • A filled dot means that turn edited files. A hollow dot means it didn't, or that it was undone.
  • The checkpoint you're currently viewing is highlighted.

If there are more checkpoints than fit, +N counts show how many are hidden above and below. The rail scrolls to follow you.

How files are restoredLink to this section

When a turn that edited files finishes, Empryo saves that state as a private snapshot under refs/empryo/. Undo restores only the files edited in the turns you undid. Other files, including ones another tab is working on, are left alone.

Sessions and tabsLink to this section

Checkpoint snapshots are saved with the session and come back when you reopen it. Deleting a session removes its snapshots.

Each tab has its own checkpoint history. Undoing in one tab doesn't affect any other tab.

Messages sent while the agent worksLink to this section

If you type a message while the agent is still working (steering), it doesn't create a new checkpoint. It becomes part of the checkpoint that's running.