返回目录
模型与 MCP 插件

dsh-workspace-folders

Larrtroffen/dsh-workspace-folders

Native-feeling sidebar folders for DeepSeek Harness: display-only Workspace folders, durable per-Workspace Session folders, and per-row icons.

Stars
1
Forks
0
Issues
0
更新
7 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:Larrtroffen/dsh-workspace-folders

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-workspace-folders

Native-feeling folder organization for the DeepSeek Harness (DSH) web sidebar.

DSH's left sidebar lists every Workspace as a flat section. This plugin adds the missing organizational layer — user-created folders for Workspaces, nested Session folders inside each Workspace, and per-row icons — while keeping the shipped sidebar interactions (drag, rename, pin, archive, search, view options) intact.

The folder layer is display-only: it never renames a Workspace or a Session, never moves a Session between Workspaces, and never touches a directory on disk. It only rearranges the sidebar. Session folders are durable (dsh-session-keeper's host-side storage).

dsh-workspace-folders

Features

Workspace folders (display-only)

  • Create, rename, delete, collapse and re-order folders from the sidebar itself.
  • File a Workspace by dragging its row anywhere onto a folder block (the header row or its expanded body), or through the row's … → Move to folder… menu.
  • Clean up a Workspace in one step with … → Archive all sessions…: it archives every idle Session there (running Sessions are listed as skipped, so nothing in flight is stopped) and never touches the Session you have open.
  • Every folder row states how many Workspaces it holds (nested folders included), collapsed or expanded.
  • Drop a folder on the middle of another folder to nest it; drop it on the top/bottom edge to re-order siblings. Drag a Workspace onto Unfiled to take it out of a folder.
  • Dropping a Workspace inside the folder it already belongs to re-orders it there; anywhere else files it into that folder.
  • Deleting a folder only deletes the grouping: subfolders move up, member Workspaces return to Unfiled. No Workspace, Session or file is removed.
  • With no folders, the list renders exactly like the shipped browser.
  • Rows are deliberately compact (26px Workspace/Session rows, 24px folder rows) so the same sidebar height shows roughly a fifth more projects and sessions.

Session folders (per Workspace, durable)

Every Workspace keeps its own nested category tree: drag Sessions in, create a Session inside a category, collapse/rename, pin, archive with the three-state filter, and a recoverable delete bin. Data lives in the Host storage domain (survives reloads, cache clears and restarts).

Moving a Session to another Workspace

Drag a Session row from the sidebar tree onto another Workspace's header. The row must know which Workspace it sits in, so this works in the grouped and category views and not on cross-Workspace search results.

A Session's Workspace is fixed by the cwd in its append-only log header, and the registry refuses to account a Session whose cwd differs from the Workspace path, so a metadata edit is not possible. The move is therefore a copy and handover: the plugin writes a new Session into the target directory seeded with the old one's events, accounts it to the target Workspace, and hands the old Session to the recycle bin (undoable there). The new Session keeps the title, history, preset and model route, but has a fresh session id. The move is refused, with a one-line notice, while the Session is running or ended mid-turn.

It travels over the plugin's normal Typert Remote face (moveSession), like every other Host operation, so it inherits the same connection, access checks and error path.

Global session management page

The sidebar's global panel list — the row that already holds Plugins and Automation — gets a third entry, Session manager. It opens a full-width page in the main column, on an Overview tab:

  • Four figures: Sessions (running / archived), generated tokens (with input and cache-hit rate), Sessions active in the last 7 days (against the week before), and the latest activity.
  • Weekly review strip: what moved in the last seven days (projects, sessions, generated tokens), an eight-week momentum strip, and Copy summary — a Markdown recap of the same figures plus the per-session distribution, the busiest project, idle projects and the weekly trend, ready to paste into a note or a weekly log.
  • Project timeline (the Gantt): a lane per project — the directory a Session ran in — spanning its start to its last activity, with one mark per day of Session activity inside the lane. Denser marks mean more Sessions moved that day, and a running Session lights its mark. Click a lane to open that project's Sessions.
  • Project ranking: work bar (generated + uncached input tokens), a 14-day human-activity sparkline, active-day count and recency; clicking a row filters the Sessions tab to it. Below it: the per-session distribution (median, and how much of the generated volume the busiest 10% of sessions hold) and a Not touched lately list — projects idle for two weeks, ranked by the work already sunk into them.
  • Most expensive Sessions: the top eight by work tokens; clicking one opens it.

Every figure is folded from data the list already carries — the Host's durable tokenUsage projection, the last-human-prompt time in sessionListMetadata, and each Workspace's registry creation time — so the overview adds no log read, no query and no subscription of its own (measured: ~1 ms for 2,300 Sessions across 70 Workspaces).

A shared filter bar sits above both content tabs and drives the charts and the list from one predicate, so a filtered chart and a filtered list can never disagree:

  • Search matches a Session title or its Workspace name.
  • Archive state: the sidebar's three-state archive view (hide / show / only archived), shared rather than a second filter: changing it here re-renders the sidebar tree, and changing it in the sidebar's view menu updates this page. The default is the sidebar's ("hide archived"), so the page no longer mixes archived rows into a history the sidebar is hiding. Sidebar search follows the same state: "only archived" finds archived matches and nothing else.
  • Projects: multi-select over the directories Sessions ran in — picking one checks it and leaves the menu open; "All projects" clears the selection.
  • Time range: all / last 7 / 30 / 90 days, measured on each Session's activity instant.
  • Clear filters appears as soon as search, project or time range narrows the page; archive visibility is a view option, so clearing filters never flips the sidebar's archive section back on. The Sessions tab badge counts what the filter shows, and the timeline window follows the time range.

The Sessions tab is the per-Session surface:

  • Every Session in one list, grouped by the directory it actually ran in, newest project first; pinned Sessions lead their group. Subagent Sessions and blank New Session placeholders stay out.
  • Project identity is the directory, not the sidebar Workspace: pruning a Workspace to keep the sidebar short does not scatter its Sessions into "ungrouped". A live Workspace still supplies the nicer title and its creation time; without one the folder's own name is used.
  • Per-row verbs: open, rename, pin / unpin, archive / unarchive, delete. Deleting keeps the sidebar's measure-then-delete confirmation — it scans what would move first and lets you choose record-only or record + the files the Session wrote — and offers Undo right where it happened.
  • A Recycle bin tab lists deleted batches, shows any batch's stored transcript, and provides undo / sweep / permanent erase. The plugin's diagnostic log folds away underneath it.

Sidebar chrome

The fork replaces three presentational seats of the shipped sidebar so it reads as navigation, not product chrome:

  • The brand row (official mark + product name) is removed outright: the emptied row is collapsed with a scoped :has() rule, so the sidebar starts at the panel list instead of leaving a blank strip. The 52px top strip with the collapse toggle stays (it also keeps the window drag region).
  • The account seat at the foot (avatar, name, its menu) is hidden — the sidebar ends with the Workspace list.
  • Settings moves into the panel list's More menu at the top (a separate row above the plugin rows), opening the same settings panel. The dialog, its sections and the ⌘, shortcut all keep working; hiding the foot trigger only removes the second entry point.

All three are pure slot replacements: no state is copied, and unregistering the plugin restores the shipped chrome exactly.

Icons

  • Every Workspace row shows a quiet default dot; clicking it opens the icon picker.
  • 40 icons from the host's own icon set plus 48 common emoji; "Reset to default" clears the icon.
  • Display folders can carry their own icon as well.
  • No new dependency, no network request, no image decoding. The catalog renders only while the picker is open; an idle sidebar costs one map lookup per row.

Kept from the shipped browser

Search, grouping modes (Workspace / Workspace tree / flat), manual and recency ordering, pinned Sessions, archive filtering, Workspace and Session row menus.

Requirements

  • DSH >= 0.2.1-rc.1 < 0.3.0 (built and tested on 0.2.1-rc.5, desktop and web profile).
  • Node.js >= 24.9 is only needed to build from source; the published bundle ships prebuilt lib/.

Install

From npm (once published):

dsh plugin --profile web add dsh-workspace-folders

From GitHub:

dsh plugin --profile web add github:Larrtroffen/dsh-workspace-folders

Then refresh the web UI (or restart DSH Desktop). The plugin appears as dsh-workspace-folders in the plugin manager; disable or remove it to restore the shipped browser.

How to use

Action How
New top-level folder View-options menu (sliders icon) → New folder, or the + New folder row at the end of the list
New subfolder Folder row … → New subfolder
Rename Double-click the folder name, or … → Rename
File a Workspace Drag the Workspace row onto a folder; or Workspace … → Move to folder…
Unfile Drag the Workspace onto Unfiled; or … → Move to folder… → Unfiled
Nest / re-order folders Drag a folder to another folder's middle (nest) or top/bottom edge (re-order); or … → Move to…
Collapse / expand Click the folder row; the row shows its Workspace count (including nested folders) in both states
Delete a folder Folder … → Delete folder (grouping only)
Set an icon Click the row's leading dot/icon, or … → Set icon…
Open the session manager Sidebar panel list → Session manager (beside Plugins / Automation)
Filter the session manager Its search box, plus the status and Workspace menus in the toolbar
Manage one Session there Hover the row for pin / archive / rename / delete; click the title to open it
Recover a deleted Session Session manager → Recycle bin → Undo latest batch

Session folders keep the interactions from dsh-session-keeper: drag a Session onto a category, … → Move to category…, create a Session inside a category, pin/archive/delete with undo.

Data and privacy

Data Location
Workspace folders, folder assignments, expansion, icons (this plugin's display layer) Browser localStorage under dsh.session-categories.view.v2
Session folders / assignments / recycle bin DSH Host storage domain session_categories (<DSH_HOME>/storages/)

Nothing is uploaded anywhere. The display layer is intentionally browser-local: clearing the site's storage resets the Workspace folder layout (Session folders are unaffected).

Compatibility

  • The plugin replaces the sidebar's sidebar.workspaces region, so it cannot run together with another plugin that replaces the same region (e.g. dsh-better-workspace, dsh-workspace-categories). Remove one of them.

  • With dsh-claude-style installed, its sidebar patches fight the replacement browser. Set these in that plugin's config for the best result:

    workspaceView: false    # claude-style's Active/Archived header switch; this plugin's view menu
                            # already provides the same three-state archive filter
    searchStyle: icon       # keeps the search affordance in the sidebar header
  • Other sidebar plugins that only decorate rows through slots, and themes that only style the frame, keep working.

Build from source

npm install --legacy-peer-deps
npm run build
node scripts/inline-css.mjs
node scripts/verify-build.cjs
node scripts/verify-typert-manifest.mjs

lib/ is committed so consumers never need a build step. The Host half is prebuilt Node ESM; tsdown.host.config.ts rebuilds it when the Host source changes.

Known limitations

  • Workspace folders only appear in the grouped views (By Workspace / Workspace tree); the flat list and search results stay flat.
  • The session manager's search matches Session titles and Workspace names; the Host's message-content search remains the sidebar's search box.
  • The Overview's time figures are activity, not measured work hours: a Session contributes its last human prompt day (falling back to its last update), and tokens are the provider's cumulative usage, cache reads included in their own bucket.
  • The timeline's lanes are project spans (first known contact → last activity; a live Workspace's creation time counts as the first contact). Per-Session start times are not on the Session list wire, so a Session is a day mark inside its lane rather than a bar.
  • A project's identity is its directory path: sessions that ran in the same folder group together even if the folder was registered as a Workspace at one time and deleted later.
  • The display folder layer (and icons) are browser-local, not Host-persisted.
  • Preview DSH releases do not promise plugin API stability; upgrade the plugin together with DSH.

License and credits

MIT. This project is a fork of dsh-session-keeper by WSNMM3 (MIT), which itself derives from ht719/dsh-session-categories (MIT). The display-only Workspace folder layer, folder rows, drag-and-drop, icon picker and session-row indentation were added by this fork. See LICENSE and FORK-NOTES.md.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。