dsh-session-organizer: DSH Web Sidebar Two-Level Session Organization

Introduction

When maintaining multiple workspaces and numerous sessions simultaneously in DeepSeek Harness (DSH), the sidebar often defaults to a flat list organized by workspace. If further categorization of sessions is required, the common community practice is to install two separate plugins: dsh-workspace-hub and dsh-session-categories. This results in overlapping functionality and potential slot conflicts. Below is an introduction to the client plugin dsh-session-organizer, released by maintainer a1137261060. It utilizes a single plugin to implement a two-level organization—“Workspace Groups + Session Folders within Workspaces”—in the web sidebar, accompanied by status dots, a pending overview, and search capabilities.

What is This

dsh-session-organizer targets the sidebar of the DSH web profile. By replacing the sidebar.workspaces slot (priority -100), it provides a two-level structure:

  • Level 1: Custom workspace groups supporting colors, drag-and-drop, and collapsing.
  • Level 2: Independent session folders for each workspace, supporting nesting, drag-and-drop, and collapsing.

The README states that it replaces the combined solution of “dsh-workspace-hub + dsh-session-categories”. Classified as a Client plugin, the current package version is 0.2.2. It has been tested on DSH 0.2.1-rc.2 (web profile), is MIT licensed, and requires engines.dsh to be >=0.2.1-rc.1.

Community Directory: SkillHub - dsh-session-organizer. Source Code & Docs: GitHub - a1137261060/dsh-session-organizer.

Core Features

Workspace Groups (Level 1)

  1. Create, rename, and delete groups (with color identification and automatic color assignment);
  2. Drag workspaces into or out of groups, or reorder them within a group; drag group cards to adjust group order;
  3. One-click expand or collapse all groups;
  4. When a group is deleted, the workspaces within it become “Ungrouped”; workspaces and their sessions are not deleted;
  5. Ungrouped workspaces are listed under the “Ungrouped” card.

Session Folders (Level 2)

  1. Independent folder system for each workspace, supporting nested subfolders;
  2. Drag sessions into or out of folders, and reorder them within folders; cross-folder dragging automatically moves the session;
  3. Create, rename, and delete folders (deleting a folder turns sessions into “Uncategorized”; sessions are not deleted);
  4. Directly “New Session” (automatically assigned to that folder) and “New Subfolder” within a folder;
  5. Uncategorized sessions are listed after the folders without occupying a separate section header.

Session Rows & Status

Session rows align with the status dots of DSH 0.2.1 native semantics: Waiting for interaction/Blocked (Yellow), Running (Blue · Pulsing), Manual Unprocessed (Orange · Halo), Completed Unread (Green), Idle (Gray), with real-time updates. Untitled sessions prioritize displaying the first question text; otherwise, they show “Unnamed · Recent Activity Time”.

The ⋯ menu supports: Mark as Unprocessed, Move to Folder (including nested trees), Rename, Fork (child sessions inherit the source session’s folder), Archive, and Copy Session ID.

Pending Session Overview

Real-time display below the search box showing “Which folder in which workspace has pending items”:

  • Pending includes: Waiting for interaction (approval, plan confirmation, questions, etc., where the agent is blocked), manual “Unprocessed” flags, and Completed Unread, arranged by priority;
  • Grouped by Workspace → Folder (or Uncategorized), with group headers showing location and count, which are collapsible;
  • Click a session row to open it directly; the area is hidden when there are no pending items;
  • Data is derived from DSH 0.2.1 global session state hooks.

Manual “Unprocessed” flags are applied via the ⋯ menu and are not automatically cleared upon opening the session; they are persisted to ~/.dsh/dshorg-manual-unread.json. Flagged sessions appear in the pending area with an orange status dot featuring a halo.

