dsh-favorite: Bookmarks, Filtering, and Pinning for the DSH Workspace Sidebar

Preface

When running multiple workspaces and sessions simultaneously in DeepSeek Harness (DSH), the sidebar.workspaces section of the sidebar grows longer as projects increase. The official list groups by workspace and displays them chronologically or in manual order, but offers no quick access to “frequently-viewed” items: you either have to search repeatedly through the full list or rely on memory. The community plugin dsh-favourite (repository XSJUSTC/dsh-favourite) shadows and takes over this slot client-side, adding star-based favourites for sessions and workspaces, show-favourites-only/hide-unfavourites filtering, pinned quick rows, and inheritance of favourite status when forking, along with configurable star colours. Below is an introduction to its positioning, capabilities, and installation/usage.

What is this

dsh-favourite (npm package name @xsj/dsh-favourite, version 1.0.0 in current materials) is published by maintainer XSJUSTC and categorized as a client-side plugin. It shadows and registers the workspace management sidebar with priority: -1: the official WorkspaceBrowser remains registered, and uninstalling this plugin returns you to the original interface.

The persistence file is located at <DSH_HOME>/storages/dsh-favourite.json (atomic writes). The host exposes HTTP routes and a ctx.dshFavourite service; the client provides a favourite-enabled workspace browser in lib/client.js. License is MIT, and the runtime environment requires Node.js >= 20.

Core features

Favourites

Hovering over a workspace row or session row reveals a star button, which stays lit after favoriting; the row menu also offers “Favourite / Unfavourite”. Favouriting a workspace does not automatically favourite the sessions within it; they are maintained independently.

Show favourites only

When activated, the first-level list shows only: favourited sessions (as standalone rows, without workspace grouping) + favourited workspaces. Favourited workspaces can be expanded, showing all sessions under them; unfavourited workspaces and unfavourited sessions do not appear. Standalone row sorting follows the sorting method chosen in view options (most recently updated by activity, or manual to match the official single-list manual order).

Hide unfavourites

This only subtracts from the official structure: it does not show “sessions within unfavourited workspaces that are also unfavourited”. Favourited workspaces expand to show all sessions; unfavourited workspaces that contain favourited sessions are still shown, with those sessions nested inside; unfavourited workspaces with 0 favourited sessions are hidden.

Show all

Identical to the official original list, serving as an explicit fallback entry; disabling any filter mode also returns to the full view.

Pinning

For favourited sessions or workspaces, you can choose “Pin” in the row menu. Pinned items appear at the very top of the workspace management area. Pinned sessions are displayed as single rows, without showing the workspace name; hovering reveals metadata such as workspace name, path, session title, time, and status. Pinning is an additional quick row; the session itself remains within its original workspace, without altering the sidebar topology. The pinned row menu also provides rename, fork session, and archive session, with behaviour consistent with in-group session rows.

Fork inheritance

Listens for session/created: for normal forks (where header.parentSession exists and isSeeded, and the session is not a subagent), the child session inherits the parent session’s current favourite and pinned status by default.

Other capabilities

  • Open workspace in file explorer: The pinned row and standalone row menus can open and focus the workspace directory that the session belongs to (the Windows side handles foreground focus via Shell.Application COM and AppActivate).
  • Standalone row drag sorting: In “show favourites only” mode, standalone rows support long-press dragging, sharing the same manual order as the official single list.
  • Star colours: View options allow choosing gold, orange, red, blue, purple, or follow theme; settings are persisted.
  • Filter modes and collapse: While “show favourites only” or “hide unfavourites” is active, the official 5-row collapse limit is skipped; matches are not hidden behind “expand remaining N”. Favourite data polls approximately every 2 seconds and refreshes immediately on window focus; in multi-window scenarios or host-side fork inheritance, changes become visible within about 2 seconds.

Installation and enabling

Installation commands are per the repository README. Example using the web profile to install from GitHub:

# Install from GitHub
dsh plugin --profile web add github:XSJUSTC/dsh-favourite

# Or from a local directory
dsh plugin --profile web add <this plugin directory or file:/link: path>

# Restart DSH and refresh the page

After installation, restart DSH and refresh the browser page; the sidebar workspace section will then be taken over by this plugin’s display logic.

Typical usage

  1. Mark frequently-opened sessions: Hover over the target session row and click the star, or open the row menu and choose favourite.
  2. Narrow the sidebar scope: Open view options and switch to “show favourites only” or “hide unfavourites” to filter the list per the rules above.
  3. Pin entries: Use “Pin” in the row menu on favourited items; at the top of the list, hover to view full metadata; fork or archive via the pinned row menu when needed.
  4. Continue tracking after fork: After performing a normal fork on a favourited session, the child session inherits favourite and pinned status, so no need to star it again.
  5. Personalize: Adjust star colour and sorting in view options; in show-favourites-only mode, drag standalone rows to adjust the manual order.

For host-side integration, you can call ctx.dshFavourite (snapshot / toggle / setPinned / isFavorited), or access via GET /api/dsh-favourite, POST /api/dsh-favourite/toggle, POST /api/dsh-favourite/pin (request body limit 64KB).

Use cases and notes

Suitable for developers who maintain multiple repositories and sessions in DSH long-term and want to reduce sidebar noise via favourites and filtering. Pinning and “show favourites only” work well for keeping sessions/worktrees related to the current iteration in fixed positions without changing the official session storage structure.

The plugin runs with backend process permissions; before installation, it is recommended to read the GitHub source code and the MIT license, confirming that the routes and local storage behaviour meet your environment policies. The community directory SkillHub plugin page and GitHub are independent information sources, with no official affiliation with DeepSeek / High-Flyer; metadata such as star counts is based on what each page displays at the time (in the materials, GitHub shows 1 star).

Conclusion

dsh-favourite adds favourites, filtering, pinning, and fork inheritance to sidebar.workspaces without replacing the official workspace browser, and handles details such as collapse behaviour in filter modes and multi-window synchronization. If you need to manage “frequently viewed” workspaces and sessions in the DSH web client, install it per the README and restart to verify.

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

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

Xiaoye