ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 theonly1me

change-journal

一个 Claude Code 插件,打开一个实时本地 HTML 页面,显示 Claude 所做的每一个变化,包括差异、编辑原因、检查和前后行为流。

theonly1me@theonly1me

theonly1me/claude-code-mods/tree/main/plugins/change-journal

原帖图片1
已翻译

关于这个 mod

Change Journal

一个你浏览器中的实时页面,显示 Claude 工作时所做的每一个变化:差异、每次编辑的原因、它运行的检查,以及每个转折前后的代码行为。

Change Journal 预览

claude plugin marketplace add theonly1me/claude-code-mods
claude plugin install change-journal@claude-code-mods

注册市场一次。安装后在打开的会话中运行 /reload-plugins。需要 Claude Code 2.1.289 或更高版本;无需构建步骤或运行时依赖。

页面

页面在会话的首次编辑时在浏览器中打开,每 1.5 秒自动更新。它不需要服务器。

  • 频道: 每个转折是一条线上的一个圆环,每个编辑是其状态颜色中的一个点。点击任何一个跳转到它。
  • 变化: 转折的标题和解释,然后是每个编辑的一张卡片,其中有其差异和行号。每张卡片显示 Claude 的原因,取自 Claude 在编辑前写的内容。当 Claude 编辑时没有说明原因,转折摘要填入一个可能的原因,标记为推断。
  • 行为: 每个转折前后的流程。改变的步骤被突出显示并链接到改变它们的编辑。
  • 文件: 每个改变的文件,最忙的在前。点击一个查看其整个历史。

页面随着新变化发生而跟随。当你选择某个东西时,它停止跟随直到你按下"跟随新变化"。

在 Edit 和 Write 之外进行的更改(sed 命令、格式化程序或你自己的编辑)在每个转折后显示为外部更改。测试命令显示通过或失败标记。

如何使用

  1. 像往常一样与 Claude 协作。页面在首次编辑时在浏览器中打开,状态行显示 ✎ 3 files +40 −12。
  2. 输入 /changes 在终端中查看最新的四个转折及其编辑。窗格打开并显示键。
  3. 按数字查看该编辑的原因和差异,或按 o 打开页面。

命令:

  • /changes:打开包含最新四个转折及其编辑的窗格。
  • /changes open:在浏览器中打开页面。
  • /changes path:打印页面所在的位置。

如何交互

Change Journal 窗格显示一个编辑

标题下的提示行总是命名现在有效的键。

| 键 | 它做什么 | | --- | --- | | 1 到 9 | 显示列表下的该编辑:其原因和第一个改变的行。再次按数字隐藏它。 | | o | 打开页面。显示编辑时,页面打开该编辑的转折。 | | c | 复制页面路径。 | | x | 关闭窗格。 | | Tab、Enter | 移至下一行或按钮并按下。 | | Esc | 将键返回给提示符。窗格保持打开。 | | ctrl+x tab | 再次将键返回给窗格。 |

在页面上,点击轨道上的圆环或点跳转到一个转折或编辑。按"跟随新变化"返回最新变化。

设置

在 /plugin 中更改这些:

  • autoOpen(开启):在会话的首次编辑时打开页面。
  • liveSummaries(开启):在每个有编辑的转折后,询问辅助模型标题、解释、行为流和缺失的原因。这会使用额外的令牌。
  • helperModel(claude-sonnet-5-5):用于这些摘要的模型。
  • helperEffort(medium):辅助模型的思考方式(low、medium 或 high)。

隐私

页面及其数据保留在你的机器上 ~/.claude/change-journal/<project>/<session>/。看起来像秘密的文件(.env、密钥、凭证)列出而无其内容,差异中的令牌被编辑。启用摘要时,每个差异的简短摘录发送到你配置的 Claude 提供商。

请参阅 marketplace README 了解配置、隐私、更新和删除。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add theonly1me/claude-code-mods
claude plugin install change-journal
原文 / README

Change Journal

A live page in your browser that shows every change Claude makes while it works: the diff, the reason for each edit, the checks it ran, and how the code behaved before and after each turn.

Change Journal preview

claude plugin marketplace add theonly1me/claude-code-mods
claude plugin install change-journal@claude-code-mods

Register the marketplace once. Run /reload-plugins in an open session after installing. Requires Claude Code 2.1.289 or later; no build step or runtime dependencies.

The page

The page opens in your browser on the first edit of a session and updates itself every second and a half. It needs no server.

  • Rail: each turn is a ring on a line, and each edit is a dot in its status color. Click any of them to jump to it.
  • Changes: the turn's title and explanation, then one card per edit with its diff and line numbers. Each card shows Claude's reason, taken from what Claude wrote just before the edit. When Claude edited without saying why, the turn summary fills in a likely reason, marked as inferred.
  • Behavior: before and after flows for each turn. Changed steps are highlighted and link to the edits that changed them.
  • Files: every changed file, the busiest first. Click one to see its whole history.

The page follows new changes as they happen. When you select something, it stops following until you press "Follow new changes".

Changes made outside Edit and Write (a sed command, a formatter, or your own edits) show up after each turn as outside changes. Test commands appear with a pass or fail mark.

How to use

  1. Work with Claude as usual. The page opens in your browser on the first edit, and the status line shows ✎ 3 files +40 −12.
  2. Type /changes to see the latest turns in the terminal. The pane opens with the keys.
  3. Press a number to see that edit's reason and diff, or o to open the page.

Commands:

  • /changes: open the pane with the latest four turns and their edits.
  • /changes open: open the page in your browser.
  • /changes path: print where the page lives.

How to interact

Change Journal pane with an edit shown

The hint row under the title always names the keys that work now.

| Key | What it does | | --- | --- | | 1 to 9 | Show that edit under the list: its reason and its first changed lines. Press the number again to hide it. | | o | Open the page. With an edit shown, the page opens on that edit's turn. | | c | Copy the page path. | | x | Close the pane. | | Tab, Enter | Move to the next row or button, and press it. | | Esc | Give the keys back to the prompt. The pane stays open. | | ctrl+x tab | Give the keys to the pane again. |

On the page, click a ring or a dot on the rail to jump to a turn or an edit. Press "Follow new changes" to go back to the newest change.

Settings

Change these in /plugin:

  • autoOpen (on): open the page on the first edit of a session.
  • liveSummaries (on): after each turn with edits, ask the helper model for a title, an explanation, the behavior flows, and missing reasons. This uses extra tokens.
  • helperModel (claude-sonnet-5-5): the model for those summaries.
  • helperEffort (medium): how hard the helper model thinks (low, medium, or high).

Privacy

The page and its data stay on your machine in ~/.claude/change-journal/<project>/<session>/. Files that look like secrets (.env, keys, credentials) are listed without their content, and tokens in diffs are redacted. When summaries are on, a short excerpt of each diff goes to your configured Claude provider.

See the marketplace README for configuration, privacy, updates, and removal.

更多类似作品