dsh-weixin-web: DeepSeek Harness WeChat iLink Channel Plugin

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.

  1. Execute the installation command:
dsh plugin --profile web add github:agi-redtea/dsh-weixin-web
  1. 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_ALLOWED error.
    - Solution 1: Select “Allow these scripts and retry” in the DSH plugin installation interface.
    - Solution 2: Add the following configuration to the pnpm-workspace.yaml in the Web profile, then re-execute the installation command:
   allowBuilds:
     dsh-weixin-web: true
  1. After installation is complete, start or restart DSH:
dsh web --port 3080

Usage Instructions

  1. 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.
  2. 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.
  3. Invoke Send Functions:
    - The model can call send_weixin_file to send images, videos, or files to the current WeChat contact.
    - Calling push_weixin allows sending text proactively; specifying the file parameter 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.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye