Introduction¶
DeepSeek Harness (DSH) is an agent execution environment built on a plugin architecture. While local task execution typically requires opening a terminal or managing a backend, the WeChat app on a mobile phone serves as an instantly accessible interactive entry point. The zhy5/dsh-wx-bridge plugin connects mobile WeChat to the local DSH via the Tencent iLink channel, allowing messages within WeChat to directly drive local task execution.
Plugin Overview¶
- Positioning: An online tool-type plugin responsible for establishing the command pathway between WeChat and the local DSH.
- Maintainer: zhy5
- License: MIT
- Core Value: Transforms mobile WeChat into a console. Through approval workflows, push notifications, and command execution, it enables remote or mobile control of the local DSH.
Key Features¶
- Native ACP Session Integration: The plugin no longer stitches context together manually; instead, it delegates directly to DSH’s Agent Client Protocol (ACP). Each WeChat contact or profile corresponds to an independent session that can be resumed after a restart, ensuring no context is lost.
- Approval and Push: Supports in-WeChat approval responses (added in 1.1.0). Any operation requiring elevated or special permissions is pushed to WeChat as an approval card; simply reply to approve or reject. It also supports active push notifications, allowing any process to push messages to the mobile phone via command.
- Kernel Components: Includes a zero-dependency
bridge.mjs(handles iLink long-polling send/receive + ACP session execution) andkeeper.mjs(handles liveness self-checks + detached restarts). - Management and Control: Provides a real-time status panel and preset management, supporting control of the bridge process and configuration via HTTP interfaces.
Installation and Activation¶
Use the official installation command to add the plugin. Note: The plugin was originally named @zmainer/wxbridge and was renamed to @zmainer/dsh-wx-bridge starting from version 1.0.8 (the old package is deprecated).
dsh plugin --profile <profile> add @zmainer/dsh-wx-bridge
After installation, verify that the profile’s package.json contains @zmainer/dsh-wx-bridge under dsh.profile.bundles (if the pnpm build script exits with a non-zero code, it might be skipped and requires manual addition).
Typical Usage¶
Push Message:
node "<dataDir>/wxpush.mjs" --text "Run finished: 1442 entries persisted"
In-WeChat Commands:
- /preset self-check: Verify if the current profile is assembled according to the preset.
- /approval ask|auto|reject: Switch approval strategies.
- /sessions: List and connect to existing DSH sessions.
Important Notes¶
- Data Security: Data is transmitted via the Tencent iLink channel; do not use for classified or confidential content.
- Permission Protection: Status and credentials files are stored in plain text and protected only by ACLs.
- Default Strategies: Approvals default to rejection if no response within 120 seconds; Access control defaults to strict mode (unregistered senders will not be executed).
- Version: Current version is 1.1.8.
Conclusion¶
Through native sessions and approval mechanisms, this plugin resolves issues regarding security and context continuity when controlling local tasks from a mobile end. It is ideal for scenarios requiring remote execution of local tasks or utilizing WeChat as a control entry point.