algerkong/dsh-image-preview
Turns image rows in a DeepSeek Harness session into visible thumbnails with a full-size lightbox, cross-image navigation, zoom, rotate, pan and download.
dsh 0.2.x ships its own read_image toolview that stays collapsed until you expand it, and its lightbox shows one image at a time. This plugin registers a keyed slot on tool.call.toolview for key read_image at priority -1, which is the only way to shadow the shipped row, and renders a roughly 240px thumbnail that opens a lightbox with arrow-key navigation across every image loaded in the session (with a 3 / 4 counter), zoom clamped to 25-800%, rotate, drag-pan while magnified and a download button, plus keyboard shortcuts. The same lightbox takes over images the user sends (conversation.chat.user.images), image blocks in the assistant's final answer, Markdown images and image files in present delivery cards, while STL and Markdown cards keep the official sidebar preview. Image bytes are resolved through the loadImage loader the host injects into the slot owner rather than a hand-rolled attachment RPC, and every colour references a dsh --dsw-* theme token so the preview follows light and dark themes. If the host exposes no ReactDOM render root, all interception backs off and official behaviour returns.
Install
dsh plugin --profile web add 'github:algerkong/dsh-image-preview'Copied verbatim from the README's install block; the desktop profile is the same command with --profile desktop. The repo's package.json is named @alger-ai/dsh-image-preview, but that name does not resolve on registry.npmjs.org, so the documented GitHub spec is the install path the README recommends. Reload the DSH page afterwards; it is a pure client bundle with no host-side behaviour.
Compatibility
Built and verified against dsh 0.2.1-rc.2; the manifest declares engines.dsh >=0.1.5-rc.2 <0.3.0-0, so the host rejects it outside that range. Because it only shadows the renderer, the browser contract it relies on is unchanged from 0.1.5-rc.2.
Details
- Repo: algerkong/dsh-image-preview
- Category: Web UI Enhancements
- Stars: 5
- Version: 5 stars, JavaScript, no licence file in the repository, created 2026-08-27; install source is GitHub (the @alger-ai scope is unpublished); English README with a README.zh.md translation.
Alternatives
Carpon39038/dsh-image-theme · lehhair/dsh-diff-viewer · yefengliu1/dsh-agent-grid