Introduction¶
When running conversation or agent tasks with DeepSeek Harness (DSH), model generation often takes ten seconds or even longer. During this period, the interface usually leaves users staring at a progress indicator, lacking a lightweight, unobtrusive, and offline distraction. The community plugin dsh-whale-jump (repo CharlieChang1216/dsh-whale-jump) adds a single-line entry below the conversation input area. Clicking it allows you to play a jumping/diving mini-game within a local canvas. It is purely local, has zero runtime dependencies, and does not read or write credentials. This article describes what it is, how to install it, and how to verify that it is working.
What is this¶
dsh-whale-jump (Chinese name: DSH Whale Jump) is published by maintainer CharlieChang1216 and is categorized as a fun extension in the SkillHub plugin directory. The current npm/repo version is 0.1.1; the GitHub star count is 1 (based on directory page and public repository information).
Its positioning can be summarized as: a mini-game widget for DeepSeek Harness during response waiting periods—a lightweight entry line below the conversation stream (and new session empty state page) that expands into a parkour gameplay with scoring, high scores, and an oxygen mechanic, completely offline.
The code is licensed under MIT; the assets/ artwork is not covered by MIT, so please refer to PROVENANCE.md in the repository for rights and sources.
Entry Point and Interface Behavior¶
The plugin is loaded via the DSH official client module channel (dsh.client + exports["./client"]), distributed by the module system at /plugins/dsh-whale-jump/client.js. It does not modify index.html, avoiding issues where script-src injection failures on some desktop clients might break the entire boot process.
The entry point is registered at the conversation.input.dock slot. Registration is shared between the empty state page and active conversations, so the entry line appears in both.
The entry text changes based on the scene and host state. The README summarizes three states:
- New session empty state page: Displays 「🐳 小鲸鱼跳」 (DSH Whale Jump).
- Idle conversation: Displays 「🐳 等太久了?先玩个小游戏~」 (Waiting too long? Play a game first~).
- Host running for ~20+ seconds: Displays 「🐳 还在跑…要不要来一局?」 (Still running… want a round?), brightening and starting to swing.
Normally, the entry line is faint; it becomes more prominent the longer the wait. It uses a shared component and does not re-register, minimizing disturbance to normal input.
Language follows DSH settings: priority is ctx.locale (“Settings → General → Language”), followed by <html lang> and navigator.languages, finally falling back to Simplified Chinese. Switching languages triggers an immediate re-render of the entry line without needing to rebuild the plugin.
Gameplay and Controls¶
The game runs in a canvas. Obstacles and spatial layering are as follows (based on README descriptions):
- Jump Over: Coral and floating wood exposed above water (holding jump allows for a higher leap).
- Dive Under: Lighthouses (approx. 128px high) and seagulls; at maximum speed, the jump peak is approx. 107.7px, while the lighthouse top is at approx. 74px, making it impossible to jump over. You must dive to -45 or lower to fully avoid them.
- Stay on Surface: Jellyfish submerged underwater; for the first ~25 seconds of the game, the jellyfish spawn weight is approx. 3 times normal (approx. 34% probability), then drops to approx. 14%.
Oxygen: Full oxygen allows for approx. 4 seconds of continuous diving; it refills from empty to full in approx. 8 seconds. Depletion forces an ascent to the surface and locks diving until oxygen returns to 30%; the bar turns orange below 50% and red with a pulsing effect below 25%.
Controls:
- Space / ↑ / Click: Jump (hold for higher jump).
- ↓: Dive (pressing in air causes a fast fall).
- Esc: Exit; press Space or button to restart after finishing.
The implementation emphasizes frame-rate independent movement, collision boxes slightly narrower than the visuals, obstacle spacing that scales with speed, and increased spacing when adjacent obstacles require opposite actions, ensuring consistent feel and fair difficulty across different refresh rates. If the sprite loading fails, it degrades to a code-drawn whale, ensuring the protagonist is always visible.
Host Side and Security Boundaries¶
The host entry point is lib/index.js, mounted via cordis.patch.yml, providing routes for state read/write and sprite assets. State writes (POST) only accept loopback sources; non-local requests return 403. Request bodies are limited to 8KB, and score ranges are validated. The plugin does not read/write credentials, access the network, or modify profile configurations.
Runtime statistics are written to $DSH_HOME/.dshwj-state.json (high score best, rounds plays), separate from the profile’s node_modules.
Installation and Activation¶
The same package supports both Web (dsh web) and Desktop profiles, with different profile names during installation. It requires DSH ≥ 0.2.0 (tested environment in README is Desktop 0.2.1-rc.2); pnpm must be available on the PATH when running dsh plugin. The plugin itself requires no npm install and no build steps.
Before installing via CLI on Desktop for the first time, you must fully launch the Desktop client once and then completely quit it, otherwise you may encounter the README prompt: Open DeepSeek Harness Desktop once to initialize its profile, then fully quit it before running dsh plugin --profile desktop.
Install from npm (Easiest)¶
Web:
dsh plugin --profile web add dsh-whale-jump
dsh web
Desktop:
dsh plugin --profile desktop add dsh-whale-jump
Install from GitHub¶
Web:
dsh plugin --profile web add "github:CharlieChang1216/dsh-whale-jump"
dsh web
Desktop:
dsh plugin --profile desktop add "github:CharlieChang1216/dsh-whale-jump"
To pin a version, use github:CharlieChang1216/dsh-whale-jump#<tag> (e.g., v0.1.1); the syntax is the same for both profiles.
Local Development (Symlink)¶
dsh plugin --profile web add "link:<your repo path>"
# Or
dsh plugin --profile desktop add "link:<your repo path>"
After installation, Web requires restarting dsh web; Desktop requires a complete exit (including system tray) before reopening. Changes to client code via link: take effect upon refresh; changes to the host-side lib/index.js require a process restart. Do not move the repository directory pointed to by the symlink; if moved, you must re-run add.
If desktop command-line installation fails due to environment restrictions, the README suggests using the built-in plugin_manager within the desktop session, entering https://github.com/CharlieChang1216/dsh-whale-jump as the source.
Verification¶
Using the Web profile as an example (replace web with desktop in paths for Desktop). The port is determined by the address printed by dsh web or in the client address bar; the 52135 in the examples below should be replaced with your actual port.
Select-String -Path "$env:USERPROFILE\.dsh\profiles\web\package.json" -Pattern "dsh-whale-jump"
$port = 52135
curl "http://127.0.0.1:$port/dsh-whale-jump/diag"
curl "http://127.0.0.1:$port/dsh-whale-jump/state"
curl -o hero.png "http://127.0.0.1:$port/dsh-whale-jump/hero.png"
Get-Content "$env:USERPROFILE\.dsh\.dshwj-state.json"
/state usually starts as {"best":0,"plays":0}; after scoring in the game, best / plays should update, serving as evidence that the “route + frontend + disk persistence” chain works. If routes return an empty 400, the README suggests checking heroError / lastError in /dsh-whale-jump/diag (this diagnostic interface is readable only via loopback).
Use Cases and Notes¶
Target Audience: Users who frequently wait for long responses in DSH and want to pass a few dozen seconds with a local mini-game without installing extra runtime dependencies. It is also suitable for plugin authors wanting to learn about DSH conversation.input.dock, client module injection, and lightweight host routing.
Environment & Permissions: The README notes testing on Windows 11 x64; macOS / Linux are untested. The browser must support Canvas 2D. The plugin runs with the current DSH process privileges. Please read the repository source code and licenses before installing (Code is MIT, assets/ see PROVENANCE.md).
Maintenance & Ecosystem: The DSH community follows the philosophy that “everything is a plugin”; SkillHub is a community directory site, has no official affiliation with DeepSeek/幻方 (Huanshu), and is not an official app store. The repository contains 8 test suites (128 items); npm test can be run locally (Node ≥ 20 is required for local dev verification only, irrelevant to plugin runtime).
Conclusion¶
dsh-whale-jump turns waiting periods into a dock entry line and a local canvas parkour game: featuring oxygen and layered obstacles, high score persistence, yet touching neither the network nor credentials. If you want to try it or see implementation details, you can enter via the directory page CharlieChang1216/dsh-whale-jump or open the GitHub repository directly: https://github.com/CharlieChang1216/dsh-whale-jump.