cirelir/dsh-change-review5

dsh-change-review

DeepSeek Harness 会话修改审查:追踪会话内 write/edit 工具调用,以可自定义颜色的 diff 对比展示;会话隔离、子代理聚合、SSE 实时推送。

AI 분석

核心用途是实时审查和对比 Agent 对文件进行的修改。适合需要精确掌控、撤销或确认 Agent 代码及文本写入改动的开发与协作任务。

패키지
dsh-change-review
버전
0.2.3
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cirelir/dsh-change-review

🚀 Usage

  1. Open a session and click the 「审查」(Review) view tab (after「对话」Chat, before「轨迹」Trajectory)
  2. Left: file list (write/edit counts, ~added/~removed stats); right: the selected file's diff. The two panes scroll independently (scrolling the file list never scrolls the diff preview and vice versa), so you can browse files while keeping the preview in place. The header toggle switches the scope: 此会话 (all session changes) or 最新一轮 (the latest turn's changes)
  3. The badge increments in real time when files change; top bar: refresh, 清空 clear the current session's records
  4. Revert (each action asks for confirmation, then writes the file on disk directly):
    • One change: the 撤回此项 (revert this) button on each edit/write section header — restores the file to that change's previous content, keeping later changes that do not overlap (overlapping ones are rejected with a hint)
    • Whole file: the 撤回全部修改 (revert all) button at the top of the detail pane — restores the file to its state before this session's first recorded change; a file created in this session is deleted
  5. Per-turn review: after each turn, a 本轮变更审查 card appears at the turn's tail listing the files changed in that turn (write/edit counts, ~added/~removed); click a file to expand its diffs and revert a single change. Session-cumulative changes stay in the 「审查」tab — the two views are independent
  6. Colors: Settings → 修改审查 (8 items + light/dark presets + restore defaults), auto-saved, survives refresh

🎨 Color Configuration

ItemKeyLight defaultDark preset
Added line backgroundaddBg#e6ffec#10251c
Added line textaddFg#1a7f37#7ee787
Removed line backgrounddelBg#ffebe9#2d1415
Removed line textdelFg#cf222e#ffa198
Context backgroundctxBg#f6f8fa#161b22
Line numbers / markersgutter#57606a#8b949e
Badge backgroundbadgeBg#0969da#4493f8
Badge textbadgeFg#ffffff#0d1117
Added count (turn-tail list)turnAdd#1a7f37#7ee787
Removed count (turn-tail list)turnDel#cf222e#ffa198
Card background (turn-tail)turnBgrgba(255,183,77,.1) (light orange 10%)rgba(255,183,77,.1) (light orange 10%)
Card border (turn-tail)turnBorder#ffb74d (light orange)#ffb74d (light orange)