🧩enableFileCheckpointing Option
Also known as rewindFiles, Agent SDK file checkpointing, Claude Agent SDK enableFileCheckpointing
The option that lets you put files back the way they were.
Think of it like
It is like going back to a saved page in a game.
Example
Mia's agent rewrote a module badly. She calls rewindFiles with the ID of the prompt before it, and the old files come back.
Why it matters
Agents make wrong edits, and an undo for files makes it safe to let them try.
Definition
Common mistake
Key takeaways
- 1Backs up before edits. Write, Edit, NotebookEdit.
- 2Not shell commands. Bash is untracked.
- 3Files, not chat. Chat stays.