DeepSeek Harness Floating Window for Agent Mode Switching

The Agent Mode Floating Window for DeepSeek Harness (DSH). This is a freely draggable Web-UI panel used to switch the system prompt of the current session between “local prompts” and 13 archived coding Agent CLI prompts.

When debugging or comparing the behavior of different Agents, frequently modifying system prompts disrupts the workflow. This plugin provides a floating window that graphicalizes the switching process while ensuring the integrity and security of session logs.

Plugin Introduction

This is a component designed for the DeepSeek Harness (dsh) plugin ecosystem, maintained by deepseekharness. Through a floating panel, it allows users to quickly switch between DeepSeek Harness’s default prompts and archived prompts from 13 mainstream coding Agents.

Core Features

  • Freely draggable floating window: Supports dragging by holding any position on the window; the collapsed capsule state is also draggable.
  • Position & State Memory: The window’s position and open/close state are automatically saved in the browser’s local storage and restored automatically after a page refresh or session restart.
  • One-click reset to default position: Provides a control on the title bar to reset the window to the default top-right position with one click.
  • Real-time status: The current mode is synchronized with the Host-side session projection in real-time, without relying on polling; changes take effect immediately after switching.
  • Session log security: Switching is executed via the official /agent command. The log records a standard Agent selection card, making it traceable and reproducible.
  • Bilingual (Chinese/English): The interface language automatically switches according to the DSH language settings.
  • Hot-reload friendly: In development mode, modifying client.js triggers an automatic hot reload without requiring a restart.
  • Zero network, zero file writes: No network connections, no tool registration, no injection of prompt body text, and no modification of existing log content.

Installation and Enablement

Install this package using DSH’s plugin command:

dsh plugin --profile <profile> add agent-mode-change

After installation, refresh the web page to see the floating window (located at the top right by default).

Typical Usage

Action Effect
Click any row Switch the current session’s mode (takes effect from the next step)
Drag by holding any position on the window Move the floating window (except for the list scrollbar)
Click – on the title bar Collapse into a small capsule displaying the current mode
Click the capsule Expand
Click ⊙ on the title bar Return to the default position (top right)
Press Escape Collapse

Applicable Scenarios and Notes

This plugin is suitable for developers who need to frequently compare or reproduce the behavior of different Agents.

Prerequisites:
* The @deepseek-ai/dsh-agent-emulation package must be installed and enabled; this is the source providing the 13 archived prompts.
* Web platform only.
* Node version requirement ≥ 20.

Permissions and Side Effects:
* The plugin only executes the /agent command; it does not copy or forward any prompt body text to the network or file system.
* It does not modify existing session log content; the log remains the single source of truth.
* It makes no network requests.

Summary

Through a lightweight floating window, this plugin solves the operational cost of switching Agent modes in DeepSeek Harness. At the same time, it strictly adheres to the “zero side effects” principle, ensuring the purity and security of session logs.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye