dsh-plugin-inline-image
Run the following command in DeepSeek Harness:
dsh plugin install usavv1547-cyber/dsh-plugin-inline-image
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install usavv1547-cyber/dsh-plugin-inline-image in your terminal to install this plugin (source: https://github.com/usavv1547-cyber/dsh-plugin-inline-image); after installation, restart dsh web to load it.
About this plugin
DSH Web UI renders http(s) image links in Markdown, yet workspace files have no static route and data: URIs are blocked by the sanitizer. The practical consequence: charts produced by matplotlib or any local image can only be handed to the user as a clickable file path they must open separately. dsh-plugin-inline-image mounts a strictly sandboxed read-only route /dsh-image/:alias/... on the existing dsh web process, so an agent writes a relative link in its message and the image appears inline in the chat bubble, with no local HTTP server involved.
Security is the plugin's core contract, built on defense in depth: only GET and HEAD are accepted; every path segment is URL-decoded and checked for empty segments, dot segments, and encoded traversal; resolve plus realpath double-containment checks prevent symlink escape; an extension whitelist restricts output to common raster formats (png, jpg, webp, gif, avif, bmp, ico), with SVG rejected by default. Configuration is a single alias-to-directory mapping in cordis.patch.yml, or zero config to auto-fall back to every registered workspace.
Built for anyone who asks DSH agents to produce visual output: data analytics, chart presentation, ML experiment review. The plugin is a single-file implementation with a thorough attack-surface test suite, ships under the MIT license, and takes effect after one dsh web restart.
Use Cases
- Agent produces a matplotlib chart that renders inline in the conversation
- Preview workspace screenshots or diagrams without clicking a file link
- Eliminate the need to spin up a local HTTP server just to show an image
Best For
- Data analysts who need agents to render visual charts inline
- Researchers reviewing ML experiment results in the DSH Web UI
- Developers wanting a secure, zero-server way to serve workspace static files
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.