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

97 passingnone10Review 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
Open the latest changed turn after Claude finishes.
/replayWhile 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.
Open an earlier turn from the session list.
/replay 2Close 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 guidanceKnow 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.
Try a complete workflow
How it works
Slash commands
/replayStep through the file changes of a turn, shell edits included
Hook events
The prompt
Build me a Claude Code mod called "play-by-play" that replays every change Claude made in a turn, one step at a time. What it does- After a turn that changed files, show a hint above my prompt: "4 edits · 3 files · +38 −12 · press r or /replay".- /replay opens a pane that steps through each change in order: the file name, the diff (removed lines red, added lines green) and Prev, Next and Close buttons. Arrow keys work too.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.randxpress them once the band has the keyboard (click it, or ctrl+x tab). -
/replayopens 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
/replayopens it):Key Does nnext step pprevious step 1-9first change of that file q, Escclose arrow keys after a click on the pane's "Keys" line: left/up previous, right/down next up / down without 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 filesgit show <HEAD>:<path>,git cat-file --batch-checkandgit diff --no-index(an untracked file). Porcelaingit diffis not used, because it rewrites.git/index. Nothing is staged, stashed, committed or written, and.git/indexis 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, andhash-objectreads 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 owngit statusrefreshes 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.
rin the prompt box types anr; it presses Replay only once the band has the keyboard.
Built from a prompt
This mod was built from prompts/play-by-play.md.
Pairs well with
Follow modmyclaude for new mods: TikTok · Instagram · YouTube · X · Threads · Facebook