candygoogy/notary
各ターンで何が変更されたかを表示し、そこから1つのファイルを元に戻せる Claude Code モッドを作った
Reddit での Changes の紹介。これは Claude Code モッドで、/changes ペインを追加し、ファイル編集のターンごとのタイムラインをファイルごとの差分と共に表示し、2回押しの Revert で1つのファイルをそのターン前の状態に復元できる。さらに、最後の編集後に主張されたテスト実行を検証する companion の Receipts もある。どちらもローカル専用、MIT ライセンスで、candygoogy/notary マーケットプレイスから /plugin でインストールできる。
この mod について
Changes はトランスクリプトの隣にペインを追加し、セッションのタイムラインを最新ターン優先で一覧表示する。ファイルに触れたツール呼び出しやサブエージェントも含み、各ファイルの差分(新規ファイルを含む)と Keep/Revert コントロールを表示する。Revert は1つのファイルをそのターン前の状態に復元し、2回押しが必要で、ファイルが Claude の残した内容と一致する場合にのみ書き込む。その後 Claude は隠しノートを受け取り、ファイルを再読み取りする。Revert はファイル単位でありハンク単位ではなく、履歴は1つの会話をカバーし、シェルコマンドの変更は git リポジトリ内でのみ追跡される。companion の Receipts は、Claude がテストに合格したと主張したとき、最後の編集後に実際に何が実行されたかを確認し、失敗した場合は1回送り返す。Claude Code 2.1.287+ で /plugin install changes --marketplace candygoogy/notary と /plugin install receipts --marketplace candygoogy/notary によりインストール。リポジトリ: https://github.com/candygoogy/notary
インストール
インストール方法は元のソースをご確認ください。
原文 / README
When Claude works through a long task, I often want to answer "what did turn 12 change, and can I undo just that one file?" /diff shows the whole working tree, and /rewind goes back to an earlier point for every file at once. So I built Changes, a Claude Code mod. Not staged: ordinary prompts, one file reverted, and Claude notices. /changes opens a pane next to the transcript: - a timeline of the session, newest turn first, with the tool calls and subagents that changed files; - each file's diff, including new files' contents; - Keep and Revert per file. Revert puts the file back the way it was before that turn. It takes two presses, and it only writes if the file is exactly what Claude left, so it won't silently overwrite your own edits. Afterwards Claude gets a hidden note, so it re-reads the file instead of editing from memory. In the GIF, it notices the revert and points out that its test no longer matches. Nothing in that run is staged. Limits, up front: reverts are per file, not per hunk. The history covers one conversation (/clear starts it fresh). Changes made by shell commands are tracked only inside a git repo. It ships with a companion, Receipts. When Claude says "all tests pass", Receipts checks what it actually ran after its last edit, and sends it back once if the tests failed. It's quiet by default. On my 105 real sessions, it would have shown 5 warnings, no ❌, and never sent Claude back. Both are local only: no network, no telemetry, no model calls (Receipts has an opt-in "smart check" that asks a model; it's off by default). Built and used on Windows, with CI on Windows, macOS and Linux. MIT. Install (Claude Code 2.1.287+): /plugin install changes --marketplace candygoogy/notary /plugin install receipts --marketplace candygoogy/notary It's v0.1. The most useful bug report is a revert that wrote the wrong bytes, or a refusal whose reason didn't make sense. Repo: https://github.com/candygoogy/notary submitted by /u/WaretaGarasu to r/ClaudeAI [link] [comments]
