AI Agent Hub
Back to plugins
⚙️

dsh-screenshot-diff

Workflow Updated 2026.08.14

Run the following command in DeepSeek Harness:

dsh plugin install PangYiMing/dsh-screenshot-diff

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

Install the plugin in DeepSeek Harness by running dsh plugin install PangYiMing/dsh-screenshot-diff; the source code is hosted at https://github.com/PangYiMing/dsh-screenshot-diff

About this plugin

In visual regression workflows, screenshot capture and pixel comparison are often bundled, but you may already have two rendered images and simply need to see exactly where they differ. dsh-screenshot-diff does one thing: it pixel-diffs two existing images. It captures nothing—you supply the two files.

It produces two outputs: a diff.png with changed pixels highlighted in red, and a labeled triptych compare-triple.png showing A, B, and the diff side by side. Sensitivity comes in three presets—normal, high, and ultra—ranging from stable to extremely sensitive, with an explicit --threshold override for finer control. A size mismatch between the two images triggers an immediate failure rather than a silent stretch, so layout regressions are never masked. A JSON summary (similarity, numDiffPixels, total, sensitivity, threshold) is written to stdout for downstream automation.

Ideal for developers debugging UI changes, teams building visual regression pipelines, or CI jobs comparing two build artifacts. A practical tip: start with the normal preset, verify the diff lands where you expect, and only escalate to high or ultra when you need to catch subtle gradient or anti-aliasing shifts.

Use Cases

  • Compare rendered output between two build versions of the same page
  • Quickly locate pixel-level changes after a CSS or theme update
  • Validate component screenshots in a CI pipeline against expected output

Best For

  • Frontend developers debugging visual UI changes
  • Engineering teams building visual regression test pipelines
  • Automation engineers comparing screenshot artifacts in CI