Agent Rewind — AI skill for Claude Code
Atomic undo and turn-by-turn time machine for AI coding agents (100% local, zero git pollution).
How to install Agent Rewind
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open deivycom21-cell/agent-rewind and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Rewind does
Atomic undo and turn-by-turn time machine for AI coding agents (100% local, zero git pollution).
Alternatives in AI
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Agor — Orchestrate Claude Code, Codex, and Gemini sessions on a multiplayer canvas 1.2k ★
- ClaudeCodeStatusLine — Custom status line for Claude Code showing model, tokens, rate limits, and git info in real-time 333 ★
README
agent-rewind
[](LICENSE) [](https://python.org) [](#security)
**Atomic Time Machine for AI Coding Agents.**
When Claude Code, Cursor, Windsurf, or OpenCode starts a turn and breaks your files, one command gets you back:
agent-rewind undo 2
No staged commits. No polluted git history. Gone in under a second.
The Problem
An AI agent touches 8 files in one turn. Three of them are now broken. Your git history is clean (the agent didn't commit). `Ctrl+Z` only goes so far.
**agent-rewind** watches for these write bursts and snapshots them atomically in a shadow git tree stored in your OS temp directory — completely isolated from your real `.git/`.
Real Example
$ agent-rewind run -- claude
[agent-rewind] Baseline snapshot: a1b2c3d4
# ... work with Claude Code ...
[agent-rewind] Turn #1 saved — modified 3 files
[agent-rewind] Turn #2 saved — modified 8 files ← agent broke things here
[agent-rewind] Turn #3 saved — modified 2 files
$ agent-rewind log
╭─────────┬────────────┬────────────────────────────┬───────────────────╮
│ Turn │ When │ Description │ Files │
├─────────┼────────────┼────────────────────────────┼───────────────────┤
│ Turn #3 │ 2m ago │ modified 2 files │ routes.py, app.py │
│ Turn #2 │ 5m ago │ modified 8 files │ models.py +7 more │
│ Turn #1 │ 8m ago │ modified 3 files │ config.py +2 more │
│Baseline │ 10m ago │ baseline │ │
╰─────────┴────────────┴────────────────────────────┴───────────────────╯
$ agent-rewind undo 2 --yes
✓ Restored to Turn #1. 8 files reverted.
(A pre-undo backup was saved — you can undo the undo.)
$ git status # your real git: completely untouched
On bra
Related Skills
Claude Code Rewind
🕰️ Time machine for Claude Code sessions - Automatic snapshots, granular rollbacks, and visual diffs. Never f
Remote Access MCP
Turn any Linux server into an AI-agent-accessible machine via MCP. ChatGPT, Claude, and Grok connect over HTTP
Undokey
A universal undo key for AI coding agents (Codex, OpenCode, Claude Code, Antigravity) — filesystem checkpoints
Temp Doc
Manage temporary documentation created during task execution - prevent git pollution from AI-generated checkli
Shadowbox
Zero-trust copy-on-write sandbox and interactive time-machine for AI coding agents.
Rewind Learning
倒带学习法 · Rewind Learning Method — turn every finished AI-collaboration project into 4 lasting teaching artifact
Related Agents
Timps Backup Sentinel
Audit backup health: Time Machine last backup time, all local git repos with uncommitted/unpushed changes, lar
Mnemosyne
Git commit specialist - executes atomic commits in isolated subagent context to prevent context pollution in t
Zero To Sys Qualidade
Especialista em código, testes e ambiente do zero-to-sys (coding, quality, code-indexes, ia, local-dev, mainte