dsh-preview-plugin
Run the following command in DeepSeek Harness:
dsh plugin install RaulLazaro/dsh-preview-plugin
Paste the following prompt into your AI chat to install this plugin:
Install it in DeepSeek Harness by running dsh plugin install RaulLazaro/dsh-preview-plugin; the full source code is at https://github.com/RaulLazaro/dsh-preview-plugin
About this plugin
When an agent in DeepSeek Harness spits out a front-end app, you should not have to context-switch to another browser tab, manually configure a dev proxy, and fight with SPA routing just to see it. dsh-preview-plugin folds that loop into DSH's Preview tab: start your local dev server, type the port, hit Go, and the app renders inside DSH as if it were a native page.
The proxy is far from a naïve pipe. A path-based SPA proxy rewrites every route under /preview/:port/ so both client-side routing and backend API calls resolve against the DSH host. For HTML responses it injects a small script that intercepts fetch() and XMLHttpRequest.open(), guaranteeing that SPA-driven async requests take the same proxied path. Non-HTML assets such as JS, CSS, and images are streamed through untouched. Ports can be set globally or per conversation session, and the Preview tab polls the host automatically, so if an agent changes the port via the API you see the update without a manual refresh.
On the security side, the proxy targets 127.0.0.1 exclusively, eliminating external SSRF vectors. The iframe runs in a sandbox with only scripts, same-origin, forms, and popups permitted, and the port field is strictly validated to one-to-five-digit numbers. If you use DSH for front-end projects and want to see conversation and live output side by side in one window, this is a lightweight, drop-in preview solution.
Use Cases
- Preview an agent-generated front-end app right inside DSH by entering a port, without switching browser windows
- Develop SPA projects where client-side routes and backend API calls are automatically rewritten through the transparent proxy
- Run multiple projects in parallel sessions with per-session ports; the Preview tab syncs port changes automatically
Best For
- Developers using DeepSeek Harness for front-end projects
- Anyone who wants conversation and live UI in a single window
- Teams that need a lightweight plug-and-play preview without deploying a separate proxy service
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.