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

# Checkpoint and resume

> Record Git state and see what changed before work continues.

# Checkpoint and resume work

## Save a checkpoint

Run this inside or against the repository you are working on:

```bash theme={null}
termyte task checkpoint \
  --task <task-id> \
  --workspace C:\path\to\repo \
  --platform codex
```

Supported platform values are `claude-code`, `codex`, `opencode`, and `raw`. You can also add `--session <session-id>`.

A checkpoint records the current branch, commit, dirty state, changed and deleted paths, untracked paths, and merge conflicts. It does not store the contents of your Git diff.

## Resume

```bash theme={null}
termyte task resume \
  --task <task-id> \
  --workspace C:\path\to\repo
```

The resume packet starts with the current task record. It then reports drift from the latest checkpoint, recent failures and decisions, and the next pending or active step.

If the branch, commit, changed paths, deleted paths, or conflicts no longer match the checkpoint, the packet says so. Review that drift before editing files.

<Note>
  Without `--workspace`, Termyte can still return task state, but it cannot compare the current Git checkout with the checkpoint.
</Note>
