OrchestriAI
Back to the field guide
AI systemsExplainer6 min read

Claude Code rewind is not a backup for business files

Claude Code rewind undoes some agent edits in the current session. It does not cover every file, and its snapshots expire. Here is what a real backup must cover first.

Which business files would an agent edit without a backup?

Free. Three short fields, and we reply by email within one business day.

By Shariq Riaz

In this guide

Claude Code rewind undoes some agent edits in the current session. It does not cover every file, and its snapshots expire. Here is what a real backup must cover first.

4 sections1 cited source6 min read
On this page4 sections
  1. What rewind covers
  2. What rewind does not cover
  3. What a real backup must cover before an agent touches files
  4. Where rewind fits

Claude Code can rewind a session. Press Esc twice with an empty prompt, or run /rewind, pick an earlier prompt, and restore the code, the conversation or both. For a quick undo of the last few edits, that works well. It is not a backup, and the gaps matter when the files are client work, price lists, templates or records someone else depends on.

We checked the Claude Code checkpointing documentation on November 8, 2026. The points below come from that page.

What rewind covers

  • Files that Claude edits with its own file tools. Claude Code saves a checkpoint before each prompt that starts a turn.
  • The 100 most recent checkpoints in a session. Older checkpoints lose their snapshot files.

We'll list the folders an agent can reach, check what each backup covers, and set the restore test before the next run.

What rewind does not cover

  • A file that only Bash commands change. Once Claude has edited a file with its file tools, a rewind also undoes Bash changes to that file afterward. A file that only Bash has touched is not tracked, and it stays as it is.
  • Edits from most subagents. A background subagent can change files that Claude never edited in the conversation, and rewind leaves those changes in place.
  • Changes made outside the session. Manual edits and edits from another session stay put unless they touch the same files.
  • Symlinked and hard-linked files. Rewind skips them and shows a warning. They keep their current contents.
  • Snapshots after the retention window. Claude Code deletes a session's file snapshots in its retention sweep, by default about 30 days after the session last saved one. A rewind to a checkpoint whose snapshots are gone can fail with "No files were restored." The cleanupPeriodDays setting extends the period.

The documentation says the same thing in its own words: checkpoints are for quick, session-level recovery, and version control is still the place for permanent history.

What a real backup must cover before an agent touches files

  1. 1Every business file the agent can reach. That includes the exports, templates, configuration and spreadsheets next to the code, not only the repository.
  2. 2A history the agent's session does not manage. A git repository pushed to a host you control works. So does a dated copy in storage with its own retention.
  3. 3A starting point you can name. Commit or copy the folder before the agent starts, so the agent's work is the difference between two known states.
  4. 4A retention period longer than a review cycle. Thirty days is short for a client file that someone checks next quarter.
  5. 5One restore you have tested. Pick a file, restore it from the backup into a scratch folder, and open it. A backup you have never restored is a guess.
  6. 6A separate place for work you cannot afford to lose. Have the agent write to a branch or a copy, then review the diff before anything reaches the live folder.

Where rewind fits

Rewind is an undo inside one session. A backup answers a different question: what did these files look like last Tuesday, and can we get them back if the session is gone or the snapshots have expired? Keep both. Use rewind for the mistake you spot now, and use the backup for everything else.

Limits on what an agent may change belong in the approval design. The agent action budgets guide covers those limits, and the AI agent governance checklist covers who approves what. If agents already edit files your business relies on, we can set up the repository, the backup and the review steps as part of custom development.

Before the next session that touches business files, restore one file from the backup into a scratch folder and open it.

Free. Three fields. We reply within one business day.

Which business files would an agent edit without a backup?

We'll list the folders an agent can reach, check what each backup covers, and set the restore test before the next run.

You'll talk to Shariq. Replies come from shariq@orchestriai.com. Leave out passwords and patient records.

What happens next

  1. 1.You send one line about the task.
  2. 2.Shariq reads every message and replies by email within one business day.
  3. 3.If it fits, you get a written plan or a short call. Your choice.
  4. 4.If it does not fit, we tell you and point you to a better option.
“Shariq built our Open Dental to GoHighLevel sync and our AI routing system for new patient inquiries. Both projects were delivered fast, worked right away, and he was responsive whenever we needed adjustments. He understands dental practice workflows and doesn't overcomplicate things.”
Michael Ling, Owner, Smile Again Dental

References used in this article

1 links
Shariq Riaz, founder of OrchestriAI

Written by

Shariq Riaz

Founder, OrchestriAI · CPHIMS · PMP · CBAP

11 years in enterprise IT at Fortune 500 companies. He founded OrchestriAI, an AI automation agency that builds and runs automations and AI agents for healthcare, real estate, financial services, and freight forwarding teams.

Free automation checklist

Free automation checklist for your industry

A one-page checklist of the manual work clinics, real estate teams, financial firms and freight forwarders most often automate. Pick your industry and tick what is still done by hand.

Or read it now, no email needed: Healthcare & dental automation checklist.

Your email comes only to us. No spam, and we never sell it. See the Privacy Policy.

Want this built for you? Custom Development: From $3,000/project

We build web portals, admin dashboards, and client-facing apps to your exact spec when another subscription will not solve the problem.

Not sure it fits yet? Send us one manual task and we'll email back one specific way to automate it, free.

Keep reading