AI Agent Hub
Back to plugins
🖥️

dsh-diff-view

Client Updated 2026.08.31

Run the following command in DeepSeek Harness:

dsh plugin install joao-paulo-santos/dsh-diff-view

Paste the following prompt into your AI chat to install this plugin:

In a terminal with DeepSeek Harness configured, run dsh plugin install joao-paulo-santos/dsh-diff-view and restart the harness; the source is available at https://github.com/joao-paulo-santos/dsh-diff-view

About this plugin

Across the DSH ecosystem, every client plugin that needs to render a before/after text diff used to ship its own engine, its own line-number math, and its own stylesheet, which meant line numbers drifting after context collapse, inconsistent styling, and duplicated code scattered everywhere. dsh-diff-view consolidates all of that into a single zero-dependency shared service: install the adf-* stylesheet once, and every consuming plugin renders diffs through the diffView client service without writing a line of CSS or diff logic of its own. The engine performs line-level LCS with intra-line word highlights, computes true line numbers before any context collapse so they stay accurate across ellipsis bands, and lets each component instance toggle between split and unified views independently. There is no persistence, no approval coupling, and no standalone UI; the host side is a stub. Plugins inject the service and render immediately. It is built for DSH plugin authors who need reliable, visually consistent diff rendering without reinventing the wheel.

Use Cases

  • Rendering before/after code change hunks in approval review cards
  • Powering a diff mode in a scratchpad plugin with line-level and word-level highlights
  • Displaying GitHub commit patches in split or unified layout with word highlights
  • Switching view modes independently across multiple diff panels on the same screen

Best For

  • DSH client plugin authors who need to render text diffs in their UI
  • Plugin developers building approval or review workflow interfaces
  • Plugin creators making scratchpad, GitHub integration, or similar tools with diff panels
  • Maintainers who want consistent diff styling and accurate line numbers across the DSH ecosystem