rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Larrtroffen/dsh-workspace-folders
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
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).
![]()
… → Move to folder… menu.… → 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 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).
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.
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:
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:
The Sessions tab is the per-Session surface:
The fork replaces three presentational seats of the shipped sidebar so it reads as navigation, not product chrome:
: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).All three are pure slot replacements: no state is copied, and unregistering the plugin restores the shipped chrome exactly.
Search, grouping modes (Workspace / Workspace tree / flat), manual and recency ordering, pinned Sessions, archive filtering, Workspace and Session row menus.
lib/.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.
| 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 | 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).
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.
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.
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
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。