Preface¶
When tracking multiple workspaces in the DSH desktop client, the common practice is to repeatedly click back and forth in the left list: the current session fills the middle column, and switching away and returning often requires waiting for content to reload. It is also hard to glance at the status of running tasks. While using tabs to parallelize multiple pages is a habit in browsers, the native DSH interface lacks an equivalent “one session per tab” entry point.
Below is the community plugin dsh-project-tabs (maintainer miao-ge): it adds a row of browser-style project tabs to the DSH Desktop, utilizing the blank space to the right of the “App / Edit” menu in the native Windows title bar; in non-Windows or browser environments, it degrades to the top of the middle column. One tab corresponds to one session, status is distinguished by dots, order can be dragged, and state is restored on restart, while the main content area retains the official layout.
What is this¶
dsh-project-tabs is a client-side plugin for DeepSeek Harness (DSH), categorized as a client capability extension. It does not alter the original structure of the left workspace list, right dock, input box, etc.; it only adds a tab bar and uses tabs to determine “which session is displayed in the middle column.” The project is hosted on GitHub: miao-ge/dsh-project-tabs; Community directory page: skillhub.cn plugin page. The license is MIT (see package.json in the repository).
Core Features¶
Tabs and Status¶
One tab = one session. The tab text is the workspace (project) title; the status dot on the left indicates the current phase:
| Status Dot | Tab Color | Meaning |
|---|---|---|
| Spinning | Brand Blue background (when selected) | Running |
| Yellow Dot | Yellow background | Awaiting your approval / answer |
| Checkmark | Green background + Bold | Finished, but you haven’t reviewed it yet |
| Gray Dot | Neutral | Idle |
Interaction¶
| Action | Result |
|---|---|
| Click tab | Switch to that session |
| Click × on tab / Middle-click tab | Close this tab (does not touch session, does not touch workspace) |
| Drag tab | Reorder |
| Right-click tab | Close / Close others / Close right / Copy project path |
Click + (right after the last tab) |
Select existing project, or “Select Directory…” to open a new directory → opens in a new tab |
| Right-click left workspace row “Open in new tab” | Requires dsh-sidebar-context-menu |
When clicking a session in the sidebar: if the session already has a tab, it jumps to it; otherwise, it opens in the current tab, preventing infinite tab accumulation; the number usually stays at the same level as active projects.
Switching Experience & Keep-alive¶
In DSH 0.2.0, the main view defaults to retaining only one session; switching away releases local generation, so switching back feels like a cold start. This plugin calls sessions.retain(id, { source: 'projectTabs' }) for each background tab, retaining the history window and tail; running tabs are prioritized, keeping at most MAX_WARM_TABS = 10 alive simultaneously. Scroll position is restored by platform chatScrollPositions via sessionId.
Honest disclosure: This is “re-rendering from hot data,” not keeping the DOM hanging there—React local state will reset (e.g., expanded tool cards and thinking blocks will collapse). The tab list persistence key is localStorage’s dsh.project.tabs.v1, restored upon desktop restart.
Layout Adaptation¶
The plugin detects html[data-windows-titlebar]:
- Present (Windows Desktop): Tabs fit into the ~40px title bar, avoiding native menus and window buttons.
- Absent (macOS Desktop / Browser): 36px tab bar at the top of the middle column, adding
padding-topto the middle column, reverted on unmount.
External API (Optional Integration)¶
Provides client service projectTabs (with window.__DSH_PROJECT_TABS__ as a fallback) for scenarios like sidebar right-click calls:
const tabs = ctx.get('projectTabs') ?? globalThis.__DSH_PROJECT_TABS__;
const sessionId = await tabs.openWorkspaceInTab(workspaceId);
tabs.openSessionInTab(sessionId);
tabs.listTabs(); // [{ id, sessionId }]
This plugin can be used independently without dsh-sidebar-context-menu installed.
Installation & Activation¶
Recommended to use the DSH built-in plugin installer (desktop profile):
dsh plugin --profile desktop add dsh-project-tabs
Alternatively, in the desktop interface: Left sidebar “Plugins” → “Add Plugin” → Enter package name dsh-project-tabs → Install → Activate immediately.
For development from source, clone the repo and run scripts/install.ps1 (default desktop profile; -Profile web|both, -Uninstall, etc. see README). Client-side changes require a hard refresh; host-side changes require restarting the desktop. Runtime environment requires Node >=20 (see engines in package.json).
Typical Usage¶
- After installation and activation, see the tab bar and the
+at the end in the Windows desktop title bar or the top of the middle column. - Click
+to select an existing workspace or new directory, opening the corresponding session in a new tab. - When multitasking, watch the status dots: Yellow dot means pending approval, Spinning means running, Checkmark means finished and unread.
- Drag tabs to fix the order; click × to close a tab to temporarily collapse the interface without deleting the underlying session.
- If dsh-sidebar-context-menu is installed, right-clicking the workspace row and selecting “Open in new tab” is faster.
Switching tabs essentially calls ctx.uiWorkspace.openSession(sessionId), consistent with the official “currently displayed session” model.
Use Cases & Notes¶
Suitable for: DSH desktop users who switch between multiple repos/workspaces simultaneously, want to see the running and approval status of each session at a glance in the title bar, and want to restore tab order after restart.
Limitations (Explained in README):
- The left workspace list is globally shared; the right panel follows the current session.
- Tool card expansion state resets after switching tabs.
- The
+menu lists all workspaces; the list is long when there are many projects (clamped by viewport). - The desktop shell does not expose iframe / multi-window “true multi-page”; the plugin chooses “Official shell + hot data re-rendering” to balance fidelity and memory.
Security & Permissions: The plugin runs under the current DSH process permissions. Before installation, it is recommended to read the source code and the MIT license to confirm it meets your environment policy. The DeepSeek Harness community plugin directory (e.g., skillhub.cn) is an independent ecosystem site, has no official affiliation with DeepSeek / High-Flyer, and is not an official app store.
Conclusion¶
dsh-project-tabs brings browser-style multi-tabs into the DSH desktop title bar (or middle column top bar), manages multi-project with session-level tabs and status dots, and tries to maintain the hot data experience upon switching back without replacing the official session shell. For further details, visit the Community Directory Page and GitHub Repository.