wssdll/dsh-chat-preset: Turning DSH into a Clean Web Chat

Introduction

DeepSeek Harness (DSH) is designed for “coding agents” by default: dozens of tools, thousands of tokens of tool descriptions, plus injections of runtime context and working directory. While useful when writing code, this content constantly consumes tokens during pure chat sessions, and forces the persona to shift toward a serious, concise, and blunt tone.

dsh-chat-preset by community maintainer wssdll is a client-side preset plugin for DSH. Its goal is to bring the web-based chat experience into DSH: drastically compressing the toolchain and schema, retaining only web search, opening web pages, and reading attachments, while fixing the Chinese Chain of Thought (CoT). Below, I will introduce what problems it solves, how to install it, and the boundaries when coexisting with other plugins.

What is this?

@wssdll/dsh-chat-preset (GitHub: wssdll/dsh-chat-preset) is a chat-specific Agent preset for DSH, under the MIT license, with the current package version 1.3.3. It does not depend on third-party plugins; time injection and working directory masking are provided by this package itself.

Actual comparison (session measurements in the README):

Toolchain Count Tool Schema
Unprocessed 27 ~7,589 tok
With this plugin 4 ~350 tok

The Tool Schema is reduced by about 22 times; the system prompt only retains a short persona, without injecting runtime context, working directory, Harness checkout path, etc.

Core Features

Token-saving Tool Whitelist

plugins/guard-tools.js blocks tools based on a whitelist, allowing only four names: web_search, web_fetch, read, and read_image. All other global tools go to the deny list; newly installed plugin tools are also excluded by default without needing configuration changes. The script only takes effect for sessions with the chatmode preset.

Internet access and reading attachments use official packages:

  • dsh-tool-web: web_search + web_fetch
  • dsh-tool-fs: Only enables read and read_image; write, edit, and apply_patch are all disabled. Reading files goes through ctx.fs, with paths parsed by the Host.

Persona and Context

cordis.patch.yml is the core preset:

  • dsh-persona, complete: true: The entire persona serves as the entire system prompt.
  • includeRuntimeContext: false: Disables runtime context.

The persona constrains the tone to be friendly, allows colloquialisms and emojis, is honest, and searches when necessary. The Chain of Thought is fixed to Simplified Chinese, and the response language follows the user’s question. Specific phrasing is subject to cordis.patch.yml in the repository.

Built-in Patches

  • plugins/clock.js: Injects the current time once per hour (replacing the multi-line technical description of the official dsh-time-context).
  • plugins/no-cwd.js: Masks the dsh-working-directory system reminder using an empty entry with the same name (the complete: true and includeRuntimeContext: false settings cannot block registrations with required: true).

It listens to tools/change and recalculates the mask for protected sessions when tools change; usually, there is no need to close the session or restart DSH.

Installation and Usage

DSH Version Requirement: >=0.2.2-rc.1 <0.3.0-0 (the README indicates actual testing was done on 0.2.2-rc.5).

Plugin Market: Search for dsh-chat-preset in DSH’s “Plugin Market” (dsh-market).

Command Line (must match the README text exactly):

# Desktop
dsh plugin --profile desktop add @wssdll/dsh-chat-preset
# DSH-Go / Web
dsh plugin --profile web add @wssdll/dsh-chat-preset

After installation, enable it in “Settings” -> “Agent Preset” -> “Chat Mode”, or switch from “Standard Mode” to “Chat Mode” when creating a new conversation. After installing in DSH-Go, click “New Conversation” -> “Preset” to see “Chat Mode”; if it shows a loading failure, it is common for the built-in engine version to be lower than 0.2.2-rc.1.

Typical Usage

Just switch presets daily: select “Chat Mode” for new conversations; when you need to look up information or read attached documents and images, the model can still use search and read / read_image.

If you want to use it with minimal cost (the README notes that the search API incurs separate fees), you can also combine it with:

dsh plugin --profile desktop add dsh-connect-workbuddy
dsh plugin --profile desktop add dsh-free-search

After configuring dsh-connect-workbuddy, you can choose the WorkBuddy model; dsh-free-search replaces web_search with free search. When both are enabled, the README claims it can be completely free; the same solution works on DSH-Go as well.

Verify current toolset: Ask “What tools do you have now?” in chat mode. The extra ones are often tools registered within a “scope” (see next section).

Suitable Scenarios and Notes

Who is it for?: Users who primarily do pure chatting in DSH, want to save context space, and need search and reading attachments; not suitable for the same session if you still rely on the full coding toolchain like Shell, Git, and file writing.

Coexisting with other plugins

  • Global tools: The whitelist script can block them.
  • Scoped registrations: restrict() cannot block them (the dsh-tools convention: scoped registrations remain visible). For example, dsh-gitbash-shell registers bash into the preset scope; you can only disable that plugin or accept that the tools are still visible.

Host Capabilities: no-cwd.js requires the Host to provide the systemPrompt service; if missing, the patch might fail to load. You can remove the chatmode-no-cwd line from the preset.

Security Reminder: Plugins run under DSH process permissions. Please check the GitHub repository source code and the MIT license yourself before installing. The community directory SkillHub Plugin Page is an independent listing and has no official affiliation with DeepSeek / Hyperscience.

Similar plugins on the market, as mentioned in the README, either do not block the toolchain or do not support search and attachments. The positioning of this plugin is a “pure chat” preset that balances both.

Conclusion

wssdll/dsh-chat-preset condenses DSH from a “default coding stack” into four tools and a schema of about 350 tokens, using a Chinese Chain of Thought and a short persona to emulate the web-based chat experience. You should still use the Standard Mode when you need coding capabilities; for directory introductions, see SkillHub, and refer to GitHub for source code and installation instructions.

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

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

Xiaoye