DeepSeek Harness Plugin: Collapsing Super-Agent Sessions into a Single-Line Status

Preface

When using dsh-superagent in DeepSeek Harness (DSH), each worker session creates an independent Workspace, resulting in dozens of task directories cluttering the sidebar, consuming significant space, and distracting attention. The native plugin manager browser allows nesting these directories within a collapsed tree, but expanding it still lists all tasks, failing to provide effective focus.

dsh-superagent-session-fold is a DSH client plugin designed to containerize all sessions belonging to the Superagent, presenting them as a single status line in the sidebar, and opening the main coordination session on demand.

Plugin Identity

  • Name: dsh-superagent-session-fold
  • Maintainer: yichao-agent
  • Type: Client plugin
  • Version: 0.5.0
  • Repository: https://github.com/yichao-agent/dsh-superagent-session-fold

Core Features

  • Session Containerization: Removes all sessions whose workspaces are located under the Superagent state directory (default /.dsh/state/superagent) from the sidebar session list — they appear neither as rows nor as directories.
  • Single-Line Status Display: Retains a single status line at the Superagent parent level, showing the number of running, waiting, or total tasks. When workers are running or awaiting human input, this line moves to the top of the list.
  • Click to Open Main Session: Clicking the status line opens the Superagent’s main conversation (i.e., the live orchestrator-* session). The sidebar row is for conversations; the management panel already has a dedicated Superagent entry.
  • Directory Hiding: Hides the same directories in the “New Session” workspace selector, showing only the user’s own workspaces and indicating the number of hidden Superagent directories. Add Workspace… still works via the host directory picker.
  • No Tree Expansion: Task directories can no longer leak into the sidebar. A previous version supported an expandable container, but this was abandoned as it contradicted the purpose of folding.
  • No Data Modification: Other workspaces retain their grouped/expanded list behavior, search can still find containerized sessions by title, and no session or workspace data is modified.

Installation & Activation

This plugin is a DSH bundle (Host no-op + Client module).

Plugin Manager

  1. Clone or download the repository to a local directory:
git clone https://github.com/yichao-agent/dsh-superagent-session-fold.git
  1. Open Settings → Plugins → Add Plugin and install from that directory.
  2. Reload the web page (the client module is loaded at page startup; a reload is required after installation or update).

Command Line

dsh plugin --profile web add /absolute/path/to/dsh-superagent-session-fold

After installation, restart or reload the Web UI. Disabling the plugin immediately restores the built-in sidebar browser; no changes are made to disk.

Requirement: DSH 0.2.2-rc.3 (tested). Superagent integration is optional; without dsh-superagent, the container row still folds the state directory, but the main session fallback opens the most recent session in that directory.

Typical Usage

The default configuration suits a standard DSH + Superagent installation. Advanced overrides are stored in the page’s localStorage (not read from host configuration).

Key Default Description
dsh-superagent-session-fold.roots.v1 ["/.dsh/state/superagent"] JSON array containing path segments to be containerized. Matching is boundary-aware: /.dsh/state/superagent matches the parent directory and all tasks beneath it.
dsh-superagent-session-fold.showArchived.v1 false Whether to list archived sessions in normal groups.
dsh-superagent-session-fold.expanded.v1 {} Expanded state for normal workspaces only; containers and task folders are never persisted as expanded.

Older versions (dsh-session-fold) retain their view state: legacy dsh-session-fold.* keys are still read as a fallback.

Example: To also containerize another script directory:

localStorage.setItem('dsh-superagent-session-fold.roots.v1', JSON.stringify([
  '/.dsh/state/superagent',
  '/.dsh/state/other-agent',
]))
location.reload()

Use Cases & Cautions

  • Ideal for using DSH with a large number of dsh-superagent worker sessions, where you need a clean sidebar focused on your own conversations.
  • The plugin runs with the current DSH process privileges; it is recommended to review the source code and license before installation.
  • A page reload is required after installation; the client module is loaded at page startup and does not support hot-swapping.
  • Once enabled, the built-in browser’s session management features (adding/renaming/deleting workspaces, drag-and-drop reordering, view options, row decorations from other plugins, etc.) will no longer render.
  • The plugin replaces a single slot from other packages (sidebar.workspaces and conversation.hero.workspace). If a DSH version renames either slot or changes its standard properties, a plugin update is required.
  • The new session selector is a replacement, not a filter; the composite directory flow dialog of the built-in selector does not render. Add Workspace… uses the host directory picker.
  • Containerization does not support in-place expansion by design; to access worker sessions, use the Superagent panel or search.

Summary

dsh-superagent-session-fold folds a large number of worker sessions into a single status line through containerization, reducing sidebar noise and allowing developers to focus more effectively on their own conversations. The plugin modifies no data, remains compatible with other workspaces, and supports extending container paths via configuration.

  • Plugin Directory Page: https://www.skillhub.cn/plugins/yichao-agent/dsh-superagent-session-fold
  • GitHub Repository: https://github.com/yichao-agent/dsh-superagent-session-fold
羽毛球分组比赛记分
小程序二维码

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

Xiaoye