vibesnap
An edit ledger for AI agents.
vibesnap records every change to your project as it happens: Claude's edits, its subagents' edits, shell commands, and your own edits in an editor. Each change is an event that says who made it, in which turn, with which tool. Agents (and you) can then ask the history questions instead of guessing:
$ vs diff turn --stat # what did we change since the last prompt?
src/auth.ts +12 -3 main, test-writer
tests/auth.ts +40 -0 test-writer
$ vs blame src/auth.ts -L 40,60 # who wrote these lines, and when?
40-52 e:815 test-writer 14:05:12 turn:14
53-60 e:798 main 13:58:40 turn:13
$ vs undo agent:test-writer # revert one subagent's work, keep everything else
Nothing has to remember to snapshot. Hooks record changes; the history is queried only when someone needs to look back.
Install
cargo install vibesnap # installs `vs` and `vibesnap` (same binary)
Then hook it into Claude Code, either as a plugin:
claude plugin marketplace add kirillleventcov/vibesnap
claude plugin install vibesnap@vibesnap
or directly into your settings (~/.claude, or the project's .claude with --project):
vs install claude
Both install the hooks and a skill that tells Claude when and how to look back. From then on, a Claude Code session in a git repository creates .vibe/ at the repository's top level and records everything. Outside git, run vs init yourself.
Linux and macOS only.
Using it
Most of the time you do nothing. When you want to look back:
| Question | Command |
|---|
| What changed since the last recorded event? | vs status |
| What did this turn change? | vs diff turn --stat, then vs diff turn -- <path> |
| What did the file look like before the session? | vs show src/auth.ts@session |
| ...at 14:05, or 3 events ago? | vs show src/auth.ts@t:14:05, vs show src/auth.ts@-3 |
| Who changed lines 40-60? | vs blame src/auth.ts -L 40,60 |
| What did a subagent touch? | vs log --agent test-writer --stat |
| Did the user edit anything while the agent worked? | vs log --actor external --since session |
When did parseToken disappear? | vs log -S parseToken -- src/ |
| Undo the last edit, this turn, or one subagent | vs undo @-1, vs undo turn, vs undo agent:test-writer |
| Go back to a point in time | vs restore t:14:05, vs restore before-refactor |
| Did two agents overwrite each other? | vs overlaps --since turn |
| Re-orient after context compaction | vs recap |
| Commit what the agents did this turn | vs commit turn -m "..." |
undo applies the inverse of the selected events as a three-way merge, so later edits by others survive. If a later edit touched the same lines it refuses (exit code 3) and names the event. Over a span (turn, agent:X, a range) it reverts agents' edits only; your own edits in the span stay unless you name them (e:N) or pass --include-external. undo and restore record the current state first, so both can be undone.
Refs
| Ref | Means |
|---|
@ | The working tree now |
@-N | N events back (@-1: before the last event) |
e:812 | Right after event 812 |
turn, turn-2, turn:14 | Start of the latest turn, of two turns before it, or of turn number 14 |
session, session:<id> | Start of the latest session, or of a named one |
agent:<type or id> | Start of that subagent's latest run (in undo/log: its events) |
t:14:05, t:-10m, t:2026-10-16T14:05 | The state at a time |
<label> | A label made with vs label or vs snap --label |
git:HEAD, git:<rev> | A git commit's tree |
A..B | A range, for diff, log and undo |
path@ref | A file at a state, e.g. src/auth.ts@turn; path@@ is the working tree |
Commands