dsh-multi-dir-workspace
IdentifiedAttaches more than one directory to a workspace: a chip in the global header adds, switches and removes directories, and every attached directory is passed to the model as prompt context and granted s
dsh-multi-dir-workspace
A DSH plugin that lets a workspace work with multiple directories.
Why
DSH core workspaces are strictly single-directory (Workspace.path). A plugin cannot
patch the core (it lives in app.asar), so this plugin layers multi-directory support
on top of the public extension points:
- An attached-directories list, persisted at
$DSH_HOME/multi-dir-workspace.json. - A prompt context telling the model every attached directory (so it can use absolute paths to read them).
- Sandbox write grants registered per live session via
sandboxPolicy.registerWritableRoot(reads are already permitted everywhere). - A
workspace_directoriestool (list/add/remove/cd) and an HTTP route for the UI. - One workspace chip in the global header, immediately before the session title
(
conversation.header.leading). The chip shows the current directory name and opens a popover anchored to it (above by default, flipping below when there is no room, with a caret pointing at the trigger) to add / switch / remove directories with the native picker.
Usage
- The chip sits in the header next to the session title and shows the current directory name, so it is visible in every session and on the empty New Session screen too.
- Click it to open the popover:
- + 添加目录 / Add directory opens the native directory picker and attaches the result.
- 切换 / Use switches the session's working directory to that directory.
- 移除 / Remove detaches it.
- Or ask the model: "add D:\shared\libs to the workspace" — it calls the
workspace_directoriestool. - The built-in
working_directorytool also works forcd.
Notes / limitations
- The chip is registered in exactly one place, a root-scope slot, so it is rendered once per page and does not depend on a session existing.
- Attached directories are global (one list), not per-workspace, in v1.
- Write grants are runtime-only and re-registered on session start; on Windows only DSH's own file tools honor the extra grants (child process permissions are unchanged).
- Paths are canonicalized with
path.resolve; symlink roots are rejected by the sandbox policy for writes but remain readable.
Comments
Loading…
Similar plugins
Multi-workspace manager: bind a docs anchor plus ordered code-project repositories into one session, injecting their absolute paths, a recursive file index, a server/client endpoint index and optional
★ 1
NOASSERTION
TypeScript
dsh plugin --profile web add dsh-workspace-combinerby jkm6221
Attach extra folders to the current workspace: writable for the file tools and the shell, listed to the agent, manageable from the composer.
★ 0
MIT
JavaScript
Nov 14, 2026
dsh plugin --profile web add dsh-workspace-foldersMulti-workspace sandbox: grants file-write access to every registered workspace automatically — add a workspace, write to it immediately, no config or escalation needed.
★ 0
dsh plugin --profile web add dsh-multi-workspaceby cherrchen
多文件夹 workspace:让 DSH(DeepSeek Harness)的 Agent 不只能读写主目录,还能同时读写你添加的其他文件夹。Multi-folder workspace for DeepSeek Harness: let the agent read and write several folders at once, not just the primary one.
★ 28
↓ 1.2k/wk
MIT
TypeScript
Nov 22, 2026
dsh plugin --profile web add @dsh-electron/dsh-plugin-multi-root-workspaceby milu7
Starts the DSH desktop New Workspace folder picker in a directory you configure (Windows only) and adds a settings page for it, falling back to the stock picker when the saved folder is missing.
★ 1
MIT
JavaScript
Oct 29, 2026
dsh plugin --profile web add dsh-directory-pluginby Charlotteyi5
Drive-letter chips and a remembered start directory for the DeepSeek Harness "add workspace" picker · 给 DSH 的「添加工作区」加上盘符一键直达与上次目录记忆
★ 0
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add dsh-workspace-drive-picker