Preface¶
When developing agents using DeepSeek Harness (referred to as DSH below), there is often a need: while the main session is progressing a task, you want to ask DeepSeek a separate question midway—confirming an API detail, discussing an implementation from a different angle—without wanting these questions to mix into the main session and consume context. Common alternative methods are to open a separate web chat window, but copying and pasting back and forth between the work interface and chat page is cumbersome, and it is also tricky to reference a piece of text from the main session.
The dsh-deepseek-chat introduced below is a DSH plugin designed for this scenario: it adds an independent “Ask DeepSeek” chat window in the Web UI, allows you to directly reference and ask questions when selecting text in the main session, and ensures the plugin conversation does not interfere with the main Agent session.
What is this¶
dsh-deepseek-chat is maintained by lhenlihai-hub, licensed under MIT, and is currently version 0.2.2. One-sentence positioning: add an independent “Ask DeepSeek” chat window to the DeepSeek Harness Web UI.
DSH’s philosophy is “everything is a plugin,” where UI extensions are simply hooked into the Web UI via the plugin mechanism. The feature of this plugin is to reuse the DeepSeek models you have already configured in DSH: all requests go through DSH’s ctx.llm, using the user-configured DeepSeek routing and model, without the need to input an API Key separately.
Core Features¶
The implemented capabilities of the plugin are as follows:
- Click on the right side of the page to open an independent “Ask DeepSeek” chat window;
- Switch the user-configured DeepSeek models from the top of the window;
- Select text in the main session to directly “reference and ask DeepSeek”;
- Supports streaming output, chain of thought (thinking process), stop generation, and new conversations;
- Automatically adapts to Chinese/English interfaces and light/dark themes.
Plugin conversations are independent of the main Agent session; closing or creating a new plugin conversation will not modify the main session.
Regarding API and privacy: The plugin has no API Key input box; it does not read, save, or send the API Key to the browser. If DeepSeek has not been configured, the plugin will only prompt you to go to DSH’s “Settings → Models”.
Installation and Enabling¶
For those who already have the dsh command, install the plugin first:
dsh plugin --profile web add github:lhenlihai-hub/dsh-deepseek-chat
Then start the Web UI:
dsh web
For those using the official npx startup method without a global dsh command, use:
npx --yes --package @deepseek-ai/dsh --package pnpm dsh plugin --profile web add github:lhenlihai-hub/dsh-deepseek-chat
Then start:
npx @deepseek-ai/dsh web
If the Web UI is currently running, you need to stop it and restart it after installation for the changes to take effect. The entire installation process does not require downloading a compressed package, cloning the repository, or building locally.
Typical Usage¶
-
After installing and restarting the Web UI, click “Ask DeepSeek” on the right side of the page to open the independent chat window.
-
When multiple DeepSeek models are configured, switch them from the top of the window.
-
Select a piece of text in the main session to directly “reference and ask DeepSeek”; the selected content enters the plugin window as a reference, and you just need to supplement your question.
-
You can stop generation at any time during the process; if you want to change the topic, simply create a new plugin conversation, and the main session will not be affected.
Development¶
When you want to check or modify at the source code level, the repository provides standard scripts:
npm install
npm run typecheck
npm run build
The lib/ directory is a pre-built artifact for direct installation via GitHub; normal installation does not require executing a build locally.
Applicable Scenarios and Notes¶
Suitable for developers who already use DeepSeek normally in DeepSeek Harness and want an independent question window that does not interfere with the main session. If DeepSeek has already been configured, you can use it directly after installing and restarting the Web UI, without being asked to input the API Key again.
Note two points before installation:
-
The plugin runs with the permissions of the current DSH process; before installation, it is recommended to check the repository source code and license (MIT) to confirm you can accept it before installing.
-
The plugin declares
peerDependenciesrequiringreact ^18.2.0.
Uninstallation¶
Open “Settings → Uninstall Plugin → Confirm” in the plugin window, or execute:
dsh plugin --profile web remove dsh-deepseek-chat
When there is no global dsh command:
npx --yes --package @deepseek-ai/dsh --package pnpm dsh plugin --profile web remove dsh-deepseek-chat
Changes take effect after restarting the Web UI.
Summary¶
After the steps above, you can get an independent “Ask DeepSeek” window in the DeepSeek Harness Web UI that can reference main session text and reuse existing model configurations, without affecting the main Agent session. The plugin is small; it works as soon as it is installed and restarted.
- Community Plugin Directory Page (Independent Site): https://www.skillhub.cn/plugins/lhenlihai-hub/dsh-deepseek-chat
- GitHub Repository: https://github.com/lhenlihai-hub/dsh-deepseek-chat