🕰 Time machine for Claude Code sessions - Automatic snapshots, granular rollbacks, and visual diffs. Never fear AI mistakes again.
git clone https://github.com/holasoymalva/claude-code-rewind.gitClaude Code Rewind Tool automatically captures snapshots of every Claude Code action, storing metadata including timestamps, prompts, and affected files. It provides granular rollback capabilities that let you revert to any specific point in your session while preserving your own manual changes. The built-in visual diff engine shows exactly what Claude changed, line by line, with syntax highlighting and context annotations. Use the interactive timeline to navigate your development history, filter by action type or file, and preview changes before applying rollbacks. Developers benefit by reducing debugging time and maintaining confidence that AI-generated mistakes can be instantly undone.
Install via pip, npm, or from source. Run 'claude-rewind init' in your project directory to start capturing snapshots automatically. Use 'claude-rewind timeline' to view your session history, 'claude-rewind diff' to see what changed, and 'claude-rewind rollback' to restore any previous state. Preview rollbacks with 'claude-rewind preview' before applying.
Quickly undo breaking changes Claude makes to working code
Review exactly what Claude modified before accepting changes
Selectively rollback specific files while keeping others
Navigate development history and restore previous checkpoints
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/holasoymalva/claude-code-rewindCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I want to use the Claude Code Rewind feature. Here's my current code: [CODE]. I want to go back to a previous version from [TIMESTAMP]. Can you show me the differences and help me restore it?
```diff
--- Current Version (2023-10-15 14:30)
+++ Previous Version (2023-10-14 09:15)
@@ -1,5 +1,5 @@
def calculate_discount(price, discount_rate):
- if discount_rate > 0.5:
+ if discount_rate > 0.3:
raise ValueError("Discount rate too high")
return price * (1 - discount_rate)
- else:
+ elif discount_rate > 0:
return price * 0.9
```
**Changes Made:**
- Discount rate threshold changed from 0.5 to 0.3
- Added an explicit `elif` condition
- Default discount changed from 0.9 to 1.0
Would you like to revert to this previous version?Automate your browser workflows effortlessly
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan