AI Agent Hub
Back to plugins
🖥️

img-preview

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install dhb861832993-star/img-preview

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

Install from https://github.com/dhb861832993-star/img-preview by running dsh plugin --profile web add github:dhb861832993-star/img-preview in your terminal, then restart the dsh web service to activate it in new sessions.

About this plugin

A recurring friction in DeepSeek Harness image pipelines is that the model writes a picture into the workspace but only returns a file path in the reply, forcing you to leave the chat and open the file by hand. img-preview removes that step entirely: the model calls the img_serve tool, the host validates the path and issues a loopback URL, and the client renders the image inline right inside the conversation.

Ten formats are supported out of the box — png, jpg, jpeg, webp, gif, avif, bmp, svg, ico and tga — with a 128 MiB per-file cap. TGA files are decoded on the host and re-encoded to PNG on the fly, since browsers do not natively display TGA. SVG rendering is executed in a browser image context where scripts are blocked, and clicking the original opens it in a new tab. The plugin ships with zero third-party dependencies.

On the security side, the host normalises and prefix-checks every path so only files inside the workspace root can be served, preventing directory-traversal attacks. An extension whitelist and the size cap add further guardrails, and the browser never reads the local disk directly.

This plugin is a good fit for developers who frequently generate local images inside Harness — batch AI image runs, design-iteration loops, or data-visualisation charts — and would rather preview results in-context than hop between windows.

Use Cases

  • Preview AI-generated images inline in the chat right after a batch run, without leaving the window to open files manually
  • Quickly inspect freshly rendered design drafts inside the workspace during iteration loops
  • View data-visualisation charts inline in the conversation after each script run, enabling fast parameter tweaks

Best For

  • Developers who regularly generate local images inside a Harness workspace
  • Users running AI image-generation or rendering pipelines on DeepSeek Harness
  • Creators who want to preview design drafts or charts in-context without context-switching