Checkpoints before every turn

Before each message you send, microManager saves a snapshot of the whole worktree, including uncommitted and untracked files, as a hidden git commit. If a turn goes wrong, choose Revert to here on that message and the files go back to exactly how they were.

Updated

How does a checkpoint work?

Just before your message goes to the agent, microManager records the worktree’s state as a git commit object, using a temporary index so your own staging area is untouched:

  1. it adds every tracked and untracked file to the temporary index, leaving out ignored files and the shared .context/ folder,
  2. writes it as a tree and a commit whose parent is your current HEAD, and
  3. stores it under refs/micromanager/checkpoints/<session>/<sequence>.

Your branch, your staged changes and your working files do not change.

How do I roll back?

Each of your messages in the chat has Revert to here, which shows when you point at the message. It is available once the running turn ends, and refused while another chat of the workspace is running a turn. After you confirm, microManager:

  1. saves the worktree as it is now under another hidden ref, shown in the chat as Files from before with a button to copy it, so the revert itself can be undone with git,
  2. puts the snapshot’s files back in the worktree,
  3. removes untracked files that were not in the snapshot (ignored files and .context/ stay), and
  4. moves the branch back to the commit it was on at that moment.

The chat’s later messages are marked as reverted, so it is clear which part of the conversation no longer matches the files. Claude Code sessions are also rewound to that point when the installed Claude Code supports it, so the agent continues from the same state as the files.

When should I use a checkpoint instead of asking the agent to undo?

When the agent changed many files, deleted something, or went down a wrong path for several turns. Asking an agent to undo its own work is slow and often incomplete; a checkpoint puts back exactly what was there, byte for byte.

Do checkpoints work with every agent?

Yes. Snapshots are made by microManager with git, before the message is sent, so they work the same for Claude Code, Codex and ACP agents. Only the chat rewind described above depends on the agent.

Where to go next

Frequently asked questions

Do checkpoints create commits on my branch?

No. A checkpoint is a commit object stored under refs/micromanager/checkpoints, outside your branches. It never appears in git log for your branch and is never pushed.

Are ignored files included?

No. Like git itself, a checkpoint leaves out files your .gitignore excludes, such as node_modules or .env, and reverting leaves them alone.

How long are checkpoints kept?

Until the workspace is archived. Archiving deletes that workspace's checkpoint refs.

Get microManager

Free, no account, for macOS, Windows and Linux. It runs the agent CLIs you already have installed and signed in.

curl -fsSL https://micromanager.win/install.sh | sh

That installs it on macOS and Linux. On Windows, paste this into PowerShell:

irm https://micromanager.win/install.ps1 | iex