diffx-start-review

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Start diffx Review

启动diffx评审

Launch the diffx server so the user can review their git changes in a browser-based UI and leave inline comments.
启动diffx服务器,以便用户可以在基于浏览器的UI中评审其git变更并留下行内评论。

What to do

操作步骤

1. Launch diffx

1. 启动diffx

Run
diffx
in the background. By default it shows all working tree changes (staged + unstaged + untracked).
bash
diffx
Common variations — use these when the context calls for it:
bash
diffx -- --staged          # Only staged changes
diffx -- HEAD~3            # Last 3 commits
diffx -- main..HEAD        # Current branch vs main
diffx -p 8080             # Custom port (default: random available port)
Anything after
--
is passed directly to
git diff
, so any valid git diff arguments work.
Important: Run diffx in the background using the Bash tool with
run_in_background: true
, so the server stays alive while the user reviews.
在后台运行
diffx
,默认情况下它会展示所有工作区变更(已暂存+未暂存+未追踪)。
bash
diffx
常用变体——当上下文需要时可使用以下命令:
bash
diffx -- --staged          # 仅展示已暂存变更
diffx -- HEAD~3            # 最近3次提交的变更
diffx -- main..HEAD        # 当前分支与main分支的差异
diffx -p 8080             # 自定义端口(默认:随机可用端口)
--
之后的所有内容会直接传递给
git diff
,因此所有有效的git diff参数都可使用。
重要提示: 请使用Bash工具在后台运行diffx,设置
run_in_background: true
,确保用户评审期间服务器保持运行。

2. Tell the user

2. 告知用户

After launching, tell the user:
diffx is running. Review your changes in the browser and leave inline comments. When you're done, come back here and run
/diffx-finish-review
.
Keep it brief.
启动完成后,告知用户以下内容:
diffx已运行,请在浏览器中评审你的变更并留下行内评论,完成后返回此处运行
/diffx-finish-review
请保持内容简洁。