Agent sessions are exploratory. Sometimes the agent heads down the wrong path, or you want to try a different approach without losing what you have. Kiro gives you two distinct ways to go back: checkpoints restore your files to an earlier point in the session, and a fork starts a new conversation from an earlier turn. In Kiro IDE 1.4.215 or later, the fork is the Fork conversation action; in Kiro CLI it is the /rewind command.
| Capability | IDE | CLI | Web | Mobile |
|---|---|---|---|---|
| Checkpoints - restore files to an earlier point | ✓ | Experimental (v2) | — | — |
| Fork the conversation at an earlier turn | 1.4.215+ (Fork conversation) | ✓ (/rewind) | — | — |
| Revert the last turn's file changes | ✓ | — | — | — |
The two mechanics solve different problems:
- Checkpoints snapshot your files as the agent modifies them. Restoring a checkpoint rolls your workspace back to that point - and rewinds the conversation context along with it, so the agent's understanding matches the restored file state.
- Forking never touches your files. It starts a new session from an earlier turn, leaving the original session and your files on disk exactly as they are. In the IDE, use Fork conversation; in the CLI, use
/rewind.
Reach for a checkpoint when you want to undo the agent's work. Reach for a fork when you want to redirect the conversation - for example, to try a different prompt from the same starting point - while keeping the file changes made so far.
Each time you send a prompt to Kiro, it creates a checkpoint. Checkpoints appear as markers in your chat history. Select Restore on a checkpoint marker to rewind both your codebase and Kiro's context back to that point in time. Any changes made to your codebase by Kiro after that checkpoint are reverted, and any context additions (chat interactions) after that point are discarded as well.
Checkpoints act as a safety net that enables you to confidently explore multiple approaches to a problem, try different models for a given task, and recover from mistakes or misunderstandings by the agent.
In Kiro IDE 1.4.215 or later, Fork conversation starts a new chat from an earlier turn and leaves your files alone. To undo the agent's file changes instead, restore a checkpoint.
- In the chat, find the turn you want to branch from. It can be the latest turn or an earlier one.
- In that turn's footer, select Fork conversation.
Kiro creates a new chat that carries the conversation through the selected turn. In a regular IDE window, Kiro opens the fork. In Agent Focus, the original chat stays selected, so select the new fork before you continue. The original chat stays open and unchanged, and your files on disk stay as they are. To confirm, check that the new chat ends at the turn you selected, then send a different prompt.
Forking is available only for local chats. A fork does not carry the original chat's artifacts. Fork conversation is not offered in workflow step chats, in the Agent Focus details panel, or in a window attached to one cloud session.
Checkpoints work by snapshotting the contents of a file each time the Kiro agent modifies it using one of its built-in file modification tools, and then restoring that snapshot when you revert to that checkpoint.
Kiro does not track changes to a file made outside of the Kiro agent. If Kiro snapshots a file and you then manually edit that same file or run a code formatting tool on it, your changes will be lost when you revert to that checkpoint. Kiro also does not track file changes made by MCP tools or bash commands that it runs as part of its execution.
Whenever the Kiro agent modifies one or more files and then completes its turn, you will see an option to Revert the changes made by the agent immediately above the chat input box.
Reverts are similar to checkpoints, but differ in two key aspects. First, reverts only undo changes made by the latest turn of the agent, whereas checkpoints can undo changes made over multiple turns. Second, reverts only revert file changes, whereas checkpoints undo file changes as well as discard context additions past the checkpoint.
- Session management - saving, loading, and resuming CLI sessions
- Compaction - how Kiro summarizes older history to keep long sessions productive
- Permissions - control what the agent can do before changes happen, rather than undoing them after
Checkpoints and rewind