Preface¶
The plugin-based architecture of DeepSeek Harness (DSH) allows users to extend functionality. For developers working with agents for extended periods, frequently switching windows to use keyboard input can disrupt the flow of thought. This plugin provides a non-invasive voice input and shortcut control solution by integrating the Xiaomi Bluetooth Remote 2 Pro (Model RC003) into DSH.
Below is the installation and usage guide for zmyisme/dsh-xiaomi-remote-2-pro.
Plugin Positioning¶
This is a DSH Plugin, not a standalone program. It primarily solves two problems:
1. Voice Input: Utilizes the remote’s voice key to implement “press and hold to talk,” reusing DSH’s built-in voice recognition capabilities (such as local SenseVoice) without requiring additional configuration or API Keys.
2. Quick Control: Maps remote keys to various executable actions, supporting single click, double click, long press, and other gestures.
Core Features¶
The plugin possesses the following core capabilities:
* Press and Hold to Talk: Press and hold the voice key to record; upon release, it automatically recognizes text, inserts it at the cursor, and press OK to send.
* Gesture Recognition: Supports four gestures: single click, double click, long press, and press-and-hold.
* Action Mapping: Supports thirteen executable actions, including inserting text, sending messages, scrolling sessions, and simulating shortcuts.
* Preset Schemes: Offers three sets of preset configurations to suit different usage scenarios.
* Learning Mode: For keys that are not pre-set, they can be quickly bound via learning mode.
* Panel Display: Provides a floating shortcut panel showing real-time key codes, device status, and recent keys.
* Agent Interface: Supports reading and writing configurations by models via the remote_2_pro tool and the /remote2pro command.
* Technical Characteristics: Pure JavaScript implementation with zero native dependencies, requiring no compilation and no administrator privileges.
Installation and Activation¶
Prerequisites¶
- System: Windows 10/11 x64
- DSH: Desktop version or
dsh web - Remote: Xiaomi Bluetooth Remote 2 Pro (Model RC003)
- Voice Recognition: Experimental voice input (Local SenseVoice) must be enabled in DSH first.
Step 1: Pair the Remote¶
- Open Windows Settings → Bluetooth & other devices → Add device.
- Press and hold the Home + Menu keys on the remote for about 3 seconds to enter pairing mode (this may vary slightly by batch; flashing lights indicate it is ready).
- Select the device name
MI RCorXiaomi Bluetooth Remote 2 Pro.
Step 2: Enable DSH Voice Input¶
In the DSH settings page, locate and enable Experimental Voice Input (@deepseek-ai/dsh-experimental-voice-input-bundle).
Step 3: Install the Plugin¶
Use the following command to install the plugin (using the desktop version as an example):
dsh plugin --profile desktop add github:zmyisme/dsh-xiaomi-remote-2-pro
Step 4: Restart Process¶
A complete restart of the DSH process is required. Refreshing the page or hot-reloading will not load the new plugin.
After restarting, navigate to the DSH settings page and confirm that the device status is active in the “Xiaomi Remote 2 Pro” card.
Typical Usage and Configuration¶
Quick Start¶
- Open a session and click the cursor into the input box.
- Press and hold the voice key (the key with the microphone icon) on the remote and speak.
- Release; the recognized text will appear in the input box.
- Press the OK key to send.
Gesture and Action Configuration¶
The plugin supports binding actions to four types of gestures. The default preset is vibe-coding, which includes:
* Voice Key: Press and hold to talk / Single click to toggle the panel.
* OK Key: Send current input.
* Direction Keys: Scroll session or jump to top/bottom.
You can modify mappings through the settings page in the DSH interface. If you encounter keys that are not pre-set (such as the Source key), click the “Learn” button and then press that key to bind it.
Notes¶
- Key Takeover Limitation: The key takeover feature requires the DSH window to be in the foreground.
- System Limitations: On Windows, the “Back”, “Volume +”, and “Volume -” keys of the remote cannot be received because these HID usages are discarded by the system. The panel will display these keys as “System Dropped Keys”.
- Permission Requirements: The plugin runs with the permissions of the current DSH process and does not require administrator privileges.
Technical Basis¶
This plugin utilizes the browser’s ability to capture HID keyboard events to perform gesture recognition and action distribution on the client side, leaving voice recognition entirely to DSH’s own voice input stack. This approach completely bypasses Windows’ discarding of specific HID usages while maintaining the characteristic of zero native dependencies.