Preface¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, allowing users to enhance workflows via external input. The dsh-codex-micro plugin maps the Vaydeer 9-key numpad to act as a remote control for the DSH coding agent. It receives HID key combinations emitted by the keyboard firmware, translates them into specific DSH actions, and provides an evidence chain to confirm “whether the key was actually triggered / what is actually on the page.”
Plugin Information¶
- Name: dsh-codex-micro
- Summary: Turns the Vaydeer 9-key numpad into a remote control for the DSH coding agent.
- Owner: harmless0819-dev
- License: MIT
- Version: 0.1.0
Core Features¶
- Action Mapping: Translates the 9 keys into DSH actions (Send, Stop, New Session, Model, Sidebar, Settings, Copy Last, Retry, as well as second-layer panel entries for Command/Tools/Files/Plugins/View/Close, etc.).
- Evidence Chain: Provides
health,events, anddomendpoints to verify plugin injection status, key trigger records, and the actual text of page buttons. - Nine-Key Panic Shutdown: When 9 distinct key codes are pressed within a “spread” of approximately 600ms, it triggers a red-screen panic.
- Escalation Confirmation Card Support: Supports confirming permission request cards popped up by DSH via physical keyboard keys (7/8/9).
- Offline Testing: Supports unit testing without a physical keyboard connection.
Installation and Activation¶
Run the installation command in the user terminal:
dsh plugin --profile web add github:harmless0819-dev/dsh-codex-micro
After installation, the dsh web service must be restarted to load changes from lib/index.js.
# Example restart command (adjust specific path according to your actual environment)
& D:\deepseek\dsh-whale-emote\restart-web.ps1
Keyboard Configuration¶
This plugin takes over two layers of the keyboard (Layer 0 and Layer 1); layers 2/3 are native layers and are not handled by the plugin.
- Hardware Note: The keyboard sends standard HID key combinations via firmware, and the computer cannot distinguish it from signals sent by a laptop keyboard. Therefore, the plugin can only recognize key combinations and must never use bare numbers. The Vaydeer keyboard control program is not required for daily use; it serves only as a configuration tool and can be closed or uninstalled once key bindings are complete.
Layer 0: Agent Control¶
| Key | Key Combination | Action |
|---|---|---|
| 1 | Ctrl+Alt+Shift+1 |
Send message (fallback to Ctrl+Enter if button not found) |
| 2 | Ctrl+Alt+Shift+2 |
Stop / Interrupt (fallback to Esc if button not found) |
| 3 | Ctrl+Alt+Shift+3 |
New Session |
| 4 | Ctrl+Alt+Shift+4 |
Model (loading text to be added) |
| 5 | Ctrl+Alt+Shift+5 |
Access Mode (Modify within workspace / Read-only) |
| 6 | Ctrl+Alt+Shift+6 |
Sidebar Toggle (Collapse / Expand sidebar) |
| 7 | Ctrl+Alt+Shift+7 |
Task Board |
| 8 | Ctrl+Alt+Shift+8 |
Trace View |
| 9 | Ctrl+Alt+Shift+9 |
Next Layer (Keyboard firmware action, bypasses plugin) |
Layer 1: UI Panels and Diagnostics¶
| Key | Key Combination | Action |
|---|---|---|
| 1 | Ctrl+Alt+Shift+F1 |
Command Palette |
| 2 | Ctrl+Alt+Shift+F2 |
Add Attachment |
| 3 | Ctrl+Alt+Shift+F3 |
More Actions |
| 4 | Ctrl+Alt+Shift+F4 |
View Options |
| 5 | Ctrl+Alt+Shift+F5 |
Open Right Sidebar |
| 6 | Ctrl+Alt+Shift+F6 |
Expand Bottom Panel |
| 7 | Ctrl+Alt+Shift+F7 |
Search Sessions |
| 8 | Ctrl+Alt+Shift+F8 |
Probe DOM (Capture page structure for troubleshooting) |
| 9 | Ctrl+Alt+Shift+F9 |
Previous Layer (Keyboard firmware action, bypasses plugin) |
Verification and Troubleshooting¶
After installation and key configuration, verify that the plugin is working correctly via the following endpoints:
- Client Load Status:
Invoke-WebRequest http://127.0.0.1:3080/dsh-codex-micro/health.json -UseBasicParsing
# clientsLoaded should be >= 1
- Key Trigger Records:
# Recent 300 events (including failure reasons)
Invoke-WebRequest http://127.0.0.1:3080/dsh-codex-micro/events.json -UseBasicParsing
# After pressing a trigger key, seq should increment, and label / ok should appear in lastReport
- Page Button List:
# Used to fix click targets
Invoke-WebRequest http://127.0.0.1:3080/dsh-codex-micro/dom.json -UseBasicParsing
Verifying Keyboard Hardware Independently: Use the key-probe.html browser tool to press the 9 keys one by one, confirming that the received signals are the expected combinations (code should be Digit1…/F1…, with Ctrl+Shift modifiers).
Notes¶
- Permissions and Runtime Environment: The plugin runs with the permissions of the current dsh process. Source code and License (MIT) should be checked before installation.
- Unsupported Actions: The plugin does not support simulating text input, macros, mouse keys, opening URLs or programs, tray layer switching, or any action requiring computer-side simulation.
- Escalation Confirmation Cards: Currently, intentionally no dangerous actions (such as Approve/Reject/Delete) are placed. If additions are needed, please press the corresponding key first to allow the plugin to capture the real button text (
dom.json), and modify the configuration after confirming it is correct. - Offline Testing: Local unit tests can be performed via
test-harness.mjsandtest-panic.mjs.