dsh-sidebar-view: Adding Grouping and Status Filtering to the DeepSeek Harness Sidebar

Introduction

DeepSeek Harness (DSH)’s native sidebar only offers “by workspace,” “by workspace tree,” “single list (flat),” and archived hidden. When you have five or six sessions open and come back the next day, they’re just stacked by workspace, and you have to scan row by row to find “that one where I was fixing CI yesterday.” dsh-sidebar-view adds a presentation-layer enhancement to the sidebar, collapsing git worktrees of the same repository into two levels, and also provides grouping by time and by tag, along with status tabs with live counts.

What This Is

  • Scope: A DeepSeek Harness sidebar UI enhancement plugin. It does not take over session data, nor does it modify search or workspace storage.
  • Maintainer: GarinZ.
  • Core value: Adds grouping by repository, by time, and by tag to the sidebar, plus All / Running / Pending / To-Review status tabs, making the session list easier to scan and manage.

Core Features

Group by Repository (Default)

A new “by repository” option appears in the view options, used to collapse git worktrees. The plugin reads each workspace’s .git: the main checkout becomes the parent row, and worktrees of the same repository become child rows indented one level beneath it. Child rows display the directory name, and hovering reveals worktree · <branch>. Aggregation only occurs when the main checkout is also registered in DSH and the same repository has at least two workspaces. A single workspace, a non-git directory, or an unreadable .git remains flat. Once you switch to another grouping, the selection is remembered and won’t automatically revert.

Group by Time

A new “by time” grouping appears in the view options. The range is Pinned → Today → Yesterday → This Week (starting Monday) → Earlier; empty buckets are automatically hidden. Bucket headers show the row count and a collapse triangle, so you can collapse an entire section.

Cross-Project Flat View

The time view ignores workspace boundaries—all sessions from all projects are mixed onto a single timeline. You can see the owning workspace at the end of each row (atlas-web, infra……) without clicking in to know which project it belongs to. The single-list view also supports showing the workspace name at the end of the row.

Group by Tag

A new “by tag” grouping appears in the view options, collecting sessions with the same tag together. Tag headers display a color dot and the row count; untagged sessions are collected in a final “No Tag” group at the bottom. Empty groups are automatically hidden.

Status Tabs

Below the title, a row of All / Running / Pending / To-Review with live counts. All six grouping modes (by workspace / by workspace tree / by repository / single list / by time / by tag) are effective. After filtering, groups and buckets with zero results automatically disappear.

Font Size & Workspace Name

In the view options, you can switch between three font sizes: Small 12px / Standard 14px / Large 16px (the standard tier matches DSH’s native title). Font size is a density system, not just a glyph layer: line height follows 24 / 28 / 32px, inter-line spacing 1 / 2 / 3px, and workspace rows, session rows, bucket headers, counts, and timestamps all scale in sync. The small tier shows roughly three extra rows per screen compared to standard. There’s also a “Show workspace name” toggle—when enabled, the single-list and by-time rows display the owning workspace at the end. The by-workspace view doesn’t add this (the header is already the workspace name). In both tree views (by workspace tree, by repository), session rows are indented one level deeper than the workspace header, making it clear which workspace each session belongs to.

Workspace Prefix Icons

Right-click a workspace and select “Workspace Icon.” 166 emojis are displayed in a flat grid grouped by Work / Tech / Nature / Life. You can also switch to “Icons” for 207 linear icons with search support (rock, folder, code……). If unset, the original folder icon is used. A “Reset to default” button is always available in the dialog.

Tags

Right-click a session and select “Tag.” In the small panel beside the row, pick one of nine colors (red / orange / amber / green / teal / blue / purple / pink / gray) and give it a name. A short color chip (3×14 px) appears in the left margin of the row (the tag name is also visible in the hover card). Existing tags in the panel can be clicked to reuse directly. Each tag row has a pencil and × on the right: the pencil loads that tag into the editor (rename, recolor, then save—all sessions reusing it update together); × first counts the references, then shows a confirmation dialog (“Sessions using ‘X’: N. After deletion, these sessions will become untagged.” If no sessions use it: “No sessions are using ‘X’.”). After confirmation, the tag entity is removed and bound sessions become untagged. The “No Tag” button at the bottom only clears the current session’s binding, separate from deleting the tag. The color chip is drawn in the left margin and does not occupy the 16px status slot in front—completed-unread green dots, pending, errors, and running spinners remain the native ones; the two don’t overlap.

In-Bucket Drag & Drop

In the time view, you can drag to reorder, but it only works within the same bucket—dropping across buckets won’t change the order, because the bucket itself is determined by the last update time. The drop position writes back to the global manual order, and the single-list view’s order changes in sync.

All Native Behaviors Preserved

