deivycom21-cell

Agent Rewind — AI skill for Claude Code

AI community

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: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-blue.svg)](https://python.org) [![Zero Network](https://img.shields.io/badge/Network-Zero%20calls-brightgreen.svg)](#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