Play-by-Play

Built by modmyclaude

Replays every change Claude made in a turn, shell edits included.

Review changesv0.1.4
Play-by-Play in Claude Code: before-and-after changes for a finished turn.
Play-by-Play in Claude Code: before-and-after changes for a finished turn. Open Play-by-Play image at original size
Tests97 passing
Model callsnone
Commands1
Settings0

Review what Claude changed, one file at a time

Play-by-Play shows before-and-after changes from tool edits and tracked shell work. Review the latest changed turn or an earlier one without treating the pane as a revert tool.

When to use it

  • Inspect the result of a formatter or multi-file refactor.
  • Start with the biggest changed file before reading smaller edits.
  • Revisit a previous finished turn while its changes are still in session memory.

Try it in your session

  1. Open the latest changed turn after Claude finishes.

    /replay
  2. While the pane is focused, n and p move between change steps; 1-9 jumps to the first change of the numbered file. Review the before-and-after changes.

  3. Open an earlier turn from the session list.

    /replay 2
  4. Close with q or Esc. Use your own version-control tools for a revert; the pane never reverts edits.

Choose the behavior

There are no settings. /replay selects the latest changed turn; a number selects a prior one. Navigation keys act only while the pane is focused.

Where it works

Terminal and Desktop use a band in the reviewed version, with button or text fallbacks on other reviewed surfaces. Shell tracking requires git.

Check current platform versions and installation guidance

Know the limits

  • Keeps the last 10 changed turns in session memory, not a durable audit log. Tool edits use event before-and-after data.
  • No model calls or network requests of its own. Shell comparison uses read-only git, including 3-4 calls before commands plus after-command and per-file work.
  • Ignored files are omitted. Snapshot overhead can pause shell tracking; background timing and concurrent editor changes limit attribution.

Reviewed version 0.1.4, source reviewed 2026-10-15. Read the pinned README (8628e8f). This walkthrough describes that version, not a new live Claude Code test. Catalogue updates may describe a newer version.

Reported behavior and access

Files Reads changes through Git

The mod reads edit events and invokes read-only Git commands. Git can read tracked and untracked, unignored files. The mod does not revert or write project files.

Shell commands Subprocesses used

The mod reads edit events and invokes read-only Git commands. Git can read tracked and untracked, unignored files. The mod does not revert or write project files.

Network No network

The reviewed README reports no network requests, including its described subprocess behavior.

Added model calls None reported

The reviewed README reports no model calls of its own. Ordinary Claude Code work still uses your model.

Sound Not reviewed

Behavior has not been source-reviewed for this version. Check the README before relying on its access.

Handled events session.start, turn.start, turn.complete, tool.call, command.run /replay, ui.render AbovePrompt, ui.render Pane, ui.scroll Pane, ui.message play-by-play

Event registration does not mean blocking. Read the source for whether an event observes, changes or holds an action.

README-reported behavior, not a sandbox guarantee. Source v0.1.4, 9e07ee0, reviewed 22 Oct 2026

Original Claude Code validator report

files

Does not read or write files.

commands

Can run commands.

network

Does not make network requests.

model

Does not call a model.

sound

Does not play sound.

Validator hook registrations

Uses hooks: tool.call, ui.scroll.

Static validator signals can miss indirect effects, optional configuration and engine-managed storage.

Try a complete workflow

How it works

Slash commands

/replay

Step through the file changes of a turn, shell edits included

Hook events

session.startturn.startturn.completetool.callcommand.run /replayui.render AbovePromptui.render Paneui.scroll Paneui.message play-by-play

The prompt

Details

Replays every change Claude made in a turn, shell edits included.

