dsh-workspace-tools
fengguanghuai/dsh-workspace-tools
Modular sidebar & pin enhancement suite (global pinned sessions and workspaces, drag reorder, inline search, header quick actions, 7-color labels, recency sort, auto-fold history) plus workspace_manage and session_title agent tools.
설치
dsh plugin --profile web add github:fengguanghuai/dsh-workspace-toolsREADME
dsh-workspace-tools
A DeepSeek Harness (DSH) Host + Web UI plugin bundle that combines a toggleable left-sidebar organization & global pinning suite with two agent tools (workspace_manage and session_title).
集成了可独立开关的左侧栏置顶与工作区整理增强套件,以及让 Agent 通过自然语言管理工作区与会话标题的 workspace_manage、session_title 两个工具。
Preview / 界面预览
| Global Pinned & Agent Tools | Modular Settings Modal | Inline Search & 7-Color Labels |
|---|---|---|
![]() | ![]() | ![]() |
Sidebar & Pin Enhancements / 左侧栏增强(均可独立开关)
Click the sliders icon on the Pinned (or Workspaces) header to open the settings modal and toggle any feature independently:
- Global Pinned Section / 顶部跨工作区置顶汇总区 — Aggregates native DSH pinned sessions (
pinnedSessionIds) above Workspaces with source workspace pills, hover unpin, and optional deduplication (hides pinned sessions in the workspace list below by default). - Pinned Workspaces & Inline Expand / 工作区置顶与就地展开 — Right-click any workspace to pin it to the top section and expand its sessions inline.
- Workspaces Header Quick Actions / 工作区标题栏快捷按钮 — Adds Locate current session, Collapse all, and Expand all buttons directly to the Workspaces header.
- Status Highlights / 运行中、未读与待处理状态高亮 — Syncs live Host status indicators: blue pulsing (running), amber (waiting for approval/answer), and green (completed unread).
- Inline Search in Pinned Section / 置顶区就地搜索 — Filter pinned sessions and workspaces by title or workspace name (
Escto close). - macOS-style 7-Color Labels / macOS 风格 7 色标签 — Right-click any session to assign one of 7 soft row tints (synced across both the Pinned section and native workspace list).
- Workspace Recency Sort & Auto-Fold History / 工作区按最近活跃排序 + 超期历史自动折叠 — Floats recently active workspaces to the top via non-invasive CSS flex order, and folds idle sessions older than N days (
1 / 3 / 7 / 14 / 30d, keeping pinned/active/running/unread visible). - Drag-to-Reorder Pinned Sessions / 置顶行拖拽排序 — Drag pinned session rows in the top section to customize their order.
Non-invasive by design: reuses DSH's native
sidebar.workspacesbrowser, native pinning, and native right-click context menu API instead of replacing the built-in sidebar.
Agent Tools Included / 包含 Agent 工具
1. workspace_manage
Manages sidebar workspaces via the DSH Host workspaceRegistry service:
| Action | Parameters | Behavior |
|---|---|---|
list | — | Lists all registered workspaces (id, title, path, sessionCount) in current sidebar order |
create | path, optional title | Registers an existing absolute directory path as a sidebar workspace |
rename | workspaceId, title | Updates the display title of a registered workspace |
reorder | workspaceId, optional beforeWorkspaceId | Moves a workspace before beforeWorkspaceId (or to the end when omitted) |
delete | workspaceId | Unregisters a workspace from the sidebar (keeps disk files and session logs intact) |
2. session_title
Reads, renames, or refreshes a live session's title via the DSH Host sessionTitle and sessions services:
| Mode | Parameters | Behavior |
|---|---|---|
| Read | (none) | Returns the current title and source of the target session |
| Rename | title | Sets and pins a new title immediately (protected from automatic overwrites) |
| Refresh | refresh: true | Regenerates the title using the configured title provider |
Pass optional sessionId to target another live session; omit it to act on the current session.
Installation / 安装方式
# From npm
dsh plugin --profile web add @fengguanghuai/dsh-workspace-tools
# Or from GitHub
dsh plugin --profile web add github:fengguanghuai/dsh-workspace-tools
Or in DSH Desktop: Plugins → Add plugin → enter @fengguanghuai/dsh-workspace-tools (or github:fengguanghuai/dsh-workspace-tools) → Install and enable.
Compatibility & Limitations / 兼容性与说明
- Requires DeepSeek Harness
>=0.2.0(0.2.2-rc.5verified). - Zero external runtime dependencies; no build step required.
- Preferences, pinned workspaces, custom pin order, and color labels are persisted locally in
localStorage(dsh-workspace-tools:prefs:v1). - Disabling the bundle cleanly removes all sidebar UI enhancements, context menu entries, and agent tools.