Search (local + host), right-click menus, rename, fork, pin, archive, manual sort, expand remaining N, add workspace, workspace menu, keyboard shortcuts, collapse 56px rail—all use the native implementation. The plugin only adds, never removes.

Install & Enable

Install from npm:

dsh plugin --profile web add dsh-sidebar-view

Install from GitHub (the repo ships a pre-built client.js, no local build needed):

dsh plugin --profile web add git+https://github.com/GarinZ/dsh-sidebar-view.git

Local development:

dsh plugin --profile web add link:/path/to/dsh-sidebar-view

Restart the app after installation to apply. To uninstall:

dsh plugin --profile web remove dsh-sidebar-view

The plugin doesn’t modify any native files or write user data. After uninstalling, the sidebar immediately reverts to its native appearance.

Desktop uses the desktop profile:

dsh plugin --profile desktop add dsh-sidebar-view
dsh plugin --profile desktop remove dsh-sidebar-view

Close and reopen the app after installing.

Compatibility

  • DeepSeek Harness 0.2.2-rc.3 · macOS Desktop (desktop profile)—verified
  • DeepSeek Harness 0.2.2-rc.3 · Browser / web profile—verified
  • Isolated clean profile (only this plugin installed)—verified: no startup errors
  • DSH 0.3.x—unverified; engines.dsh will reject installation outright, preventing you from installing a version that would crash

package.json declares engines.dsh: >=0.2.2-0 <0.3.0. The host checks this during install, update, and startup. To test ahead of time, use dsh plugin --profile <p> allow-version to explicitly waive the constraint.

Usage

Open View Options (sliders icon) in the top-right corner of the sidebar:

  • Under “Grouping,” select By Repository (selected by default); collapsing the main checkout row collapses the entire worktree subtree; hovering a worktree child row reveals the branch;
  • To filter by a specific status, click All / Running / Pending / To-Review below the title;
  • To view by time, select By Time: click a bucket header to collapse the entire section; dragging rows only reorders within the same bucket;
  • Appearance: right-click a workspace to set an icon, right-click a session to set a tag (color + name); changes take effect immediately and are saved locally. To view by tag, go to “Grouping → By Tag.”

Status meanings:

  • Running: the session is actively executing (including running sub-agents);
  • Pending: a tool call is waiting for your confirmation;
  • To-Review: the turn completed in the background and you haven’t opened it yet (follows the native completionUnread; refreshing the page clears it).

Incremental state is stored in localStorage["dsh.workspace.view.sidebar-view.v1"]. The native key dsh.workspace.view.v5 is exclusively managed by the native store. To fully reset, delete both keys.

Implementation

The entire “Sessions / Workspaces” block in the sidebar is a single component, registered on the sidebar.workspaces single slot. This plugin does not disable @deepseek-ai/dsh-client-ui-workspace and doesn’t register any services:

  1. After it finishes registering, wrap that entry’s component in its own error boundary;
  2. The shell reads the native store snapshot, overlays incremental fields (status filter, collapse state, time / by-repo mode, icons and tags), then passes the native props (including renderSlot) to the ported browser component;
  3. If the component throws an error, the error boundary directly renders the native component; if the bundle hasn’t loaded, the native component is untouched.

So third-party decorations injected at the row start/end, row action buttons, and directory pickers all work as expected. In the worst case, you get “no new features,” not “the client won’t start.”

Known Limitations

  • Relies on the undocumented internal contract of 0.2.2-rc.3 (StoredEntry.component is replaceable). If upstream changes this, the plugin will “not take effect” rather than crash.
  • Drag & drop in the time view only works within the same bucket: buckets are determined by update time, and there’s no writable target position across buckets.
  • By-repository grouping reads the workspace’s .git: worktrees whose main checkout isn’t registered in DSH won’t be aggregated and remain flat; workspaces with no sessions can’t obtain the session identity needed for file access and also remain flat.
  • Worktree rows only show the directory name; the branch is in the hover card, not taking up inline width.
  • The trailing workspace chip takes about 72px, so long titles will truncate earlier than native.
  • In a pure web profile, the “Add Workspace” overlay requires dsh-client-ui-directory-picker-browse; it works normally in the desktop app.

Use Cases

Ideal for developers and agent developers who need to manage multiple workspaces and multiple sessions in a single sidebar, with quick status filtering, grouping by time or repository, and tagging tasks. The plugin runs with the current DSH process’s permissions. Review the source code and MIT license before installing.

In Short

dsh-sidebar-view adds three grouping modes—time, repository, and tag—along with status tabs to the sidebar, making the session list easier to scan, without altering DSH’s core behavior. Plugin: https://github.com/GarinZ/dsh-sidebar-view

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

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

Xiaoye