Search & Retained Native Operations

  • Title search works out of the box; Message full-text search depends on the host-side @deepseek-ai/dsh-session-query-sqlite (see configuration below).
  • When searching, the group view is hidden, and results are displayed grouped by title/message.
  • Retained operations: Open/Rename/Fork/Archive sessions, creating new sessions via various entry points, and adding/renaming/deleting workspaces.

Installation & Activation

The plugin runs with the current dsh process permissions; it is recommended to review the source code and MIT license on GitHub before installation.

Install from GitHub (Recommended in README):

dsh plugin --profile web add https://github.com/a1137261060/dsh-session-organizer/archive/refs/heads/main.tar.gz

For local development, use the link method (restart dsh web to load after code changes):

dsh plugin --profile web add link:<plugin_absolute_path>

After installation, restart the dsh web service and refresh the page; the sidebar will transform into the grouped view.

The DSH default configuration for session-query-sqlite is openAt: never (disabled). If message full-text search is required, override it in the profile’s cordis.patch.yml:

- id: session-query-sqlite
  config:
    path: 'C:/Users/<you>/.dsh/session-search.db'   # Persistent index path (POSIX same)
    openAt: first-search

If not enabled, message search will indicate failure, but title search remains unaffected.

Typical Usage

The operational path described in the README can be summarized as follows:

  1. Top Bar: Sessions (New), Workspaces (Add), Groups (New Group);
  2. Workspace Row ⋯: Move to Group, New Session, New Folder, Rename, Delete;
  3. Folder Row (on hover): New Session, New Subfolder, Rename, Delete;
  4. Session Row ⋯: Mark as Unprocessed, Move to Folder, Rename, Fork, Archive, Copy Session ID;
  5. Utilize the Pending Area below the search box to jump across workspaces to sessions requiring action;
  6. Workspace names, folder names, and session names are displayed in full (with automatic line wrapping); the entire row is clickable, and drag-and-drop uses the independent MIME type application/x-dshorg.

Data Persistence & Structure

  • Groups and Folders: localStorage (for fast rendering) + Host disk ~/.dsh/dshorg-groups.json, ~/.dsh/dshorg-session-folders.json;
  • Configuration is retained across browser changes, cache clearing, and dsh web restarts; relevant attributions are automatically cleaned up when workspaces are deleted or sessions are archived/deleted;
  • Data is not erroneously cleared while the workspace list is still loading.

Package Structure (Excerpt from README):

dsh-session-organizer/
├── package.json
├── cordis.patch.yml
├── lib/
│   ├── index.js        # host: /api/dshorg/* disk persistence
│   └── client.js       # client: replace sidebar.workspaces
├── LICENSE
└── README.md

The implementation is self-contained: the client is loaded via window.__ModuleLoader__.load (depending only on react), and the host is ESM (node:fs / node:path) with no third-party runtime dependencies.

Use Cases & Notes

Suitable for: Users managing multiple workspaces and sessions in the DSH Web sidebar who require grouping/folders, a pending overview, and drag-and-drop organization.

Important Notes:

  1. Mutually exclusive with plugins that also replace sidebar.workspaces (such as dsh-workspace-hub, dsh-session-categories); do not install them simultaneously;
  2. Adapted for DSH 0.2.1 series APIs; if slots or services change after a DSH upgrade, a plugin update may be necessary;
  3. This plugin belongs to the community ecosystem (SkillHub, etc., are independent directory sites and have no official affiliation with DeepSeek / High-Flyer); star counts and maintenance frequency are subject to GitHub.

Conclusion

dsh-session-organizer integrates workspace grouping and session folders into a single Web sidebar plugin, supplemented by status dots, a pending overview, and search, reducing the redundancy and conflicts caused by the “dual-plugin” combination. For installation commands and configuration details, refer to the README:

  • Directory: https://www.skillhub.cn/plugins/a1137261060/dsh-session-organizer
  • GitHub: https://github.com/a1137261060/dsh-session-organizer
羽毛球分组比赛记分
小程序二维码

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

Xiaoye