Save session checkpoint
save_session_checkpointSave session goal, progress, and modified files to a .claude-checkpoint file so a new session can resume after crashes, /clear, or context limits without re-exploring.
Instructions
Save the current session's goal, progress, touched files and recent commands to a .claude-checkpoint file in the project, so a new session can resume after a crash, /clear, or context limit without re-exploring. Call after finishing a milestone, before risky operations, and when the conversation is getting long. Git branch, HEAD and uncommitted files are captured automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | The primary objective of the session, in one or two sentences. | |
| mode | No | replace: overwrite the checkpoint. merge: update the existing one, appending commands, decisions and files. | replace |
| tasks | No | Sub-goals with their status. In merge mode, tasks with the same description are updated. | |
| summary | No | Where things stand: what works, what is broken, what you were in the middle of. | |
| decisions | No | Key decisions, constraints, and dead ends to avoid repeating. | |
| nextSteps | No | Concrete next actions, in order, for whoever resumes. | |
| projectRoot | No | Absolute path of the project. Defaults to the client's workspace root or the server's working directory. | |
| modifiedFiles | No | Files you changed, with an optional note. Uncommitted git changes are detected automatically; list files here to annotate them or to include committed ones. | |
| recentCommands | No | Recent significant terminal commands (builds, tests, migrations), oldest first, with exit codes and a short note on the outcome. Secrets are redacted automatically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| path | Yes | ||
| bytes | Yes | ||
| counts | Yes | ||
| warnings | Yes |