Introduction¶
When using Whale for auto-replies on WeChat, the models and personas often get disconnected from the environment you have already built in DeepSeek Harness (DSH): plugin capabilities, persona configuration, and daily debugging habits remain in DSH, while the chat side can only use Whale’s built-in API. If you want private WeChat chats to still go through a “real large model + your cultivated DSH persona and plugins,” but don’t want to expose your daily DSH profile to chat traffic, you need to add a layer of bridging between the sending/receiving end and the processing end. Below introduces the community plugin dsh-whale-bridge (maintainer LFrs-Cyberpunk): Whale continues to act as the sending/receiving end, and DSH acts as the processing end in an isolated host. The private chat full workflow has been verified as described in the README.
What is this¶
dsh-whale-bridge v1.0.0 is a client-side plugin for the DSH side (SkillHub Directory). One-sentence pipeline: WeChat private chat → Whale → This plugin → Isolated DSH host → Configured large model → Reply returns to WeChat. Persona can follow your existing configuration in DSH, without binding to a specific persona plugin name.
Runtime environment requirements (from package.json and README): Windows, Node ≥22, DSH ≥0.2.1-rc.2 and <0.3.0-0; the plugin runs on DSH Desktop / dsh web. License is MIT.
Core Features¶
The capabilities explicitly stated in the README are as follows; unlisted items are not considered implemented.
- Private chat replies via DSH: Forward WeChat text private chats to the local bridge and isolated DSH, using DSH-side inference results to replace Whale’s built-in model.
- Three persona source options: Follow DSH (replicate daily profile plugin configuration to isolated host), Follow Whale (use the system from its request as the first background), or Custom structured persona card.
- Inherit DSH plugins: The DSH inside the isolated host can use the DSH plugins you have already installed to assist in replies.
- Memory and Persona Organization (Limited): Can organize preference memories in private or group chat sessions to enrich the persona;
npm run grow/ Settings page “Organize Persona Layer” extracts persona layers from conversations (rule-driven, not automatic growth every turn). On the corpus side, only statistics are done (sentence length, punctuation, etc.), not training. - Group chats do not use DSH: Currently, only private chats automatically use DSH; group chats reject and fall back to Whale API.
- Must have plugins on both sides: Besides the DSH package itself, you must install and enable a plugin named “DSH Bridge” in the Whale plugin market, and enable the JavaScript plugin.
Isolation and Security Boundaries (emphasized in README):
- Independent
DSH_HOME, default%USERPROFILE%\.whale-dsh-bridge\dsh, does not write to daily profile. - API Key stored locally at
%USERPROFILE%\.whale-dsh-bridge\, enters isolated host via environment variables, does not write config in plaintext. - External chat context tool whitelist is empty, permission requests are always rejected.
Installation and Enablement¶
DSH Side¶
Method 1: Install from Git (Recommended in README)¶
Replace the placeholder username with the GitHub username you want to install (the maintainer’s repository is LFrs-Cyberpunk/dsh-whale-bridge):
dsh plugin add git+https://github.com/<你的用户名>/dsh-whale-bridge.git
After installation, restart DSH, and the “Whale Bridge” should appear in the left sidebar.
Method 2: Manual Installation¶
Copy the entire directory into the node_modules of the corresponding profile, and register the dependency and bundle in package.json (README uses desktop profile as an example):
xcopy /E /I dsh-whale-bridge "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-whale-bridge"
{
"dependencies": { "dsh-whale-bridge": "*" },
"dsh": { "profile": { "bundles": ["dsh-whale-bridge"] } }
}
After Installation¶
- Open “Whale Bridge”, fill in the model Key (DeepSeek or OpenAI-compatible relay).
- Select persona source: Follow DSH / Follow Whale / Custom.
- Turn on the enable switch, and send a message in private chat to verify.
Whale Side¶
Search for “DSH Bridge” in the Whale plugin market to download and install, and enable the JavaScript plugin. The link can only be established when both DSH and Whale are ready.
Whale runtime reads .flow.json and .flow-grant.json under the plugins folder in the data directory; the repository provides npm run make:flow to generate these files, and npm run install:whale can simulate installation (does not write to disk by default, add --apply to actually install).
Typical Usage and Local Endpoints¶
The bridge provides an OpenAI-compatible HTTP entry point. Whale points the baseUrl to the local proxy and configures the token printed when the bridge starts (Authorization: Bearer):
| Method | Path | Purpose |
|---|---|---|
| POST | /v1/chat/completions |
Compatible entry; stream:true returns SSE |
| POST | /chat/completions |
Same as above (when baseUrl does not include /v1) |
Link diagram (from README):
WeChat ──► Whale (WASM plugin writes envelope) ──► Local Proxy (this repo)
│
├─ Has envelope → engine → Isolated DSH (ACP)
└─ No envelope → Pass through upstream model (background task)
Common commands for development or self-checking (requires Node ≥22 in PATH; can also use DSH’s built-in node or start-bridge.cmd as per README):
npm start # Start bridge (mock backend), print address and token
npm test # 208 tests
npm run selfcheck # 27 structural and security self-checks
npm run probe:acp # Real ACP round on isolated DSH_HOME
npm run probe:e2e # Full link shadow run
npm run grow # Extract persona layers from conversations (recommended to run occasionally, not every turn)
In “Follow DSH” mode, the bridge synchronizes the persona assembly inside the isolated host via configuration, rather than simply stuffing a system text; custom personas have a total character limit and per-turn billing hints, and the settings page will display token estimates.
Suitable Scenarios and Notes¶
Who is this for: Those who are already using DSH on Windows for agent and plugin development, while using Whale to connect to WeChat private chats, hoping that private chat replies go through the isolated DSH, with persona and plugins consistent with the daily environment, and accepting the current private chat only, text only limitations.
Must be noted:
- The plugin runs with the current DSH process permissions; please read the source code and
SAFETY.mdyourself before installing to confirm the license (MIT) and behavior meet your security requirements. - “Not yet done” explicitly listed in README: Persona will not automatically lengthen; corpus learning is not real training; group chats are not supported.
- SkillHub is a community plugin directory and has no official affiliation with DeepSeek / Huaxin; data on pages like Star counts is based on the directory site’s display (current clue is 1 star, category: Client).
Conclusion¶
dsh-whale-bridge positions Whale as the WeChat sending/receiving end, and puts inference, persona, and plugin capabilities into an independent DSH host to avoid polluting the daily profile, and tries to make WeChat private chats reuse the configurations you have already invested in DSH. To view the intro and category, you can open the SkillHub Directory Page; installation details, routing tables, and memory/persona cost models are based on the GitHub README.