dsh-plugin-busy-workspace: A DSH Plugin for Highlighting and Pinning Active Workspaces to the Top

Introduction

When running multiple agents in parallel within DeepSeek Harness (DSH), the sidebar quickly becomes a wall of homogeneous rows. Every workspace header and session row renders exactly the same, with the only signal being a 10-pixel dot that requires tedious searching to find.

This design leads to several specific pain points: inability to confirm which workspace is executing a task, busy workspaces sinking to the bottom due to interactions with other items, inability to notice immediately when a session completes, and low-contrast status dots that are difficult to identify without close inspection.

This plugin aims to answer two core questions: What is currently running and Where did the task I started go. It focuses attention on active sessions through visual weight and sorting logic.

Plugin Positioning

This is a DeepSeek Harness (DSH) Web GUI plugin maintained by baifagg under the MIT license.

Its core function is to highlight running sessions in the DSH sidebar and pin workspaces holding active sessions to the top. It provides a visual system based on “attention phases” and fully adapts to the current theme without requiring manual color configuration.

Core Capabilities

1. 5 Attention Phases and Sorting

The plugin categorizes all sessions into five attention phases, sorted by urgency from high to low:

  • Waiting: Requires user approval, plan review, or answers. Displayed in amber and pinned to the first position.
  • Running: Actively running sessions. Displayed in blue with a sub-agent count chip.
  • Completed-Unread: Finished but not yet opened or viewed. Displayed in green and pinned for 8 hours.
  • Seen: Sessions that have been opened but not left. Displayed in green (faded) and kept pinned until 15 minutes after the user switches selection.
  • Interrupted: Running for over 6 hours with no new output. Displayed in red; marked but not pinned.

2. Theme-Adaptive Design

The plugin does not contain hard-coded color values. It relies entirely on CSS variables (Tokens) defined by the DSH theme:

  • Running: Uses --dsw-static-deepseek-450
  • Waiting: Uses --dsw-alias-state-warn-primary
  • Completed/Seen: Uses --dsw-alias-state-success-primary
  • Interrupted: Uses --dsw-alias-state-error-primary
  • Selected Row: Uses a plugin-defined purple (mixing --bw-running and --bw-interrupted), avoiding the borrowing of status colors.

This design ensures the plugin displays correctly under the default light/dark themes as well as community theme packs like Catppuccin and Nord.

3. Persistence of Completion Status

This represents a significant logic correction by the plugin. The official done status corresponds to completionUnread (Completed and Unread). If the logic simply removed highlighting by transitioning “Unread” to “Read,” the row being read would suddenly disappear when the user opened the session.

The plugin adopts a “decay rather than sudden stop” strategy:

  • Opening a “Completed-Unread” session turns it into “Seen” and keeps it pinned.
  • It will not disappear as long as the user remains on that row.
  • Once the user switches selection, a 15-minute “Seen” countdown begins.
  • The unopened “Completed-Unread” status persists for 8 hours, sufficient to cover a lunch break.

4. Visual Feedback

  • Sub-agents: Rendered as a small count chip instead of using color differentiation.
  • Completion Pulse: When a session truly ends, the row exhibits a brief green settle pulse to inform the user that the task is complete.
  • Indicators: A 3px colored bar on the left side of each row, along with a color ring and surface color matching the hue.

Installation

This plugin runs as a DSH plugin. Installation steps are as follows:

  1. Obtain the plugin source code. You can clone via Git or download the ZIP package.
  2. Place the plugin files into the DSH plugin directory.
# Example: Clone via Git to the DSH directory (adjust path according to your actual environment)
git clone https://github.com/baifagg/dsh-plugin-busy-workspace.git /path/to/your/dsh/plugins/dsh-plugin-busy-workspace

The plugin depends on @deepseek-ai/cordis and @deepseek-ai/dsh (versions must satisfy constraints in package.json). You must restart the DSH process after installation to enable it.

Typical Usage

  1. Parallel Workspace Management: When you launch agents in three workspaces simultaneously, workspaces holding “Waiting” or “Running” sessions automatically float to the top of the list.
  2. Status Identification: Quickly scan the sidebar to distinguish the current status distribution via color bars and hues without reading specific text.
  3. Task Tracking: If you started a task to look up information, opening it to view results does not make it disappear from the list; instead, it turns into a faded green state, waiting for you to handle the next task.
  4. Completion Notification: When a long-running session suddenly completes, you will see the row flash a green pulse, reminding you that the task has ended.

Notes

  • Permission Requirements: This plugin runs with the permissions of the current DSH process. It is recommended to review the source code before installation to ensure it meets security requirements.
  • License: The plugin is released under the MIT License, allowing free use and modification.
  • Dependencies: Ensure your local environment has compatible versions of the DeepSeek Harness and Cordis plugin framework installed.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye