Answer: Enable checkpointing in your SDK options by setting `enable_file_checkpointing=True` (Python) or `enableFileCheckpointing: true` (TypeScript), and also set `extra_args={"replay-user-messages": None}` (Python) or `extraArgs: { 'replay-user-messages': null }` (TypeScript) to receive checkpoint UUIDs in the stream. Status: Confirmed Entry: tool/claude-code/agents-and-automation/enable-file-checkpointing Revision: 2 Digest: sha256:3fa9591aad9ab260 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:43Z Last changed: 2026-11-15T12:15:59Z (CLI environment variable: CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING → —) Last verified: 2026-11-20T12:16:34Z Next check: 2026-11-21T12:16:34Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Python option | enable_file_checkpointing=True | [1] | 2026-11-20 TypeScript option | enableFileCheckpointing: true | [1] | 2026-11-20 Python replay option | extra_args={"replay-user-messages": None} | [1] | 2026-11-20 TypeScript replay option | extraArgs: { 'replay-user-messages': null } | [1] | 2026-11-20 Sources: [1] Anthropic. "Rewind file changes with checkpointing". https://code.claude.com/docs/en/agent-sdk/file-checkpointing.md Role: primary. Accessed: 2026-11-20T12:16:34Z Quote: "| Enable checkpointing | `enable_file_checkpointing=True` |" (Supports: Python option) Quote: "`enableFileCheckpointing: true` | Tracks file changes for rewinding" (Supports: TypeScript option) Quote: "| Receive checkpoint UUIDs | `extra_args={"replay-user-messages": None}` |" (Supports: Python replay option) Quote: "`extraArgs: { 'replay-user-messages': null }` | Required to get user message UUIDs in the stream" (Supports: TypeScript replay option) Published: 2026-11-20T03:01:08Z Snapshot SHA-256: 004c69ad606b2e96872840ecf1a1bb63068e55c29a488d351ba2d38fba3ca760 (captured 2026-11-14T12:12:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-14T12:12:09Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:16:34Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:34Z Last attempt: 2026-11-20T12:16:34Z Notes and limitations: Extracted automatically from a single official source (section "Implement checkpointing"). Related: https://latestn.com/tool/claude-code/agents-and-automation/enable-streaming-output How do I enable streaming output in the Claude Code Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/enforce-rules-with-hooks How do I enforce rules that can't have exceptions in Claude Code using hooks? https://latestn.com/tool/claude-code/agents-and-automation/filter-hook-events How do I filter which events a Claude Code mod hook handles? https://latestn.com/tool/claude-code/agents-and-automation/dispatch-agent-from-shell How do I dispatch a new background agent from the Claude Code shell? https://latestn.com/tool/claude-code/agents-and-automation/display-todo-progress-realtime How do I display Claude's todo progress in real time in my application using the Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/enable-agent-teams How do I enable agent teams in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:15:59Z | changed | CLI environment variable: CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING → — | [1] 2026-11-13T03:02:43Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/enable-file-checkpointing/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/enable-file-checkpointing POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/enable-file-checkpointing with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/enable-file-checkpointing?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable file checkpointing in the Claude Code Agent SDK? Revision 2, last verified 2026-11-20T12:16:34Z. https://latestn.com/tool/claude-code/agents-and-automation/enable-file-checkpointing (accessed 2026-11-21T10:02:17Z). @misc{LatestN_tool_claude_code_agents_and_automation_enable_file_checkpointing_r2, title = {How do I enable file checkpointing in the Claude Code Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/enable-file-checkpointing}}, note = {Revision 2; digest sha256:3fa9591aad9ab260; last verified 2026-11-20T12:16:34Z; accessed 2026-11-21T10:02:17Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/enable-file-checkpointing