Introduction¶
The official sidebar of DeepSeek Harness (DSH) already supports pinning sessions, but pinned sessions are mixed into the regular session list, making them hard to locate and manage. Additionally, color labels—a common organizational tool in macOS—are not natively available in DSH. dsh-pin-top combines both capabilities: it aggregates officially pinned sessions into a dedicated section, and provides macOS-style color labels along with workspace navigation buttons.
What Is This¶
dsh-pin-top is a client-side plugin for DSH, developed by maintainer MingGH. It reads the official pinnedSessionIds, collects pinned sessions into a dedicated section at the top of the sidebar—one row per session, clickable to open directly. It also provides right-click color labels (selecting a color also pins the session) and three title bar buttons (Locate current session, Collapse all, Expand all).
Core Features¶
Pinned Session Aggregation¶
The plugin reads the official pinnedSessionIds and creates a dedicated section at the top of the sidebar to display pinned sessions. One row per session; click to open directly. Pinning and unpinning still go through the official right-click menu items and hover pin icon—this plugin does not maintain a separate copy of pin state.
Color Labels¶
Right-click any session row → “Label Color ▸”:
- Seven macOS system colors; dark theme automatically switches to the dark variant; the current color is marked with ✓
- Selecting a color pins the session; “No Color” clears only the color without affecting pin status; “Unpin” at the end of the row unpins only, without removing the color
- Pinned rows display a color dot at the leading edge when idle; when busy / pending / unread-complete, the same status indicator as the host is shown; built-in session rows also show a same-color dot to the left of the timestamp
- Colors are stored in
~/.dsh/pin-top/labels.json, read and written viaGET/POST /pin-top/labelson the host side, authenticated through the host connection
Locate, Collapse & Expand¶
- ◎ Locate: Scrolls to the current session; if blocked by a collapsed group, it only expands its own group chain—no selection, no opening
- ⤓⤒ Collapse All / ⤒⤓ Expand All: Directly toggles the host’s own group rows; expansion state is fully consistent with the host’s persistence
The three button icons are rendered by code coordinates and follow the theme’s foreground color.
Installation & Enablement¶
# Web
dsh plugin --profile web add github:MingGH/dsh-pin-top#v2.2.0
# Desktop (macOS; on Windows use $env:LOCALAPPDATA\...\resources\runtime\cli\bin\dsh.cmd instead)
"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" \
plugin --profile desktop add github:MingGH/dsh-pin-top#v2.2.0
Or go to the “Plugins” page → “Add Plugin” and paste github:MingGH/dsh-pin-top#v2.2.0. After restarting, confirm on the “Plugins” page that the dsh-pin-top toggle is on (add only installs the package; the toggle determines whether it loads with the profile).
To update: remove the old version, then add the new version number. To uninstall: remove dsh-pin-top. For local debugging, use add file:<repo-path>, or use plugin_manager install_bundle (target = repo root directory).
Typical Usage¶
- After installing and enabling the plugin, a pinned section appears at the top of the sidebar.
- Right-click any session row → “Label Color ▸” to pick a color. The row background and dot change accordingly, and the session is pinned simultaneously.
- Click a session row in the pinned section to open the conversation directly.
- Use the three title bar buttons: click “Locate” to scroll to the current session; “Collapse All” or “Expand All” to control the workspace group expansion state.
Use Cases & Notes¶
Ideal for developers who frequently manage multiple sessions and rely on color labels for differentiation. The plugin runs with the current DSH process permissions; review the source code and license before installing. One color per session, stored locally with no cross-machine sync. The pinned section shows at most maxVisible + 2 rows (default 6); overflow collapses into “N more pinned…”. In narrow sidebar mode, the section header and control row are hidden, leaving only the icon for pinned rows.
In Summary¶
dsh-pin-top simplifies sidebar session management through a dedicated pinned section, color labels, and workspace navigation. Version 2.2.0, MIT licensed.
- Directory page: https://www.skillhub.cn/plugins/MingGH/dsh-pin-top
- GitHub: https://github.com/MingGH/dsh-pin-top