DeepSeek Harness Backdoor Plugin

Introduction

In agent development scenarios, there are times when you need to hide certain information or content without disrupting the flow of a conversation. The traditional Markdown strikethrough ~~...~~ simply renders as a strikethrough line and cannot serve as a mask. The Black Curtain plugin replaces the strikethrough style with a black mask, providing a solution for hiding text within chat replies.

Plugin Overview

Black Curtain is a fun cosmetic plugin for DeepSeek Harness Web UI, developed by the maintainer Yamashigure. Inspired by the hidden content feature on Moegirl Wiki, the plugin replaces the strikethrough style in Markdown with a black curtain. The original text is only revealed on mouse hover (or long-press on touchscreens), making it useful for hiding specific information during conversations.

Core Features

Basic Usage

Wrap the content you want to hide with a pair of tildes in your reply:

~~First hide this part~~

After rendering, it appears as a black bar. The text is only revealed when you hover over it (or press and hold on touchscreens). The length of the bar matches the length of the hidden content.

Assistant and User Messages

Assistant replies go through the Markdown pipeline, where ~~ is recognized as strikethrough. The plugin replaces its style with the black curtain. User messages are plain text and do not pass through Markdown parsing. The plugin registers a matcher and renderer to automatically detect and render black curtains in user messages as well.

Mouse-Following Quips

When the mouse hovers over a black curtain, a tooltip reading “You’re the one who asked to see it” appears and follows the pointer. When the pointer approaches the edge of the window, the tooltip automatically switches to the opposite side to avoid running off-screen. On touchscreens, you can see it by pressing and holding; it disappears when you lift your finger. This feature can be toggled off in the settings page.

Model-Side Convention

The plugin injects a convention into the system prompt: content enclosed by ~~ in user messages is a black curtain. The model should treat it as a note written for the reader—do not recite, quote, or answer its content. The model may react to the masked content (showing curiosity, pressing for more, admitting to peeking, etc.), as long as it doesn’t reveal the original text. This convention is loaded into the Host process when the plugin is activated and persists across session switches.

Installation & Activation

The current version is 1.0.0, and installation is only supported from GitHub.

  1. Open the DSH desktop app and navigate to the Plugin Management page.
  2. Click the “Add plugin” button.
  3. Paste the repository URL https://github.com/Yamashigure/dsh-black-curtain, or download the .tgz file from Releases and enter its absolute path.
  4. Click “Install.” Once installation is complete, click “Enable now.”

After enabling, adjust styles and toggles in “Settings → Black Curtain.”

Settings

The following options are available in “Settings → Black Curtain”:

  • Toggle: When disabled, everything reverts to regular strikethrough text.
  • Mask Style: Supports “Black Curtain” (solid black bar) or “Blur.”
  • Scope: By default, it covers both user and assistant messages; you can choose to cover only assistant replies.
  • Mouse-Following Quip: Controls the small bubble tooltip that follows the cursor.

Preferences are written to cookies, with a backup copy stored in localStorage. The Host may change its port on each startup, and localStorage is partitioned by port—so switching ports will cause data loss. Cookies, on the other hand, are machine-bound and remain valid after a port change.

Technical Implementation

  • Assistant message black curtain: Implemented purely with CSS. It does not modify DOM structure or replace the message renderer, so there is no reflow or jitter during streaming output.
  • User message black curtain: Registers a UserText matcher and a text renderer. The matcher extracts ~~...~~ patterns, and the renderer outputs the original text as-is when the feature is disabled or scoped to assistant-only, without altering message content or copy results.
  • Quip bubble: A fixed-position element that listens to pointer events. It renders only within its own container, does not intercept clicks, and does not interfere with black curtain interaction.
  • Dark theme: A thin border is added around the black bar to prevent it from blending into the background.
  • Print support: Black curtains automatically expand and display their content when printing.
  • Code protection: Tildes inside code blocks and inline code are excluded from black curtain processing.

Use Cases

The Black Curtain plugin is well-suited for conversational scenarios that require hiding sensitive information, building suspense, or protecting privacy. On the model side, the convention ensures appropriate reactions to hidden content, enhancing the fun and interactivity of the dialogue.

Notes

The plugin runs with the current DSH process permissions. Review the source code and license before installing. The current version is 1.0.0, not published on npm, and only supports installation from GitHub.

Summary

The Black Curtain plugin, through a simple and intuitive tilde syntax, provides DeepSeek Harness with the ability to hide text in the chat interface while maintaining conversational flow and supporting model reactions to hidden content. The plugin is lightweight and non-invasive, making it ideal for various agent scenarios that require information masking.

  • Skill Hub directory: https://www.skillhub.cn/plugins/Yamashigure/dsh-black-curtain
  • GitHub repository: https://github.com/Yamashigure/dsh-black-curtain
羽毛球分组比赛记分
小程序二维码

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

Xiaoye