dsh-media-preview
Run the following command in DeepSeek Harness:
dsh plugin install xiaokaizhou/dsh-media-preview
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install xiaokaizhou/dsh-media-preview in your terminal to install this plugin. Source code is available at https://github.com/xiaokaizhou/dsh-media-preview
About this plugin
When an assistant or tool in a DSH chat returns a local audio/video path or an online media URL, the user is left staring at a plain-text string with no way to preview the content. dsh-media-preview fixes this: it automatically detects local file paths and http(s) links in messages and renders them as inline audio, video, or image preview components, so media plays right where the text appeared. The media engine supports HTTP Range requests (206 Partial Content) for smooth video seeking, covers 27 audio, video, and image formats, and uses a whitelist of root directories plus file extensions to avoid false-matching external URLs. Non-ASCII folder names are handled with safe UTF-8 path encoding. Error reporting is equally transparent: missing files, permission issues, directories, symlink loops, and size overflows each return a distinct HTTP status code with a human-readable reason so the browser player can surface meaningful error messages. If you debug media files locally, collaborate with an assistant on audio/video assets, or simply want to preview the content behind a path or link without leaving the chat, this plugin saves you an extra redirect and a copy-paste step.
Screenshots
Use Cases
- Preview a local video path inline with a seekable progress bar in chat
- Auto-render an image URL returned by a tool as an embedded thumbnail
- Quickly confirm a local audio file is playable during debug sessions
Best For
- Developers handling local audio and video assets in DSH
- Debuggers who frequently verify media file availability in chat
- Media professionals seeking to reduce switching between file manager and chat
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.

