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.jsonversion:0.1.6enginesrequirement:node >=22peerDependenciesinclude@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:
- Hold the lever handle and pull it down to the bottom along the mechanical track, approximately
82pxtravel,88%threshold. - Release after the golden light overflows.
- 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;
SKIPsettles 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.
Local Link Development Installation¶
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¶
- Enter a message in any session.
- Hold the lever handle and pull it down to the bottom, then release; the message sends and the gacha performance begins.
- The subtitle displays
reasoning X · text Yand signal statistics in real-time. - When sufficient data is available or the model has finished answering, it lands, impacts, reveals the card, star rating, and random copy.
- Click anywhere or “Click to continue” to close; you can also use the top-right close button or
SKIPat 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
dshprocess; 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
reasoningChain of Thought is not saved; the Host only retains count, length, stage, and very short sampling; completereasoningnever 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.