dsh-agent-status-bar: A Windows Taskbar Overlay for Background Agent Status Monitoring

Introduction

When running an Agent with DeepSeek Harness (DSH), it’s difficult to track the Agent’s execution progress when the main window is occluded and you can’t easily switch back to it. Existing solutions either require manually switching windows to check, or rely on terminal output. This plugin provides a minimalist floating bar above the Windows taskbar that continuously displays the current Agent’s status and progress whenever the DSH window is in the background.

Plugin Overview

  • Name: dsh-agent-status-bar
  • Maintainer: yexiao130
  • Category: Client
  • Problem solved: When the DSH window is occluded, use a floating bar above the taskbar to view the Agent’s thinking, tool calls, pending confirmations, and response completion status—without switching windows.

Core Features

Status Display

The floating bar displays different content based on the Agent’s current state:

  • Thinking: Shows the text Thinking, followed by the tail of the reasoning content being generated, along with an elapsed-time counter (e.g., 12.4s).
  • Tool Call: Shows an action description (e.g., Writing file, Executing command), along with the last reasoning line and the time counter.
  • Awaiting Confirmation: Shows Pending (in red) with a time counter.
  • Response Complete: Shows one line of the response text (possibly truncated with an ellipsis). The bar turns green, displaying ✓ Done and Turn: 12.4s.
  • Idle or DSH in Foreground: The floating bar is automatically hidden.

From left to right: elapsed time, status dot, status label, response or action text, and the hotkey hint on the right side.

Window Behavior

  • Click-through (WS_EX_TRANSPARENT), does not steal focus.
  • Does not appear in the taskbar or Alt+Tab switching.
  • Displayed only in the work area of the primary monitor; multi-monitor follow is not yet supported.

How It Works

Since the DSH Host process cannot create native windows, the plugin implements the floating bar via a PowerShell/WPF overlay (overlay/statusbar.ps1):

  1. The Host plugin subscribes to session/event, merging turn/start, tool/call, approval/asked, assistant/message, and turn/end into a single display state. It also listens to frames from agent/assistant-stream: reasoning-delta fills the Thinking line, text-delta fills the Responding line, and tool/call names are converted into action phrases.
  2. The overlay is launched via powershell.exe -STA, obtains the loopback UDP port from PORT=<n>, and receives state changes through JSON messages.
  3. The overlay polls GetForegroundWindow every 150 milliseconds and is displayed only when the current foreground window does not belong to a DSH process.

DSH files are not modified, so plugin upgrades will not break DSH.

Installation & Activation

Installation

Use the official install command (using a desktop profile as an example):

dsh plugin --profile desktop add github:yexiao130/dsh-agent-status-bar#v0.2.0

After installation, restart DSH, enable Agent status bar in the plugin list, start a conversation, and pin another window to the top—the floating bar will appear above the taskbar.

Local Development Installation

In DSH, select Plugins > Add plugin > choose this directory, and pick the plugin’s directory.

Configuration

All configuration items are located in the plugin line within cordis.patch.yml. You can modify them in the plugin’s patch or override the plugin’s configuration values.

Key Default Meaning
enabled true Loads the plugin; when set to false, the overlay will not start.
barHeight 30 Overlay height, in device-independent pixels (DIP).
fontSize 12 Font size (DIP); labels and the timer use fontSize - 1.
doneHoldMs 8000 Milliseconds the overlay remains visible after the response is complete.
maxChars 600 Maximum number of response characters sent to the overlay; excess is truncated with an ellipsis.
maxReasoningChars 160 Maximum number of reasoning characters for an in-progress step retained in the overlay.
hideOnFullscreen true Hides the overlay when a fullscreen application owns the foreground window.

After configuration, reload the plugin or restart DSH for changes to take effect.

Hotkey

A global hotkey can hide or restore the floating bar at any time, even when another window is focused. The default is Ctrl+Alt+H.

Set it in Settings → Agent status bar: click Record, press the key combination, then save. The hotkey value is stored in ~/.dsh/dsh-agent-status-bar.json and persists across plugin reinstalls or upgrades.

If another application is occupying the key combination, the settings page will display a warning. The overlay retries approximately every 10 seconds and will work once the key is released.

Stability Design

The plugin ensures stability through defensive dependency management and multiple protection mechanisms:

  • All listeners and apply() calls are wrapped; exception callbacks are logged and returned, never propagating to the Host event bus.
  • Numeric configuration values are clamped (height 16–80, font 8–24, hold time 1–60 seconds); non-numeric values fall back to defaults.
  • The overlay uses exponential backoff restart (1.5 s → 60 s) to avoid a restart storm due to PowerShell failures.
  • When a duplicate instance is detected or the Host process exits, the overlay automatically terminates or reclaims itself to avoid orphaned processes.
  • A version field (v) is used to validate UDP schema changes in newer Host versions; incompatible connections are ignored.
  • Log files self-truncate at 256 KiB to prevent log bloat.

Run npm run selfcheck to perform a local self-diagnosis of the plugin, simulating fake Contexts and exception payloads.

Limitations & Notes

  • Windows 10 or 11 only; requires PowerShell 5.1 (included with the OS).
  • Requires DeepSeek Harness Desktop or any DSH profile. If there is no desktop window, the overlay still works and treats “foreground is not DSH” as visible.
  • The overlay uses pure ASCII to avoid BOM and non-ASCII literals causing parse errors.
  • The overlay is rendered only in the primary monitor’s work area; multi-monitor follow is not yet supported.
  • Fullscreen hiding relies on the foreground window covering the entire display; some custom-drawn fullscreen applications may not be detected.
  • One overlay process is used per conversation; disabling the plugin terminates that process.

Privacy

The plugin reads session events locally only and writes status to the overlay’s loopback UDP socket. It does not send any data externally.

Use Cases

Ideal for Windows users who need to run Agent tasks in the background and want real-time visibility into thinking and tool-call progress. Before use, it is recommended to review the source code and license (MIT) to ensure compliance with usage guidelines.

Summary

dsh-agent-status-bar provides clear status feedback via a lightweight PowerShell/WPF overlay when the DSH window is occluded, allowing you to track Agent progress without switching windows. The plugin is flexibly configurable, supports hotkeys and multiple display strategies, and is suitable for everyday use.

Directory page: https://www.skillhub.cn/plugins/yexiao130/dsh-agent-status-bar
GitHub: https://github.com/yexiao130/dsh-agent-status-bar

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

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

Xiaoye