Use it

  • After a turn that changed files, a hint shows above the prompt: 4 edits · 3 files · +38 −12 · press r or /replay, with a Replay and a Hide button. r and x press them once the band has the keyboard (click it, or ctrl+x tab).

  • /replay opens a pane on the latest turn. /replay <n> opens an earlier one: 1 is the latest, up to 10 turns that changed files are kept. It runs at once, even while Claude is working, and shows only finished turns: a turn still running is never shown half done (the pane says one is in progress), and an open pane stays on its turn when the running one ends. The command answers the model nothing; its messages are toasts. A headless run, with no pane, gets the steps as text.

  • The pane shows, top to bottom:

    • a scoreboard: files touched, lines added and removed, edit count, and the file with the biggest change;
    • a jump list of the files, numbered 1-9 in the order they were first changed;
    • Prev, Next and Close, and "Step 2 of 5";
    • the step: file name, what happened (edit, write, create, delete, rename, cell), +/− counts, via shell when a command made it, and the diff with removed lines red and added lines green. A binary file shows as "binary file changed (N bytes)", never as a diff.
  • Keys while the pane has the keyboard (it takes it when /replay opens it):

    KeyDoes
    nnext step
    pprevious step
    1-9first change of that file
    q, Escclose
    arrow keysafter a click on the pane's "Keys" line: left/up previous, right/down next
    up / downwithout that click, only on a step taller than the pane

    The mouse wheel and Page Up / Page Down still scroll a long diff.

Settings

None.

What it can touch

  • Reads: the records the Edit, Write and NotebookEdit tools return (the text before and after), and the first 80 characters of each prompt you send, kept in the session's memory for the turn's header in the pane. It never opens a file itself.
  • Runs: around every Bash command, read-only or not, read-only git plumbing in the session's folder, each with --no-optional-locks: git rev-parse, git diff-index -p, git ls-files --others, git hash-object (without -w), and for changed files git show <HEAD>:<path>, git cat-file --batch-check and git diff --no-index (an untracked file). Porcelain git diff is not used, because it rewrites .git/index. Nothing is staged, stashed, committed or written, and .git/index is never touched.
  • Cost: 3 or 4 git calls before each command and 2 or 3 after it (none after one Claude Code marks read-only, such as ls), plus one or two per changed file. Each diffs the whole uncommitted tree against HEAD, and hash-object reads every untracked, unignored file, up to 500 of them (past that, untracked files are listed by name and their contents are not read). In a 100,000-file repository that is about half a second per command, and slower after many files were touched (a checkout, a formatter) until your own git status refreshes the index; see the pause below.
  • Writes: nothing. It never reverts or edits a file. What it records lives in the session's memory and is gone when the session ends.
  • Network: none. Model calls: none.

Limits

  • Shell changes need a git repository at the session's folder. Elsewhere commands run unwatched.
  • Files git ignores (node_modules, build output) are not tracked, by design.
  • An untracked file a command changes or deletes shows as a step without lines, since git kept no earlier copy, unless a file tool wrote that file earlier in the session.
  • A file you save in your editor while a command waits for approval or runs shows as a change "via shell".
  • A command run in the background is compared when it starts running in the background, not when it ends.
  • Shell tracking pauses for the rest of the session, saying so once in the transcript, when a git snapshot takes over 2 seconds, when git does not answer within 3 seconds, or when the uncommitted changes are over 4 MiB. File tools are still tracked.
  • Up to 25 changed files are compared per command; the rest are counted in one "more files" step. A step draws at most 400 diff lines; a turn keeps at most 300,000 characters of diff and 500 steps. A step of very long lines (minified code) past 100,000 characters is cut by the pane and drawn without colour. Counts always cover the whole change.
  • Arrow keys need a click on the "Keys" line first; without it, up and down step only on a step taller than the pane (the engine sends them as scroll keys only then). VS Code and the mobile app have no key line: use the buttons there. The band shows on the terminal and the desktop app only.
  • File names with control characters are drawn with them replaced (ANSI sequences dropped, others shown as U+FFFD).
  • A binary file's size is shown when git keeps the earlier copy (a delete or move); a new or changed binary in the working tree shows without it.
  • r in the prompt box types an r; it presses Replay only once the band has the keyboard.

Built from a prompt

This mod was built from prompts/play-by-play.md.

added 9 Oct 2026updated 13 Oct 2026MITSource on GitHub

Pairs well with