dsh-media-inline-preview
Run the following command in DeepSeek Harness:
dsh plugin install seeingrain/dsh-media-inline-preview
Paste the following prompt into your AI chat to install this plugin:
To install this plugin in DeepSeek Harness: the source is at https://github.com/seeingrain/dsh-media-inline-preview, run dsh plugin install seeingrain/dsh-media-inline-preview to finish the setup.
About this plugin
In DSH chat sessions, media files produced by agents have historically appeared only as bare paths or raw JSON specs, forcing users to manually locate and open them in a file manager. dsh-media-inline-preview solves this: once installed, it requires zero configuration. When a session references or produces images, videos, or audio, the agent automatically invokes img_serve or media_serve and emits an inline fence, rendering a playable card or player directly within the chat message.
The plugin covers three fence types—img, video, and audio—using mutually exclusive extension sets to determine media kind and prevent bare JSON bodies from mis-triggering across categories. If playback fails, it automatically retries with a cache-busting parameter; a second failure gracefully degrades to an error card so the conversation flow is never interrupted.
On the security side, every route enforces a per-request browser trust fence: the Host must be loopback or a LAN IP sampled at startup, cross-site requests are rejected outright, and an Origin header must match the Host. Workspace file access is further guarded by realpath symlink-escape detection, an extension whitelist, and 128 MiB / 2 GiB size caps. It is well suited for developers who want to preview media files inline within local or LAN DSH sessions while maintaining strict security boundaries.
Screenshots
Use Cases
- Agent produces an image in chat and it renders as an inline card without manual file lookup
- Play video or audio directly within a DSH chat message over a LAN session
- Hand-write an img, video, or audio fence and get an instant player card
Best For
- Developers using DSH local sessions who want inline media previews out of the box
- Teams collaborating over LAN via DSH who need instant media file access
- Self-hosted users who prioritize path security and cross-site protection
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.

