Introduction¶
The default “New Session” in the DeepSeek Harness (DSH) desktop app uses a fixed working directory, so all conversation files end up jumbled together. Write scripts, look up docs, tweak configs — files pile up faster and faster. Trying to find the output from a particular session? You’re stuck guessing by timestamp. Manually creating a folder, adding a workspace, and picking a directory means multiple clicks each time — most people just skip it altogether. The result: sessions keep multiplying, but the output from each one is impossible to track down.
lyuunz/dsh-auto-workspace is a DSH desktop plugin that, the moment you click “New Session,” automatically creates a timestamp-named directory and registers it as a workspace, with the session’s cwd pointed directly at it. It also reorganizes the sidebar into four sections: Recent / Pinned / Quick Sessions / Workspaces.
Automatic Time-Based Workspaces¶
The instant you click “New Session,” the plugin creates a timestamp-named directory under the workspaces subdirectory of the DSH data directory — for example, 2026-11-23_02-19-56. It’s automatically registered as a workspace, and the session’s current working directory (cwd) points to it. The Hero sidebar displays this path right away, so you can start typing immediately. No manual directory selection, no need to send a probe message first.
Automatic workspaces are identified by path prefix — anything under <DSH data dir>\workspaces\. Workspaces you manually add to this directory are also treated as “Quick Sessions.” Sessions that no workspace claims and whose paths fall outside the auto root end up in the “Ungrouped” bucket at the bottom of the Workspaces section, so nothing gets lost.
Four-Section Sidebar¶
The sidebar is reorganized into four sections, each with collapse and “See more” functionality. Sections are purely a view layer — they don’t move your sessions around. The same session can appear in Recent while still remaining in its original group.
| Section | Contents | Visibility |
|---|---|---|
| Recent | Last 5 conversations ∪ all in-progress sessions (pending approval / running / finished but unread) | Always visible |
| Pinned | Sessions you’ve manually pinned | Appears only when there are pinned sessions; hidden otherwise |
| Quick Sessions | Sessions opened via “New Session” (cwd is a timestamp directory), flat list in reverse chronological order | Appears after any quick session has been created |
| Workspaces | Real folders you’ve added, grouped by folder | Appears after any workspace has been added |
Feature Details¶
- Pinning: Dedicated section + inline pin icon per row; takes up no space when nothing is pinned
- Search: Magnifying glass at the bottom expands into a full-width search bar — searches titles, directories, and full text
- Session menu: Pin / Open workspace / Rename / Fork / Copy session ID / Archive
- Double-click rename: Double-click a session title to rename it, consistent with the official behavior
- Open workspace: Locates the directory in File Explorer
- Survives restarts: Restarting DSH with an empty new session restores it automatically; a startup self-healing pass re-adds members that may have been dropped due to indexing race conditions
- Archive management: Archived sessions are hidden by default, with a toggle at the bottom; clicking an archived row shows a tooltip instead of opening it
Relative time granularity: within 1 minute → “just now,” within 1 hour → “N minutes ago,” within 24 hours → “N hours ago,” within 30 days → “N days ago,” beyond that → calendar date.
Installation¶
No Git, no npm account required. Paste this single line into PowerShell:
dsh plugin --profile desktop add https://github.com/Lyuunz/dsh-auto-workspace/releases/download/v1.0.0/dsh-auto-workspace-1.0.0.tgz
After installation, fully quit and restart DSH — the plugin will appear under “Installed” on the plugins page.
The dsh CLI lives in resources\runtime\cli\bin\ under your DSH install directory; if it’s not on your PATH, use the full path. Use --profile desktop for the desktop edition and --profile web for the web edition. This command also registers the plugin in dsh.profile.bundles, so no manual config changes are needed.
If you have Git installed, you can also use the repository reference directly:
dsh plugin --profile desktop add github:Lyuunz/dsh-auto-workspace
Uninstallation¶
dsh plugin --profile desktop remove dsh-auto-workspace
Or simply disable/uninstall from the plugins page. Once disabled, the official sidebar reappears immediately — this plugin overlays the official sidebar rather than modifying it.
Typical Usage¶
| What you want to do | How |
|---|---|
| Create an isolated workspace | Click “New Session” — a timestamp directory is created automatically |
| Bookmark a session | “···” on the right side of the session row → Pin |
| Find a session’s files | “···” → Open workspace |
| Search past sessions | Bottom 🔍 → type a keyword |
| View archived sessions | Bottom 📦 |
| Rename a session | Double-click the session title |
Compatibility¶
- DSH Desktop 0.2.2-rc.5 (aligned baseline; the earlier 0.2.1 series is untested)
- Windows (current
dsh-desktopbuild targets win-x64)
Development¶
See docs/INTERNALS.md for source structure and implementation details. The repository includes a test suite; check-official-contract.mjs reads the installed app.asar directly and asserts that the slots / fields / CSS specs the plugin depends on are still present — run it first after upgrading DSH.
Use Cases¶
Ideal for developers who need file isolation per session and want to distinguish conversation outputs by time. The plugin runs with the privileges of the current DSH process — review the source code and license before installing.
Closing¶
The plugin centers on an independent workspace per session, with a four-section sidebar providing four views: Recent, Pinned, Quick Sessions, and Workspaces. Directory listing: https://www.skillhub.cn/plugins/Lyuunz/dsh-auto-workspace; GitHub: https://github.com/Lyuunz/dsh-auto-workspace.