dsh-inline-diff
开发工具 活跃维护

dsh-inline-diff

JanEickholt/dsh-inline-diff

为编辑、写入类工具调用生成始终展开的并排差异对比,直接在聊天界面内展示每次文件修改的具体内容,无需跳转即可快速核对变更细节,可直观追踪所有文件迭代记录。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
175 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:JanEickholt/dsh-inline-diff
git clone https://github.com/JanEickholt/dsh-inline-diff.git
git clone git@github.com:JanEickholt/dsh-inline-diff.git
README.md master

dsh-inline-diff

See every file your agent edits — right in the chat, no clicking required.

By default the DeepSeek Harness web GUI collapses each file edit into a tiny one-line row. This plugin replaces those rows with an always-open, side-by-side diff: old code on the left, new code on the right, additions in green, deletions in red, with line numbers and a +N −N summary for every file.

Without collapsed rows, one click per file to see what changed
With the full diff is just there, in the conversation

What it looks like

A typical edit: changed lines paired side by side, with the exact words that changed highlighted:

A side-by-side diff of an edit, with changed words highlighted

Smaller edits stay compact:

A compact diff card

Words or whole lines

By default a changed line gets double highlighting: the row is tinted green/red, and on top of that the exact words that changed get a stronger highlight. Prefer it calmer? Open Settings → Plugins → Inline diff and pick Lines only. You keep the row tint but lose the word chips. The choice is saved in your DSH settings and survives restarts.

Themes

Every color on the card, from surfaces and text to borders and the green/red diff tints, is derived from your GUI's theme tokens (Settings → Appearance). The card follows light mode, dark mode, and any custom accent colors instead of a fixed palette.

Install

With the dsh CLI (easiest):

dsh plugin --profile web add github:JanEickholt/dsh-inline-diff

From GitHub (manual, same result):

  1. Add the plugin to your profile's package.json:

    "dsh-inline-diff": "github:JanEickholt/dsh-inline-diff"

    then run pnpm install in the profile directory.

  2. Add it to your profile's cordis.patch.yml:

    - insert:
       - id: inline-diff
         name: 'dsh-inline-diff'
  3. Refresh the GUI page. Done. Every edit and file write now renders as an inline diff.

Manual: copy this repository into <profile>/node_modules/dsh-inline-diff/ and add the same patch row.

Contributing

Contributions of any kind are welcome: code, bug reports, docs, design ideas, screenshots, or just telling us what confused you. Open an issue or a pull request; nothing is too small.

About this project

This plugin was written by an AI coding agent (with a human steering it).

License

MIT