Answer: You can undo changes by pressing `Esc` twice to rewind to a previous state, or by asking Claude to undo. File edits are reversible because Claude snapshots the current contents before editing a file. Status: Confirmed Entry: tool/claude-code/permissions-and-security/undo-changes-checkpoints Revision: 2 Digest: sha256:58b9db18cfd79625 (changes whenever the content changes) Timeline: Created: 2026-11-15T12:21:27Z Last changed: 2026-11-17T12:26:38Z (Reversibility: — → File edits are reversible.) Last verified: 2026-11-20T12:21:24Z Next check: 2026-11-21T12:21:24Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Undo method | press `Esc` twice | [1] | 2026-11-20 Reversibility | File edits are reversible. | [1] | 2026-11-20 Sources: [1] Anthropic. "How Claude Code works". https://code.claude.com/docs/en/how-claude-code-works.md Role: primary. Accessed: 2026-11-20T12:21:24Z Quote: "press `Esc` twice to rewind to a previous state, or ask Claude to undo" (Supports: Undo method) Quote: "**File edits are reversible.** Before Claude edits a file, it snapshots the current contents." (Supports: Reversibility) Published: 2026-11-20T02:54:35Z Snapshot SHA-256: 8ee7e5187e0bd8b215322665628b34751189339e58e1b27bf84fc17fd31242f6 (captured 2026-11-17T12:26:38Z) 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-17T12:26:38Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:21:24Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:24Z Last attempt: 2026-11-20T12:21:24Z Notes and limitations: Extracted automatically from a single official source (section "Undo changes with checkpoints"). Related: https://latestn.com/tool/claude-code/pricing-and-limits/cap-subagent-depth-concurrency-spend How do I limit subagent depth, concurrency, and spend in the Claude Agent SDK? https://latestn.com/tool/claude-code/pricing-and-limits/check-usage-with-usage-command How do I check my Claude Code token usage and costs with the /usage command? https://latestn.com/tool/claude-code/pricing-and-limits/claude-tag-billing-and-limits How are Claude Tag usage and spend limits billed? https://latestn.com/tool/claude-code/permissions-and-security/subagent-tool-restrictions How do I restrict which tools a subagent can use in the Claude Agent SDK? https://latestn.com/tool/claude-code/permissions-and-security/switch-permission-modes How do I switch permission modes in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/turn-off-simulator-access How do I turn off simulator access in Claude Code Desktop? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:26:38Z | changed | Reversibility: — → File edits are reversible. | [1] 2026-11-17T12:26:38Z | changed | Undo method: — → press `Esc` twice | [1] 2026-11-17T12:26:38Z | changed | reversibility: File edits are reversible. → — | [1] 2026-11-17T12:26:38Z | changed | undo method: press `Esc` twice to rewind to a previous state, or ask Claude to undo → — | [1] 2026-11-15T12:21:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/undo-changes-checkpoints/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/permissions-and-security/undo-changes-checkpoints POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/undo-changes-checkpoints with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/undo-changes-checkpoints?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I undo changes Claude Code made to my files? Revision 2, last verified 2026-11-20T12:21:24Z. https://latestn.com/tool/claude-code/permissions-and-security/undo-changes-checkpoints (accessed 2026-11-21T09:55:09Z). @misc{LatestN_tool_claude_code_permissions_and_security_undo_changes_checkpoints_r2, title = {How do I undo changes Claude Code made to my files?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/undo-changes-checkpoints}}, note = {Revision 2; digest sha256:58b9db18cfd79625; last verified 2026-11-20T12:21:24Z; accessed 2026-11-21T09:55:09Z} } 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/permissions-and-security/undo-changes-checkpoints