Claude Code's /rewind Cannot Restore Files Deleted or Modified via Bash
Anthropic's Claude Code includes a checkpointing feature that saves state before each user prompt, allowing rollback via the /rewind command across up to 100 recent session snapshots. However, official documentation explicitly states that checkpoints do not track files modified by bash commands, meaning deletions, moves, in-place edits, and shell redirects fall entirely outside the restore system. Additional limitations include no support for subagent edits, symlinked or hard-linked files, changes made outside the session, and snapshots that expire roughly 30 days after the last save. Anthropic itself notes that checkpoints are not a replacement for version control, and git does not fully close the gap either, since untracked files and agent-initiated shell commands remain unprotected. Four open-source tools — bashward, git-safepoint, stepback, and others — have emerged specifically to snapshot files before destructive bash commands that Claude Code's native checkpointing cannot cover.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in