unsavededits/rewind-properly — explained in plain English
Analysis updated 2026-05-18
Make Claude Code's rewind or Cursor's checkpoint button also revert files changed by terminal commands.
Automatically journal every AI agent turn as a commit so nothing is lost between checkpoints.
Squash messy AI-generated commits into clean history before pushing with a slash command.
Safely use AI coding agents on real company codebases with built-in merge and bloat protections.
| unsavededits/rewind-properly | 123satyajeet123/bitnet-server | adeilsonrbrito/cross-model-consult | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | Shell | Shell | Shell |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 3/5 | 2/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires running an install script and, for Cursor, manually pasting rules into user settings.
rewind-properly fixes a gap in two popular AI coding tools: Cursor's checkpoint button and Claude Code's rewind feature. Both tools only track changes made through their own file-editing commands. If the AI agent instead runs a terminal command, like deleting a file, generating new files, or running a code generator, that change is invisible to the checkpoint system. Clicking restore or rewind rolls back the edits the agent made directly, but leaves anything done through the terminal completely untouched, which can quietly leave deleted files gone or unwanted generated files in place. This project is a small set of git hooks, written in bash and python3 with no extra dependencies, that plugs into both Cursor and Claude Code. After every turn where the agent changes anything, the entire workspace gets committed automatically as a journal entry. When you use the built in checkpoint or rewind button, the next message you send triggers a check: if the current state matches an earlier saved snapshot, the tool resets your whole project back to that point, including terminal-made changes, while safely backing up anything discarded first so nothing is permanently lost. A small marker file is bumped by the agent at the start of file-changing turns so even terminal-only changes get tracked precisely. Slash commands round out the workflow. One squashes the messy journal commits into clean, reviewable commits before you push. Another does a file-only rewind that keeps your conversation history intact, and another cleans up old backup data to save disk space. The project includes safeguards for real codebases, such as refusing to interfere during an in-progress merge or rebase, and automatically excluding directories that suddenly generate huge numbers of files, like a fresh npm install. This suits developers actively using Cursor or Claude Code on real projects who want their rewind or checkpoint button to genuinely undo everything the agent did, not just the parts it edited directly. Setup requires git and python3 on macOS or Linux, and the project is released under the MIT license.
Git hooks that make Cursor's checkpoints and Claude Code's rewind also undo terminal command changes, not just direct file edits.
Mainly Shell. The stack also includes Shell, Python, Git.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.