getbelay.dev

belay

Pre-alpha

Guides

Checked

belay on GitHub

How to see what Claude Code changed in your repo

Claude edits app.py with its Edit tool, then runs npm install. /rewind can restore app.py but knows nothing about what npm install touched. git diff shows the result of both, merged, and nothing that is git-ignored or under .git/. A recorder that runs after every tool call shows each call’s changes separately.

What Claude Code keeps

  • Checkpoints (/rewind): “tracks all changes made by its file editing tools”, for “the 100 most recent checkpoints in a session”. But: “A file that only Bash commands changed isn’t tracked and stays as it is.”
  • Transcripts (~/.claude/projects/): each tool call’s input and output. For a shell command, the command and what it printed, not which files it changed.
  • git: the end state only, and nothing under .git/.

What the end state misses

On the main page, a scripted session edits a test, runs it, and restores it with git checkout. git diff shows nothing; belay’s line says tests/test_app.py put back.

belay’s plugin

claude plugin marketplace add Allexsen/belay
claude plugin install belay@belay

Then start Claude Code in a project directory. Linux (x86_64, arm64) and macOS on Apple silicon.

After every tool call that changed something, one line, flagged changes first:

belay: 🔴 .git/hooks/pre-push added (git hook) · 7 more: 7 added (5 under node_modules/)

A summary when the agent stops; every change in /belay:receipt. The plugin downloads the belay binary once and runs it only if its sha256 matches; belay makes no network calls. README.

In the rerun, belay recorded 270 Claude Code runs, called from Claude Code’s hooks by a wrapper, not by the plugin. Before them, a scripted control (no model, the same harness) edited and restored test.py: belay reported modified, put back, touched; the benchmark’s end-state hash called it Files: clean.

It can’t undo (use git or /rewind), doesn’t see reads or network, and isn’t built to resist a process that tries to fool it.

Sources

Checked 2026-11-28: Claude Code Checkpointing, The .claude directory.