DeepSeek Harness Design Plugin: Generating Interactive HTML Prototypes in Conversations

Preface

In the DeepSeek Harness (DSH) plugin ecosystem, there is a tool named DeepSeek Harness Design. It solves the problem of the disconnect between “prototyping” and “coding” in traditional front-end development. Through this plugin, the model can directly modify pages within the conversation. The Design sidebar provides real-time previews, and clicking on elements provides precise context to the model, thereby transforming the conversation into an interactive HTML prototype.

What is this

DeepSeek Harness Design is a community-maintained plugin released under the MIT license. It embeds the HTML prototype development workflow into the DSH conversation flow; the model is responsible for editing the page, while the plugin handles rendering and state management.

Core Features

  1. Real-time Preview & Viewport Adaptation
    The plugin provides real-time previews for three viewport widths: mobile, tablet, and desktop (390px, 834px, and 1280px respectively). You can switch viewports in the sidebar; if the content is too wide, horizontal scrolling is required to view it.

  2. Element Selection & Context Interaction
    When element selection mode is enabled, clicking any element on the page passes its state (ID, class names, structure, etc.) to the model. Upon receiving this context, the model can perform modifications specifically on that element without needing to re-describe the entire page.

  3. Multi-scheme Management & Version Control
    It supports creating multiple design schemes (Alternatives) and historical revisions (Revisions) for each scheme. You can switch between schemes or versions via a dropdown menu, allowing for quick comparison of different states without operating the toolbar.

  4. Data Persistence & Export
    Session data is saved in the Harness’s persistent storage. Even if the Harness restarts or a write operation fails, the plugin will attempt to recover or roll back. Additionally, it supports exporting the current HTML document to the session workspace.

Installation and Activation

The plugin has not been published to npm; you need to download the tarball package from GitHub Releases.

  1. Download deepseek-harness-design-0.6.1.tgz from GitHub Release v0.6.1.
  2. Execute the installation command in the download directory (using Desktop as an example):
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile desktop add ./deepseek-harness-design-0.6.1.tgz
  1. After installation is complete, fully exit and restart the Harness.
  2. Open the right sidebar and click Design in the + card.
  3. Ensure you are using DeepSeek Harness version 0.2.0-rc.2 (known compatibility) and that your Node.js environment is version 22.12 or higher.

Typical Usage

  1. Create Pages: Ask the model to create a page within the conversation. After the model successfully calls the design_apply tool, the preview area in the Design sidebar will update.
  2. Precise Modification: Enable element selection, click on a button or text, and tell the model to “change this button to a rounded style.” The model will read the selected element and apply the modification.
  3. Create Alternatives: Based on the current draft, ask the model to “create an edited version with a dark theme.” The plugin will retain the current draft and generate a new scheme for comparison.
  4. Rename Schemes: Click the pencil icon next to the scheme selector to rename a scheme (e.g., “Warm Coffee Homepage”). Renaming only updates the label and does not alter the internal state.
  5. Version Comparison: In comparison mode, the left and right sides can independently select different schemes and versions to achieve side-by-side comparison.

Notes

  1. Compatibility: The plugin has been tested for the Web Profile of DeepSeek Harness Desktop 0.2.0-rc.2; compatibility with other versions has not been verified.
  2. Storage Limits: A single session is limited to 32 schemes, with a maximum of 40 historical versions per scheme. The character count for a single HTML document is limited to 400,000.
  3. Uninstall Old Packages: If you have previously installed an old plugin with the same or a different name (such as dsh-design), you need to remove the old package name before installing the new version:
    dsh plugin --profile desktop remove dsh-design
  1. Independence Statement: This project is maintained independently by the community and is not affiliated with DeepSeek officials.

Summary

DeepSeek Harness Design integrates the prototyping process directly into the conversation, making it suitable for scenarios requiring rapid UI verification or multi-scheme comparison before development. Through element selection and persistent storage, it lowers the barrier to entry for front-end interactive development. For more details, please refer to the GitHub Repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye