saksham10arora-dotcom/claude-vhs

Claude Code 外掛,在每次 Edit 和 Write 前後建立快照,再透過 /vhs 在窗格中重播,提供逐步、播放和倒帶控制。
saksham10arora-dotcom/claude-vhs

VHS 會讀取變更前後的檔案,記錄 Claude 執行的每次 Edit 和 Write,並在工作階段記憶體中按檔案保留版本。/vhs 命令會開啟窗格,逐行重播 diff:輸入新行,同時保留未變更的行作為脈絡。控制項包括 h/l 逐步移動、p 播放或暫停、f 下一個檔案、c 關閉;連按兩次 r 會將檔案倒回畫面上的步驟(倒回本身也會錄進錄影帶)。透過 plugin marketplace 安裝,或複製後使用 --plugin-dir 執行;需要 Claude Code 2.1.287+(在 2.1.273–2.1.286 上使用 `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1)。MIT 授權。
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add saksham10arora-dotcom/claude-vhs claude plugin install vhs
A tape of every edit Claude makes. A Claude Code mod.

A real, unedited session: after Claude edits api.js twice, /vhs opens the tape.
Every Edit and Write is snapshotted before and after, so each file has its versions in order. /vhs opens a pane that replays them: the diff is computed line by line (unchanged lines stay context, as in git) and the new lines type themselves in.
Like git history for one session, without committing every keystroke.
h / l step, p play or pause, f next file, c closer twice rewinds the file to the step on screen (one press only arms it; the rewind is taped too)/vhs, /vhs list, /vhs <file>, /vhs closeThe files Claude edits: read before and after each edit, and written only when you press r twice. The tape lives in memory for the session.
Claude Code 2.1.287 or newer runs mods out of the box. On 2.1.273 to 2.1.286, start it with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 first.
claude plugin marketplace add saksham10arora-dotcom/claude-vhs
claude plugin install vhs@nerfsaksham-vhs
Every option has a default, so the installer's "userConfig options not yet set" note is safe to ignore.
Or try it without installing:
git clone https://github.com/saksham10arora-dotcom/claude-vhs && claude --plugin-dir claude-vhs
claude plugin validate .
claude plugin test .
Part of a set: teach-me · vhs · frugal · lofi. More community mods: awesome-claude-mods.
MIT. Made by Saksham Arora (@nerfsaksham).