Introduction¶
DeepSeek Harness (DSH) sidebar defaults to a flat layout with workspaces as the top level and sessions displayed directly beneath them. As the number of sessions grows, sessions under the same workspace tend to blend together, making it harder to find and locate a specific one. The existing session management only allows operations through session tools outside the sidebar, or reliance on the browser’s global search.
dsh-grouped-sessions is a client-side plugin that takes over the session area of the DSH sidebar and extends the original two-level structure into three levels: Workspace → Group → Session tree. This allows you to organize sessions by business or project and quickly locate them through a tree structure, all without leaving the sidebar.
Plugin Overview¶
- Name: dsh-grouped-sessions
- Maintainer: OverToWind
- Type: Cordis bundle plugin, runs in the DSH Web UI
- Problem solved: Organizes a large number of sessions into groups within the same workspace, enabling session archiving, moving, and searching directly from the sidebar
Core Features¶
Sidebar Tree Structure¶
The session area of the sidebar is restructured into a three-level tree: expanding a workspace reveals the groups under that workspace, along with an Ungrouped row that holds sessions not assigned to any group. After opening a workspace, select a group, then select a session to open the conversation.
Grouping by Workspace¶
Each workspace can have its own independent set of groups. Click + on any workspace row to create a new group within that workspace; click + in the sidebar header to create a group in the current workspace. After creation, the workspace expands automatically so you can type in the group name.
Archiving Methods¶
There are two ways to assign a session to a group:
- Drag and drop: Drag a session row onto the target group. The plugin only accepts its own drag format, so external text drags will not accidentally trigger archiving.
- Menu: Select “Move to group” from the
⋯menu on a session row. A group list popup appears for selection. When the sidebar is narrow, this is the only available method.
Session Menu Preserves Native Behavior¶
The ⋯ button on each session row is the native session menu slot provided by DSH Shell. The plugin simply registers a Move to group submenu on top of it (and Move out of group for already-archived sessions). Therefore, operations like renaming, copying session ID, archiving, and pinning remain unchanged — the plugin does not reimplement these features.
Group Operations¶
From the group’s ⋯ menu, you can perform the following:
- Rename: An input field validates the name before closing. Empty names display an inline error instead of discarding the input.
- Delete: After deleting a group, its sessions fall back to
Ungrouped. - Move up / Move down: Reorder groups within the same workspace to pin frequently used groups to the top. Operations in a direction are disabled when at the boundary.
The Ungrouped row also has its own ⋯ menu with move up and move down support, but no rename or delete options.
Real-time Metadata and Filtering¶
- Session rows display the title, a running-status indicator dot (shown while active), and a relative time since last activity.
- Below each group, the count of currently visible sessions is shown, updating dynamically as groups are collapsed or expanded.
- The search box at the top filters across all workspaces simultaneously. When no matches are found, a “no matches” hint is displayed under each workspace.
Collapse and Expand¶
Newly created groups are collapsed by default until you manually expand them. Workspaces are expanded by default, and Ungrouped is expanded by default. All collapse/expand states and the position of Ungrouped are persisted in localStorage under the key dsh-session-groups.sidebar. When you archive a session into a collapsed group, that group expands automatically to prevent the session row from disappearing.
Multilingual Support¶
All UI text follows the DSH Shell language (English / Chinese). Switching language takes effect immediately without a page refresh.
Installation¶
The plugin is distributed as a Cordis bundle and must be installed via DSH’s plugin management command.
dsh plugin --profile <profile> add github:OverToWind/dsh-grouped-sessions
After installation, refresh the browser window to activate it.
Data Storage¶
Plugin data is stored in the user directory:
~/.dsh/dsh-grouped-sessions.json- Or
$DSH_HOME/dsh-grouped-sessions.json
The file is a single-document JSON containing a version number and a list of groups. Each group includes id, workspaceId, name, order, and sessionIds. The file is written atomically and can be read or repaired with a plain text editor.
On first creation of the file, the Host reads the legacy ~/.dsh/dsh-session-groups.json (if it exists) to ensure no existing groups are lost during upgrade.
Use Cases and Notes¶
- Suited for developers managing multiple parallel projects or multiple long-running sessions within the same workspace.
- Suited for scenarios where you need to quickly switch between sessions from the sidebar and prefer organizing them into groups.
- The plugin runs with the privileges of the current DSH process. Review its source code and license (MIT) before installing.
- Groups belong to a workspace. Switching workspaces displays the corresponding set of groups, and the tree structure always shows all workspaces.
Conclusion¶
dsh-grouped-sessions takes over the session area of the sidebar, transforming the originally flat session list into a tree structure. Without altering DSH Shell’s native session operations, it adds the ability to archive and reorder sessions by group, making it well-suited for developers who need to organize a large number of sessions within the same workspace.
- Directory: https://www.skillhub.cn/plugins/OverToWind/dsh-grouped-sessions
- GitHub: https://github.com/OverToWind/dsh-grouped-sessions