dsh-deepseek-web-panel: Embedding the DeepSeek Official Website into the Main Area of the DSH Desktop Version

Preface

When building agents or having daily conversations in DeepSeek Harness (DSH), the common practice is to integrate with the API or open chat.deepseek.com separately in a browser. The former requires handling authentication and quotas, while the latter is fragmented from the Harness’s sessions and layout. If you want to use the official website’s chat interface and history sidebar directly in the client’s main area without going through the API, you need an embedding approach managed by the desktop host. Below introduces the positioning and usage of the community plugin dsh-deepseek-web-panel.

What Is This

dsh-deepseek-web-panel (maintained by ChengMioa) integrates the DeepSeek web version into DSH: a global panel in the main area that uses Electron <webview> to load the real chat.deepseek.com. The history list uses the official website’s own sidebar, not relying on iframe (the site’s CSP prohibits being nested by regular pages). The plugin is categorized as a client, the current npm package version is 0.3.2, and the license is MIT.

Core Features

Web Area Panel

At the bottom of the left sidebar there is a globe icon 「Web Area」 (when the sidebar is collapsed, only the icon is shown). Clicking it will automatically collapse the DSH left sidebar, letting the web page fill the entire window; when leaving the panel, it automatically restores.

  • The center main area switches to the DeepSeek official website, the official website’s own sidebar is the history list (Today / Yesterday / Within 7 days / Within 30 days / Grouped by month; pinning and multi-selection match the official website).
  • Clicking any conversation in the left sidebar returns you to the DSH conversation.

One-click Quote

After selecting text in the web page, click the floating ❝ button in the middle of the right side; it automatically switches back to the DSH conversation and inserts the selected content as a quote block (> …) into the input box, preserving the original draft.

Right-click to Delete Conversation in the Sidebar

The official website’s history sidebar does not have a right-click menu by default; the plugin injects scripts within the web origin, so right-clicking in the left sidebar area pops up 「Delete This Conversation」, which requires clicking again to confirm before calling the site’s POST /api/v0/chat_session/delete. After successful deletion, the page automatically refreshes and it cannot be recovered. This capability relies on the site’s DOM and internal APIs and may break after site updates; when it breaks, you can still use the official website’s built-in 「… → Delete」.

Window Dragging and Layout

When the sidebar is collapsed and the panel is attached to the top-left corner of the window, a 48px window strip is left at the top, and the entire strip on the right side of the DSH control can drag the window; the web content shifts down to avoid the traffic lights and DSH’s reopen control.

Environment Requirements

  • Desktop version of DeepSeek Harness (macOS / Windows / Linux). When opened in a browser via dsh web, there is no Electron webview and the panel prompts 「Web Area needs to be used in the desktop client」.
  • Reuses the desktop version’s existing webview lease protocol (dshDesktop.browser) without bypassing the main process’s sandbox and network policies.
  • The plugin’s engines.dsh requires ^0.2.1-rc.2.

Installation and Activation

Installation must use the desktop profile. dsh plugin add writes the package into the profile’s dsh.profile.bundles, taking effect only after fully exiting and reopening the client.

# When published to npm (profile is desktop)
dsh plugin --profile desktop add dsh-deepseek-web-panel

# Install from a tarball
dsh plugin --profile desktop add file:/path/to/dsh-deepseek-web-panel-0.3.0.tgz

# Local development (symlink the current directory)
dsh plugin --profile desktop add link:$PWD

Uninstall:

dsh plugin --profile desktop remove dsh-deepseek-web-panel

Typical Usage

  1. Install the plugin in the desktop version of DSH and restart the client.
  2. Click 「Web Area」 at the bottom of the left sidebar; the main area loads chat.deepseek.com, and you can browse and manage history using the official website’s sidebar.
  3. When you need to quote web content in a Harness conversation: select text in the web page → click ❝ → return to the quote block in the DSH input box.
  4. When you need to delete an official website conversation: right-click the corresponding row in the history sidebar → 「Delete This Conversation」→ confirm again.

Use Cases and Notes

Who it’s for: Users already using the DSH desktop version who want the DeepSeek official website interface as their main workspace and do not want to separately maintain API keys or build their own chat frontend.

Ecosystem notes: DSH advocates “everything is a plugin”; the plugin directory site SkillHub is community-maintained and has no official affiliation with DeepSeek / Hithink.

Security and trust: The plugin runs with the current DSH process’s permissions and injects scripts into the official website page to implement quoting and right-click deletion. Before installing, it is recommended to read the GitHub repository source code and the MIT license; userToken is only used in the web context for deletion requests, and the plugin’s README states it neither reads nor saves it.

Implementation notes (for troubleshooting): The panel key is deepseek-web; the Node side lib/index.js is an empty implementation, while the browser side lib/client.js registers the panel and sidebar entry. The repository provides node test/smoke.mjs for a smoke self-check.

Conclusion

dsh-deepseek-web-panel uses a controlled webview to place the real DeepSeek chat site into the DSH main area. While preserving the official website’s history and interactions, it adds desktop integration capabilities such as quoting back to the conversation and sidebar deletion. For more information, see the directory page skillhub.cn/plugins/ChengMioa/dsh-deepseek-web-panel and the source code github.com/ChengMioa/dsh-deepseek-web-panel.

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

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

Xiaoye