> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lukan.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkpoints

> Track file changes and restore previous versions.

Checkpoints are created automatically after file-modifying tool calls (WriteFile, EditFile). Each checkpoint records:

* File snapshots (before/after content, unified diff)
* Operation type (created, modified, deleted)
* Line statistics (additions/deletions)
* Associated user message and timestamp

## Accessing Checkpoints

* Press **Escape** twice or use `/checkpoints` to open the checkpoint viewer
* Navigate with **Up/Down**, press **Enter** to view diff or restore

## Checkpoint Viewer

In the checkpoint viewer:

* **Up/Down** - Navigate checkpoints
* **Enter** - View diff / restore options
* **Escape** - Back / close

Each checkpoint shows:

* Timestamp
* File path
* Operation type (created/modified/deleted)
* Line changes (+/-)

You can restore a checkpoint to revert to the previous state.
