Skip to content
All articlesלקריאה בעברית

Claude Code checkpoints and reversibility in production

What Claude Code Checkpoints Can't Undo in a Live SaaS

Claude Code checkpoints rewind file edits, not migrations, emails or charges. A practical way to sort agent work before it reaches a live SaaS.

6 min read

Claude Code checkpoints can take back the edits the agent made to your files with its editing tools. They cannot take back a database migration, a sent email, a charged card, or the work of a user who already relied on the change. If you build a live SaaS with an agent, that difference should decide how much freedom the agent gets, task by task.

I ship SaaS products solo with an AI-native workflow, and across those live platforms there are more than 10,000 paying users and members. From that seat, rewind is a great feature with a misleading feel. It makes the whole session seem reversible, when only one layer of it is. My view is simple: before asking how capable the agent is, ask what its next action costs to undo.

Rewind covers your files, not your product

Checkpoints can restore code, conversation, or both. Shell changes to files that Claude already edited can also be restored. Files changed only by shell commands are not tracked. Checkpoints do not undo remote effects or replace Git.

Anthropic: checkpoint tracking and limits

A running product is much more than its files. It is rows in a database, credits in an account, messages in an inbox, and files in storage. Once an agent can run a command against any of those, the rewind button no longer describes the situation. You can restore the script that sent the email. The email is still in the customer's inbox, and the customer has probably read it.

Sort agent tasks by what it takes to undo them

The useful question is not whether a task is big or small. A 2,000 line interface refactor on a branch can be easier to take back than a single line that changes how credits are deducted. Here is the sorting I propose. It is an illustrative model you can adapt, not a log of how any one of my products is configured.

  1. 01Local edits: interface changes, refactors and copy on a branch. Checkpoints and Git both help here, so let the agent explore widely and review the result separately.
  2. 02Deployed code: a change users can reach. You can redeploy an earlier version, but you cannot erase what happened while the new one was live. A person approves the release.
  3. 03Stored data: migrations, backfills and deletions. Older code does not bring older data back. Require a written recovery plan, a rehearsal on a copy, and explicit approval for the specific run.
  4. 04Outside effects: emails, payments, third-party API calls and published content. Treat them as permanent. The agent may prepare them, and a person approves each action before it happens.

One small feature can cross all four levels

Consider a hypothetical change in a video generation product, the category Luma.ai belongs to. The request is to adjust how many credits a generation costs. The label in the interface is a local edit. The new pricing logic becomes deployed code. The balances it changes are stored data. A message telling subscribers about the change is an outside effect. Handed over as one prompt, it looks like one task. In practice it is four decisions with four different costs of being wrong.

So split it at the boundary. Ask the agent for the interface and the logic first, with no access to production data. Review that work in a separate pass. Then treat the balance change as its own task with its own plan and its own approval. The notification comes last, as a draft that a person reads and sends. The work moves quickly where a mistake is cheap and slows down exactly where a mistake reaches someone's account.

Being able to roll back is not permission to proceed

The most expensive misunderstanding about rewind is treating it as authority. Relevant tests and a verified recovery plan can help manage risk. A patch version number or an internal-only label alone does not establish a lower risk. None of them removes the risk, and none of them approves the change. Approval is a decision made by a person who understands what the action will touch. It should cover that action only, not the next one the agent thinks of.

This is the distinction I would put in front of any business owner starting with Claude Code. Use checkpoints generously while you build, because cheap exploration is a real advantage. Then, before the agent touches anything outside the working files, write one sentence: if this is wrong, here is exactly how we recover. If you cannot finish that sentence, the task is not ready to run. Your first step today is to take the next prompt you planned to send and mark the point where rewind stops helping.

A little more detail

Questions & answers

What can't Claude Code checkpoints undo?

Rewind does not restore files changed only through shell commands. Later shell edits to files Claude already edited can be restored. It does not reverse deployments, database operations, sent emails or payments.

Do Claude Code checkpoints replace Git?

No. Checkpoints are a fast, local way to step back during a session. Git remains the durable history you use for commits, branches, review and collaboration. Use both, and commit before starting an ambitious change.

Is it safe to let Claude Code run a database migration?

A migration always carries risk, whether a person or an agent runs it. Let the agent draft it, review it separately, rehearse it on a copy of the data, write a recovery plan, and require explicit human approval for the production run.

How much autonomy should I give an AI coding agent on a live SaaS?

Match autonomy to the cost of undoing the action. Give wide freedom for local edits on a branch, and require human approval for releases, data changes and anything that reaches customers or outside services.