Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Rewind file changes with checkpointing changedagent-sdk/file-checkpointing

Nearest release: v2.1.309, published 2 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 22 Oct 2026 22:51 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Oct 2026 18:07 UTC.

Upstream edited
Recorded here
Lines+11added
Lines−11removed
From line 581 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits13to this page, all time

The whole hunk

from line 581, old and new numbered
/
lines
from line 581
581581>
582582> Open your utility file (`utils.py` or `utils.ts`) in your IDE or editor before running the script. You'll see the file update in real-time as the agent adds doc comments, then revert back to the original when you choose to rewind.
583583 
584**Python**
584> [tab] Python
585>
586> ```bash theme={null}
587> python try_checkpointing.py
588> ```
585589 
586```bash theme={null}
587python try_checkpointing.py
588```
589 
590**TypeScript**
591 
592```bash theme={null}
593npx tsx try_checkpointing.ts
594```
590> [tab] TypeScript
591>
592> ```bash theme={null}
593> npx tsx try_checkpointing.ts
594> ```
595595 
596596You'll see the agent add doc comments, then a prompt asking if you want to rewind. If you choose yes, the file is restored to its original state.
597597 
Feedback