Introduction

Here is an introduction to a DeepSeek Harness (DSH) Web plugin: @a9i5k4/dsh-draw-gacha. It adds a 3D realistic mechanical lever to the right of the native send button in the send area. After pulling and releasing, the message is sent as usual, triggering a pixel-style gacha performance.

This plugin turns the reasoning and text text signals generated during a DSH session into an entertainment settlement, positioning it as Just for fun.

Plugin Basics

  • Package name: @a9i5k4/dsh-draw-gacha
  • Maintainer: Aik358
  • GitHub repository: https://github.com/Aik358/dsh-draw-gacha
  • License: MIT
  • package.json version: 0.1.6
  • engines requirement: node >=22
  • peerDependencies include @deepseek-ai/cordis, @deepseek-ai/dsh-host-webserver, @deepseek-ai/dsh-client-runtime, @deepseek-ai/dsh-client-ui-conversation, react, all versions *

Core Features

Send Area Lever

The plugin displays a 3D realistic mechanical lever to the right of the native send button in the send area. The lever is disabled when the draft is empty or busy.

Lever trigger actions:

  1. Hold the lever handle and pull it down to the bottom along the mechanical track, approximately 82px travel, 88% threshold.
  2. Release after the golden light overflows.
  3. The message is sent as usual, triggering a full-screen pixel-style gacha performance.

Keyboard operations are also supported: Enter / Space triggers the full lever action; Escape cancels the pending lever state.

Signal Statistics & Settlement

The plugin continuously reads the current model’s reasoning Chain of Thought (CoT) and the text channel in the background, real-time statistics for 10 types of text signals.

Signal statistics support bilingual CoT and perform cross-chunk tail buffering with a buffer length of 120 characters to prevent missed detection due to streaming word segmentation.

Settlement conditions are:

  • Minimum performance duration of 15 seconds, with sufficient observation data (approximately 1200 characters or total signals ≥6);
  • Or the model has finished answering.

Cards are revealed by rarity: White (Little Difficult Liang), Blue (Trapped Liang), Yellow (Liang Zi), Orange (Liang Sheng), Red (Liang Zu). The center large card is the “Sliding Variable Ancestor Device” (滑动变祖器) Liang series illustration + gear level: Pull -> Burn -> Stable -> Ram.

Performance & Operations

The settlement performance includes card reveal, star ratings, and random copy. The plugin includes a built-in 8-second industrial electronic loop BGM generated via Web Audio, which can be muted with one click, with no external asset dependencies.

Operations:

  • The close button in the top-right corner can be closed at any time;
  • SKIP settles the current observation immediately without cancelling the model request;
  • Click anywhere on the settled card or “Click to continue” to close.

The plugin fully supports prefers-reduced-motion and narrow-screen layouts.

Streaming & Session Isolation

The plugin listens to and forwards every chunk via llm/stream without rewriting the frozen GenerateOptions.

The plugin isolates multiple sessions via options.sessionId + generation and excludes auxiliary requests with purpose=compaction/session-title.

2026-08-18 Update (v0.1.6): The llm/stream listener has been changed to consumer defense; downstream listeners returning a Promise or Stream can safely pass through.

Installation & Enablement

DSH Profile Installation

First, execute the installation command:

dsh plugin --profile web add @a9i5k4/dsh-draw-gacha

Then, add the plugin line to $DSH_HOME/profiles/web/cordis.patch.yml:

- insert:
    - id: draw-gacha
      name: '@a9i5k4/dsh-draw-gacha'

Finally, restart Web:

dsh web

This step adds the plugin to the web Profile and registers it in cordis.patch.yml, allowing it to load after dsh web starts.

After cloning or unzipping to a local directory, execute:

dsh plugin --profile web add link:D:/path/to/dsh-draw-gacha

You also need to add the plugin line to the Profile’s cordis.patch.yml. This method is suitable for quickly verifying code modifications in a local directory.

Typical Usage

Zero-Dependency Preview

After cloning the repository, open directly:

persistent/dev-preview.html

This preview page has zero dependencies; double-click it in a browser to watch the complete 3D gacha performance without DSH.

Using in a DSH Session

  1. Enter a message in any session.
  2. Hold the lever handle and pull it down to the bottom, then release; the message sends and the gacha performance begins.
  3. The subtitle displays reasoning X · text Y and signal statistics in real-time.
  4. When sufficient data is available or the model has finished answering, it lands, impacts, reveals the card, star rating, and random copy.
  5. Click anywhere or “Click to continue” to close; you can also use the top-right close button or SKIP at any time.

Suitable Scenarios & Notes

Suitable for:

  • Adding an optional entertainment feedback layer to the DSH Web Profile;
  • Viewing the gacha performance during local development or preview;
  • Developers who want the plugin to only handle the interface and signal statistics without changing the normal sending chain.

Notes:

  • The plugin runs with the permissions of the current dsh process; you should check the source code, dependencies, and license before installing.
  • Pure entertainment disclaimer: All conclusions are based solely on text signals during the generation process and do not represent answer quality, model capabilities, version information, character abilities, or any official relationships.
  • Data boundaries: Full reasoning Chain of Thought is not saved; the Host only retains count, length, stage, and very short sampling; complete reasoning never goes to disk and never enters the browser.
  • License boundaries: The license is MIT; the plugin code and CSS are original; the Liang series illustrations and “Sliding Variable Ancestor Device” related assets come from community open-source projects; please comply with their original licenses for reuse or redistribution.
  • Ecosystem context: The philosophy of DSH is “Everything is a plugin”; the community directory is an independent site with no official affiliation to DeepSeek or Huaxuan.

Conclusion

@a9i5k4/dsh-draw-gacha connects the send action, streaming text signals, and the settlement interface of a DSH session into a lightweight plugin. It does not provide model capability assessment and does not replace normal requests; it simply adds an observable entertainment performance within the Web session.

You can visit the GitHub repository: https://github.com/Aik358/dsh-draw-gacha. Verified sources do not provide a directory page URL, so this article does not list unverified links.