cirelir/dsh-change-review ↗★ 5
dsh-change-review
DeepSeek Harness 会话修改审查:追踪会话内 write/edit 工具调用,以可自定义颜色的 diff 对比展示;会话隔离、子代理聚合、SSE 实时推送。
AI 분석
核心用途是实时审查和对比 Agent 对文件进行的修改。适合需要精确掌控、撤销或确认 Agent 代码及文本写入改动的开发与协作任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cirelir/dsh-change-review🚀 Usage
- Open a session and click the 「审查」(Review) view tab (after「对话」Chat, before「轨迹」Trajectory)
- 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)
- The badge increments in real time when files change; top bar: ↻ refresh, 清空 clear the current session's records
- 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
- 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
- Colors: Settings → 修改审查 (8 items + light/dark presets + restore defaults), auto-saved, survives refresh
🎨 Color Configuration
| Item | Key | Light default | Dark preset |
|---|---|---|---|
| Added line background | addBg | #e6ffec | #10251c |
| Added line text | addFg | #1a7f37 | #7ee787 |
| Removed line background | delBg | #ffebe9 | #2d1415 |
| Removed line text | delFg | #cf222e | #ffa198 |
| Context background | ctxBg | #f6f8fa | #161b22 |
| Line numbers / markers | gutter | #57606a | #8b949e |
| Badge background | badgeBg | #0969da | #4493f8 |
| Badge text | badgeFg | #ffffff | #0d1117 |
| Added count (turn-tail list) | turnAdd | #1a7f37 | #7ee787 |
| Removed count (turn-tail list) | turnDel | #cf222e | #ffa198 |
| Card background (turn-tail) | turnBg | rgba(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) |