DeepSeek Harness (DSH) is a plugin-based system. When building agents, it is typically necessary to bind specific sessions, working directories, and toolchains. If you simply want to “ask a quick question” without the need for complex agent loops or file I/O, and require a lightweight chat window that does not interfere with your current project, dsh-sidebar-chat is exactly the plugin you need. It registers a native tab in the right sidebar of DSH, providing an interactive interface identical in appearance to the official DeepSeek website.
Installation¶
The installation process does not rely on the dsh plugin add command; instead, it utilizes a profile installation script. The script performs three main tasks: it symlinks (or copies) the package into the profile’s node_modules; records the link: dependency in the profile’s package.json and mounts the bundle; and clears any manual configurations left in cordis.patch.yml by previous versions.
node tools/install-into-profile.mjs
Upon completion of the installation, the profile’s bundles list and cordis.patch.yml will be hot-reloaded. Simply save the file and refresh your page after a few seconds to apply the changes.
Core Features¶
1. Native Right Sidebar Tab¶
The plugin registers itself as a native right sidebar tab type named “Chat,” positioned alongside tabs such as Files, Terminal, and Browser. It offers two entry points: a “Chat” pill in the right sidebar’s “+” menu, and a chat bubble button located to the left of the main input box (allowing you to bring it to the foreground with a single click).
2. Appearance and Interaction¶
The interface fully replicates the design system of the DeepSeek official website.
* Style: Follows DSH’s light/dark themes, utilizing the same set of design tokens for bubbles, chips, and input cards. User messages appear as light blue bubbles on the right, while assistant responses are displayed directly on the page.
* Thinking & Search: Supports two independent chips: “Deep Think” and “Web Search.” The Deep Think chip allows for level adjustment, while Web Search is enabled by default.
* Streaming & Collapsing: Supports streaming output. Thinking processes are displayed as collapsible rows, and a floating copy button is provided beneath the answers.
3. Model Selection¶
The model list is sourced directly from providers that are actually routable within the deployment (obtained via ctx.llm.listProviders/listModels/resolveModelInfo). Model cards are grouped by provider and annotated with image capabilities and context length.
4. Text and Images¶
- Input: Supports text input; press
Enterto send andShift+Enterfor a new line. - Images: Supports four methods of input: paste (
Cmd+V), drag-and-drop, and file selection. Images are first uploaded to a temporary folder on the host. The plugin only requests references readable by the model from the framework upon sending, ensuring the project directory remains untouched.
5. Turn Summary¶
Statistical information is displayed at the end of each response, formatted as Input N · Output M tokens · Duration Xs. This data is derived from the provider’s usage metrics and the disk-write timestamps recorded by the framework.
Data and Principles¶
Data Storage¶
- Images: Original images are stored in the system temporary directory
<os.tmpdir()>/dsh-sidebar-chat/files/, with an index fileindex.jsonlocated at the same level. The plugin includes a fallback mechanism to clean up files that have not been used for 14 days. - Conversations: Conversations and messages are persisted under
$DSH_HOME/dsh-sidebar-chat/conversations/, with one JSON file per conversation, ensuring they are retained after restarts.
Technical Details¶
- No Working Directory Binding: The plugin does not create DSH sessions, set the current working directory (cwd), or read/write to the session workspace; it solely leverages the
llmandattachmentsframework capabilities. - Dependency on Platform Modules: Interface rendering relies on the built-in platform module
@deepseek-ai/dsh-client-ui-primitives(seed word). To ensure Markdown rendering functions correctly, the plugin supplements necessarylabels(e.g.,code.copyLabel). - Plain Text Models: If an image is sent while a model that does not support images is selected, a prompt will display “The image will be replaced with placeholder text,” rather than allowing the model to ignore the input silently.
Use Cases¶
Ideal for scenarios where you need to quickly query model capabilities, debug prompts, or engage in plain text conversations within the DSH environment, without the need to switch to a browser or create complex agents.