DeepSeek Harness Sub-Agent Panel Enhancement Plugin

Introduction

In DeepSeek Harness (DSH), the native sub-agent list in the session header only displays model names, making it difficult to visually distinguish running states and durations. Once multiple sub-agents are spawned in a session, managing them becomes error-prone—items can be overlooked or accidentally manipulated. This plugin replaces the native entry with an enhanced view that consolidates key information for each sub-agent, including model, reasoning level, status, token consumption, and active time, and provides archiving and permanent deletion capabilities.

Plugin Overview

dsh-subagent-panel-plus is a DSH plugin package maintained by magalz. It injects a patch into the DSH session header to replace the native sub-agent list with an enhanced version. The enhanced version supports status-based sorting, click-to-view details, keyboard navigation, and archiving or permanently deleting sub-agent sessions.

Core Features

1. Enhanced Sub-Agent List

Each row displays the following information:
- Model and reasoning level: model · effort, sourced from DSH’s model selection projection; displays — when no selection is recorded
- Status ordering: Running → Idle → Completed → External, with stable ordering within the same group
- Status dot: green for running, yellow for idle, blue for completed, gray for external
- Metrics: total token count, active working time, start time (HH:MM)

2. Navigation and Keyboard Controls

  • Click a row to open the sub-agent session
  • Sidebar button to open in the right sidebar
  • Press ArrowDown on the header chip to open the list and focus the first row
  • Up/Down/Home/End to navigate within the list
  • Right/Left to expand/collapse
  • Enter or Space to open the session
  • Escape to close the list and return focus to the chip

3. Archive and Permanent Deletion

Each row has a ⋯ menu on the right side:
- Archive: DSH’s native reversible archive; disabled while the sub-agent is running
- Permanent deletion: requires two clicks (the first click activates a 4-second confirmation window); disabled while the sub-agent is running
- After the first click, a warning appears indicating the session folder will be removed
- Upon the second confirming click, the Host executes the archive operation and deletes the session folder along with its sub-agent folders
- Deletion is irreversible

4. Security Model

Permanent deletion is executed on the Host side. The target path is <sessions root>/<project>/<id>/, where <sessions root> is DSH_HOME or ~/.dsh/sessions. Before deletion, the following checks are performed:
- The target is a listed sub-agent
- Neither the target nor its descendants are currently running
- The target is the origin of the sub-agent
- The target has session logs

Deletion requests are transmitted through DSH’s Connection gate and cannot be invoked by other web pages. The Host provides an exists route, allowing the list to hide the corresponding entry when a folder is deleted. However, DSH’s search index, projection cache, and archive set still retain the records, and the parent session’s log still preserves the name.

Installation and Activation

In DSH, open “Plugins → Add plugin” and enter the following command:

github:magalz/dsh-subagent-panel-plus

If the plugin does not appear, restart DSH. The plugin is packaged as pure ESM and requires no build steps or runtime dependencies. Installation does not require additional permissions.

You can also install it via the following methods:

  • Use the pre-packaged tarball released at v0.1.0
  • Use a local path:
dsh plugin --profile <name> add ./dsh-subagent-panel-plus

Typical Usage

  1. Open a DSH session that contains multiple sub-agents
  2. Click the native sub-agent chip in the session header; the enhanced list will replace the native entry
  3. The list is sorted by status; click a row to open that sub-agent’s session
  4. Use keyboard arrow keys to navigate the list; press Enter or Space to open a session
  5. Click the ⋯ menu on a row and select “Archive” to archive or “Delete permanently” to permanently delete
    - After archiving, the row is removed from the list
    - Permanent deletion requires a second click to confirm; once the session folder is removed, it cannot be recovered

Use Cases and Notes

This plugin is suitable for developers who need fine-grained management of sub-agent sessions and want to quickly identify running states and resource consumption from the list. The plugin runs with the current DSH process’s permissions. It is recommended to review the source code and license (MIT) before installation.

Known limitations:
- Agent team task boards are not displayed; the chip does not appear when only sub-agents are present
- No retry button for failed directory loading; no migration handling for tree structures
- The list opens on hover even when the header count is hidden
- No undo prompt for archive operations
- The breadcrumb switcher inside sub-agent sessions remains native
- Icons and menu positions have been verified through source code review, Node tests, and browser screenshots

Conclusion

This plugin enhances list presentation and provides deletion capabilities, making sub-agent session management more controllable. For further details, refer to the specification documents, architecture decision records, and business rule documents in the GitHub repository.

Plugin Directory Page
GitHub Repository

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

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

Xiaoye