﻿---
title: "恢复与隔离"
description: "分别使用 Checkpoint、Rewind 和 Worktree 控制文件状态。"
image: "https://kxen.ai/og.png"
---

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

# 恢复与隔离

这三个能力解决不同问题:

- [Checkpoint](https://kxen.ai/recovery/checkpoint) 记录可恢复状态。
- [Rewind](https://kxen.ai/recovery/rewind) 回到指定消息。
- [Worktree](https://kxen.ai/recovery/worktree) 隔离并行修改。

它们都涉及文件状态，但不会替代用户自己的 Git 提交和分支管理。

<pre class="mermaid">{`
flowchart LR
  Change["文件变化"] --> Checkpoint["Checkpoint"]
  Checkpoint --> Continue["继续执行"]
  Continue -->|"回到指定消息"| Rewind["Rewind"]
  Continue -->|"隔离并行修改"| Worktree["Worktree"]
  Rewind --> Restore["恢复文件和对话视图"]
  Worktree --> Integrate["审查后合并修改"]
`}</pre>

Source: https://kxen.ai/recovery/index.mdx
