The core philosophy of DSH is “everything is a plugin”. For Web clients, the chat input card is typically a native input box. The dsh-vditor plugin uses Vditor 3.11.3 (IR instant rendering mode) to take over this component, rendering user messages as full Markdown and providing a WYSIWYG input experience.

Plugin Information

This plugin is maintained by user zhy201810576 and is licensed under the MIT license. It aims to address the limitations of the native input box regarding Markdown rendering, code highlighting, and file references, allowing developers to write richly formatted messages directly in the input box.

Core Features

Markdown Rendering and Instant Feedback

After taking over the input card, the plugin enables IR mode and supports WYSIWYG Markdown editing.
* Code and Formulas: Code blocks support syntax highlighting and language badges; KaTeX math formulas and Mermaid diagrams are rendered instantly.
* Theme Adaptation: The interface automatically follows the system’s light/dark theme.
* Dynamic Placeholder: The placeholder text is intelligently switched based on session state (such as plan mode or blocking reason).

Attachments and File Interactions

  • Path Pills: After selecting a workspace file, the path is displayed as a pill. The plugin fixes display issues related to Chinese file names and Windows backslash paths, and automatically includes the path when sending a message.
  • Pasted Images: Clipboard images can be written directly to the workspace, and a corresponding path pill is generated.
  • Content References: Attachments only reference file paths and do not copy file contents; the model reads the files itself.

Interaction Enhancements

  • Slash Commands: Typing / quickly invokes the command list (such as /goal, /compact, /permission, /plan, /export, /feedback, /model), with real-time filtering while typing.
  • File References: Typing @ performs real-time search across workspace files and supports one-click insertion.

Toolbar and Status

The plugin includes a complete toolbar with the following features:
* Model Selector: Switch models and reasoning levels.
* Permission Menu: Switch approval/access modes, including a secondary confirmation for Full access.
* Command Catalog: Invoke the slash commands above with one click.
* Context Usage Ring: Displays the current context usage percentage and breakdown in real time.

Installation and Activation

Version Requirements: The DeepSeek Harness (DSH) version must be ≥ 0.1.2-rc.1. This version refactors conversation.composer.bar into a persistent input area, which is the client API foundation relied upon by this plugin.

dsh plugin --profile web add github:zhy201810576/dsh-vditor

NPM Installation

Run the following command in the profile directory (for example, ~/.dsh/profiles/web):

pnpm add dsh-vditor

Then add "dsh-vditor" to the dsh.profile.bundles array in the profile’s package.json, and restart DSH to apply the changes.

Typical Usage

  • Command Filtering: Type / in the input box; options such as /goal and /compact appear in the list, and typing characters filters them in real time.
  • File References: Type @ to trigger file search; after selecting a file, the path is displayed as a pill.
  • Image Insertion: Paste a screenshot directly; the file is automatically saved to the workspace and a path pill is generated.

Notes

  • Network Dependency: The Vditor library is loaded dynamically from https://unpkg.com/vditor@3.11.3, so the runtime environment must remain online.
  • Version Conflict: If both the dynamic (in-session) version of this plugin and the official version are enabled, duplicate registration will occur. Disable one of them.
  • File Reading: The plugin only provides path references; the model reads file contents itself for inference.

Ecosystem and Source Code

The DSH plugin ecosystem emphasizes community contributions. This plugin is listed in a standalone community directory and has no official affiliation with DeepSeek / High-Flyer. Source code and further details are available:
* GitHub repository
* Community directory page