dsh-pure-chat: DSH Pure Chat Preset

Preface

The plugin ecosystem of DeepSeek Harness (DSH) follows the philosophy of “everything is a plugin.” A session preset typically consists of a system prompt, tool guidance, a skill catalog, and so on. The model reads these pieces of information and acts accordingly. If you simply want the model to answer questions directly—without any system prompt or tool guidance—the existing presets often carry too much overhead.

dsh-pure-chat provides a “pure chat” preset: the session only carries user messages, model replies, tool calls, and a single runtime note (the working-directory verification string that DSH requires). It does not include Harness identity, agent instructions, persona, skill catalog, tool-usage guidance, sandbox or approval-policy text, nor any sub-agent identity.

Below is an overview of this plugin’s features and how to use it.

Plugin Positioning & Maintenance

The plugin dsh-pure-chat is a DSH preset component maintained by EonCosmos, categorized as a “client” plugin. It does not alter DSH’s core architecture; it simply provides a clean conversational entry point at the session level.

Core Features

Pure Chat Preset

The preset appears in the UI as Pure chat or 纯对话 (depending on the host language). Sessions using this preset send only:

  • User messages
  • Model replies
  • Tool calls and their results
  • One runtime note (e.g. Current working directory: "C:\...")

It does not include:

  • Harness identity information
  • Agent instructions
  • Persona or skill catalog
  • Tool-usage guidance
  • Sandbox or approval-policy text
  • Any sub-agent identity

All host-level global tools are hidden, including Agent Teams tools mounted at the host scope. The model can only see the three tools bundled with this preset.

web_search & web_fetch

The preset ships with two web tools:

  • web_search: Searches the web and returns a candidate answer along with source URLs. Available only when the selected model route has a search provider configured.
  • web_fetch: Fetches the content of a single URL and returns it as Markdown or plain text.

web_search requires the model route to have a search provider configured; web_fetch uses an HTTP provider and needs no extra configuration.

write_file — Document Export

The model can export text files via write_file. The following formats are supported:

Format Write Type Opens With
txt UTF-8 text Any editor
md UTF-8 Markdown Any editor, DSH
doc RTF document (.doc) Word, WPS, LibreOffice
xls SpreadsheetML workbook (.xls) Excel, WPS
pdf True PDF Any PDF reader

Export rules:

  • Files are written into the session’s working directory. Paths outside that directory are rejected. Missing parent directories are created automatically.
  • xls: Each row of data is written as one line, with cells separated by tab characters (comma-separated when no tab is present). The first row is treated as the header; purely numeric cells are recognized as numeric values.
  • pdf: Rendered through the DSH Office component (office-kit). Chinese text retains its font. If the component is missing, the tool reports an error rather than producing an unreadable PDF.
  • Content size is capped at 4 MiB.

Clear Context

Clearing context is a capability independent of the three tools; it only changes what the model reads on its next turn and does not affect tool availability.

In a pure-chat preset session, a clear button appears to the left of the send button (visible only in sessions using this preset):

  1. Click the button to open a confirmation dialog describing the effect.
  2. After confirming, the model begins processing with a completely fresh context.

DSH derives the model’s history from the session’s ordered surface. The clear operation appends a synthetic user message at the end of the history, whose surface replaces all preceding conversation nodes. The log retains all events and the transcript stays intact; the next request is based solely on this new message.

This operation can also be triggered via the command /clear-context. If a turn is currently in progress when clearing is attempted, the operation is rejected with an “already empty” prompt.

Question Jumper

A dropdown menu appears in the session header, listing the first characters of each question in the loaded conversation. Selecting an entry scrolls the chat view to the corresponding message.

  • Each entry shows the turn number and the first 10 characters of the question (from the host’s turn-navigation projection), with one record per loaded line.
  • Keyboard: Up/Down to navigate the list, Home/End to jump to either end, Escape to close, Enter to select.
  • This is a client-side feature visible in all sessions. It replaces the standalone dsh-question-jumper plugin.

Installation & Activation

The plugin is published on GitHub. Install it with:

dsh plugin --profile <profile> add github:EonCosmos/dsh-pure-chat

<profile> is the DSH configuration profile name (e.g. web, local, etc.).

After installing or updating, refresh the page once so the client plugin is picked up by the boot manifest. Then create a new session and select Pure chat or 纯对话 to get started.

Typical Usage

Create a new session with the pure-chat preset selected, then ask directly:

  • Look up the current time (triggers web_search)
  • Export the current conversation to PDF (triggers write_file)

For example:

  • “Look up the latest news about DeepSeek”
  • “Export the conversation so far as a PDF”

Use Cases & Caveats

Ideal for scenarios where you want direct conversation without interference from system prompts or tool guidance—such as quick Q&A, code-snippet explanation, or ad-hoc information lookup.

Caveats:

  • Tool usage is part of the model’s loop; all other interactions remain ordinary dialogue.
  • Tool-guidance prompts are suppressed along with the system prompt. The model relies on the tools’ own brief descriptions. Be explicit when you need a search, e.g. “look up …”.
  • Long conversations will gradually exceed the model’s context window; there is no automatic compression mechanism.
  • pdf export requires the DSH Office component (office-kit).
  • The preset is a composition, not a security boundary: it controls what the model is told and which tools it can call, but it does not control who can install plugins.

Updating & Removal

Plugins installed via Git do not have a one-click update: remove the plugin from DSH’s “Plugins” page, then reinstall it.

When installed from npm (available after publication), you can update it from the same page.

Starting with version 1.2.0, the package name is dsh-pure-chat (previously @local/dsh-pure-chat). Remove the old plugin entry before installing.

Existing sessions retain their original preset configuration after an update.

Development & License

In the development environment you can run:

npm test          # tests docs, tool boundaries, context clearing, client modules
npm pack --dry-run # view the packaged file list
npm publish --dry-run # check publication readiness

Licensed under MIT, granted by EonCosmos.

Summary

dsh-pure-chat provides a clean pure-chat preset with web search, document export, context clearing, and question-jumping capabilities. If you want the model to answer questions directly—unencumbered by system prompts or tool guidance—this plugin serves as a streamlined session entry point.

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

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

Xiaoye