Introduction¶
DeepSeek Harness (DSH) extends functionality through a plugin architecture. dsh-weixin-web is a plugin that provides a WeChat iLink channel for DSH Web. It connects WeChat messages to independent DSH sessions and provides QR code login and a native management panel in the DSH Web sidebar.
Core Features¶
- Multi-Bot Management: Bind multiple WeChat bots in the Web sidebar, supporting rename, pause, resume, re-login, or unbind.
- Session Isolation: Each WeChat contact uses an independent DSH session, uniformly categorized under the “WeChat” workspace.
- Bot Configuration: Set personas, specify models or revert to default models, and configure presets for each bot.
- Multimedia Support: Supports text, images, multiple images, files, videos, voice transcription, and quoted messages.
- Proactive Interaction: Supports active push, broadcasts, and sending images, videos, and files to WeChat contacts.
- Data Persistence: Automatically saves bot credentials, session mappings, message previews, and receive cursors.
- Data Migration: Automatically migrates legacy bot and session data when upgrading from version 0.1.x.
Installation & Activation¶
Ensure that Node.js 20.3 or higher is installed on the system, and that the DSH Web profile is running normally.
- Execute the installation command:
dsh plugin --profile web add github:agi-redtea/dsh-weixin-web
- Handle pnpm 10 Compatibility Issues: pnpm v10 or higher may block Git dependencies from executing build scripts, resulting in the
ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWEDerror.
- Solution 1: Select “Allow these scripts and retry” in the DSH plugin installation interface.
- Solution 2: Add the following configuration to thepnpm-workspace.yamlin the Web profile, then re-execute the installation command:
allowBuilds:
dsh-weixin-web: true
- After installation is complete, start or restart DSH:
dsh web --port 3080
Usage Instructions¶
- Log in to WeChat: Open DSH Web, click WeChat in the left sidebar, click to add a bot, and scan the QR code with the mobile WeChat app. After successful login, messages sent by WeChat contacts will automatically enter the corresponding DSH session.
- Configure Bot: Open the Settings of a bot card in the WeChat panel:
- Persona: Append a dedicated system prompt.
- Model: Specify which model the bot’s session uses; select “Follow DSH Default” to revert to the default model.
- Preset: Apply to newly created conversations.
- Start New Session: Create a new session for the specified contact; old sessions remain in the “WeChat” workspace. - Invoke Send Functions:
- The model can callsend_weixin_fileto send images, videos, or files to the current WeChat contact.
- Callingpush_weixinallows sending text proactively; specifying thefileparameter allows sending a file simultaneously.
Configuration Options¶
Override plugin configuration in the Web profile’s cordis.patch.yml:
- insert:
- id: weixin
name: dsh-weixin-web
config:
replyMode: full
maxChunk: 1500
maxMediaBytes: 20971520
Common Configuration Descriptions:
- stateDir: Defaults to $DSH_HOME/dsh-weixin-web, used to store credentials and session state.
- cwd: Defaults to stateDir/workspace, the working directory for WeChat sessions.
- replyMode: Defaults to full; full sends the entire turn’s text back, while last only sends the last message.
- replyTimeoutMs: Defaults to 900000, the timeout duration for a single reply turn (in milliseconds).
- approvalPolicy: Defaults to never, the tool approval policy for WeChat sessions.
- maxChunk: Defaults to 1500, the maximum character count for a single WeChat message.
- sendIntervalMs: Defaults to 2000, the minimum interval between two sends (in milliseconds).
- maxMediaBytes: Defaults to 20971520, the maximum size limit for a single media file (20MB).
Notes¶
- Voice messages utilize transcription provided by the WeChat server; no local speech recognition is performed.
- Single media files default to a maximum size of 20MB.
- The plugin runs with the privileges of the current DSH process. It is recommended to review the source code and license (MIT) before installation.
- This plugin is maintained by the community and has no official affiliation with DeepSeek or High-Flyer AI. Visit the Community Directory or GitHub for more details.