Preface¶
The plugin ecosystem of DeepSeek Harness (DSH) allows for flexible interface extensions. The dsh-scroll-piano plugin transforms the vertical bar on the right edge of the chat area into a musical instrument. When the mouse slides over this area, the pitch is determined by the vertical position (higher up equals higher pitch, Theremin style).
Core Features¶
The plugin implements interaction through the following mechanisms:
- Sound Generation: Audio is triggered when the mouse slides over the vertical bar at the right edge of the chat area. The pitch is proportional to the mouse’s vertical position—higher up results in a higher pitch, and lower down results in a lower pitch. The default range is C3–C6.
- Message Markers: Blue bars representing “My Messages” are displayed on the vertical strip. These markers are anchored based on the message’s position within the content flow and are independent of scrolling; therefore, they remain visible regardless of how deep the conversation goes.
- Message Preview: When the mouse approaches a message marker (±16px), a body bubble containing the message text (up to 3 lines) is displayed. No text is shown at other positions.
- Message Navigation: Clicking a blue bar or the preview bubble smoothly scrolls to the corresponding message.
- Control Capsule: A draggable capsule is provided in the bottom left corner. It contains an ON/OFF switch and a volume slider. Settings are saved to
localStorage. Dragging the capsule more than 6px triggers the drag logic.
Installation and Activation¶
Install the plugin via the official command:
dsh plugin --profile desktop add dsh-scroll-piano
After installation, a 🎵 Scroll Piano ON/OFF capsule will appear in the bottom left corner. Initial audio output requires a user gesture (clicking the switch or the first slide) to unlock the AudioContext.
Usage¶
- Glissando: Slide the mouse vertically over the right vertical bar of the chat area to play piano notes.
- View and Jump: Move the mouse near a blue marker to view a message preview; click the marker or bubble to jump to that message.
- Volume Control: Click the switch on the capsule to toggle, and drag the slider on the right side of the capsule to adjust volume.
Technical Details and Notes¶
- Trigger Area: The trigger zone is the right edge of the chat area’s scroll container, not the right edge of the window. This ensures that accidental triggers do not occur when the right panel is open.
- Positioning Logic: Uses
[data-chat-flow]as an anchor. It normalizes marker positions by calculating content offsets, ensuring markers are bound to message content rather than scroll position. - Dependencies: Requires DSH version >= 0.2.0-rc.2. The development environment requires Node >= 22.
- Independence: Independent from the
dsh-pianoplugin and can coexist with it.
Local Development Installation¶
If you need to modify the source code for development, you must configure symlinks and hot-loading:
NODE=~/.dsh/dsh-runtimes/dsh-primary-runtime/dependencies/node/bin/node
PNPM=~/.dsh/dsh-runtimes/dsh-primary-runtime/dependencies/pnpm/bin/pnpm.mjs
# Add to dependencies in profile/package.json: "dsh-scroll-piano": "link:<current-directory>"
# Add to profile/cordis.patch.yml:
# - insert:
# - id: dsh-scroll-piano
# name: dsh-scroll-piano
cd ~/.dsh/profiles/desktop && "$NODE" "$PNPM" install --no-frozen-lockfile
The order is important: run pnpm install first to create the symlink, then trigger the cordis.patch.yml hot-load. Otherwise, the loader will fail to find the package on the first require.