Yinxe/deepseek-harness-plugins--plugins-file-change-viewer ↗★ 7

@dshp/file-change-viewer

DeepSeek Harness (DSH) file change viewer: takes over the edit / write Tool cards in the conversation flow and renders them already expanded, so every file mutation shows its changed lines (plus the file path, hunk stat and a click-to-open link) without a single click. 文件修改查看器:接管对话流里的 edit / write 工具卡片并默认展开,让每一次文件改动直接显示变更内容、文件路径与增删行数,无需点击展开。 适合频繁使用文件编辑工具,希望直观查看代码 Diff 而无需手动点击的用户。

Package
@dshp/file-change-viewer
Compatibility
Unverified
Version
0.4.0
License
MIT
Last updated
Oct 1, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yinxe/deepseek-harness-plugins#dbb1c022e1017f40170f0827609e6ac8c32ff148&path:plugins/file-change-viewer

配置项

三项显示偏好 + 一个工具开关,落 profile 条目 dshp-file-change-viewer 的 config:,界面入口是 设置 → 左侧导航「File Change View」(settings.section,id = 该命名空间):

偏好控件默认说明
view两张预览单选卡highlighthighlight = 单代码块统一 diff(整行红绿 + 行号 + shiki 高亮);diff = 逐行 ± 视图。卡里直接画出两种效果
contextLines下拉选择框3改动两侧各多显示几行没受影响的上下文(0 / 3 / 5 / 8)。这几行取自文件当前内容(Host 的 /locate 路由定位后一并回传),不是模型在 old_string / 补丁片段里带的那几行——模型只圈 1 行上下文时也能看清改动落在哪里;读不到文件、或这段改动之后又被改过时不补上下文(不编内容)
sectionsOpen开关false新渲染的「编辑 / 写入」操作是否默认展开(开 = 直接看到改动,行内文件块也默认展开;关 = 与思考 / 读取行一致,点一下才展开)。键名是历史遗留,含义已收敛为「这一行要不要默认展开」;只作用于新渲染的行,且只作用于本插件接管的编辑 / 写入行,bash / read 等其它行不受影响。会话页头的「展开 / 收起改动」是另一个入口(只压当前会话、不落盘),两者互不影响
patchTool开关false是否注册 patch 工具(测试版)。关 = 模型只用官方 read / write / edit;开 = 多出本插件的批量补丁工具。动态生效:Host 在 settings 的 onChange 里重新判定,注册 / 反注册即时完成,不必重启 dsh web