dsh-code-diff-highlight
v0.1.1
Published
Client plugin for DeepSeek Harness: custom diff panel that opens a changed file's comparison in a right-sidebar tab.
Maintainers
Readme
dsh-code-diff-highlight
A client plugin for DeepSeek Harness that lists the files changed by a turn and opens each file's comparison in a dedicated right-sidebar tab with custom diff highlighting.
Features
- A “Custom diff panel” card at the end of every turn, listing the changed files with added/deleted line counts.
- Click a file to open its diff in a separate right-sidebar tab (not inline in the chat).
- Unified and Side-by-side views.
- Line numbers for both sides; green
+/ red-; a lightweight built-in syntax highlighter. - Handles
binary,too large, andcoarse(timed-out) comparisons. - No card is shown for turns that changed nothing.
Install
The package is a bundle: installing it mounts the plugin automatically — no manual profile edits.
cd C:\Users\<user>\.dsh\profiles\desktop
pnpm add dsh-code-diff-highlightThen add dsh-code-diff-highlight to dsh.profile.bundles in the profile's
package.json, or install it from the GUI: sidebar → Plugins.
If the GUI was already open, reload the page (F5).
Usage
After a turn that changed files, a “Custom diff panel” card appears under the reply. Click a file to open its diff in the right panel; switch between files from within the tab.
How it works
A Cordis client plugin (dsh.client, platform: "web"):
- folds
workspace/changesevents into per-turn data (ctx.uiConversation.events.register); - registers a right-sidebar tab type and its body
(
ctx.sidebarRightTabs.register+ thesidebar.right.pane.tabslot); - reads data through the authenticated
api/changes.summaryandapi/changes.diffroutes.
lib/client.js is a pre-built browser bundle — no build step is required.
License
MIT
