DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-workspace-folders

j

dsh-workspace-folders

Manifest valid

Attach extra folders to the current workspace: writable for the file tools and the shell, listed to the agent, manageable from the composer.

UI (client)hasBundlePatch

dsh-workspace-folders

给侧栏里的某个工作区附加多个文件夹:附加后它们和该工作区一样可读可写(read / write / edit / bash 都认), 模型能在运行时上下文里看到它们。入口在工作区行的右键菜单,不需要打开任何会话;附加关系只属于这个工作区, 别的项目看不到也写不了。

右键菜单里的入口管理该工作区的附加文件夹
工作区右键菜单附加文件夹弹窗

能力

  • 工作区级入口:工作区行「⋯」菜单 →「附加文件夹…」→ 弹窗里增删。菜单项由官方菜单注册表 (ctx.contextMenus.register({ target: 'workspace' }))提供,不改动外壳;弹窗挂在 shell.overlay。
  • 只认侧栏工作区:只有 ctx.workspaceRegistry 里注册过的工作区可以附加;删除工作区后它的附加目录立即不再授予可写权限, 残留记录在下次增删或插件加载时清掉(归档工作区只归档会话,不影响附件)。
  • 按工作区生效:附件挂在 ctx.sandboxPolicy.resolve({ session }) 上,按会话记录的 header.cwd(工作区根)取该工作区自己的那份列表。 文件沙箱(dsh-fs-sandbox)和终端沙箱(dsh-bash-sandbox)都从这同一个 resolve() 读白名单,所以两边不会各写各的; 换到另一个工作区的会话拿不到这些目录。目录被删掉时会自动跳过授权,不会让后续每次受限调用都报错。
  • 模型可见:一条 workspace:folders 运行时上下文(只列当前工作区的),外加 workspace_folders 工具(list / add / remove)。 模型操作的就是“当前会话所属工作区”的那份数据;会话不在任何侧栏工作区里时会明确拒绝。
  • 持久化:存在 $DSH_HOME/workspace-folders.json(默认 ~/.dsh/workspace-folders.json),按工作区根分桶,跨会话、跨重启保留。

安装

从 GitHub 安装(推荐):

dsh plugin add github:jkm6221/dsh-workspace-folders

或者把本目录作为 bundle 安装:

plugin_manager action=install_bundle target=<本仓库克隆后的绝对路径>

安装后宿主半和客户端半都会热加载;页面若没变化刷新一次 Web GUI。

用法

你点击:侧栏工作区行「⋯」→「附加文件夹…」→「添加文件夹」
你说:把 ~/work/shared-lib 加进当前工作区
模型:workspace_folders { action: "add", path: "~/work/shared-lib" }

移除同理:弹窗列表里点「移除」。

注意

  • 只对当前工作区生效:附加关系按工作区根(会话的 header.cwd)分桶。同一个工作区里的多个会话共享,切到别的项目就看不到、 也写不进去;把会话 cd 到别处不改变这个归属。
  • 状态格式:当前是 version: 2(按工作区分桶)。0.1.0 的全局列表(version: 1)不再读取,升级后请重新附加一次。
  • 只接受已存在的目录;相对路径按会话当前目录解析,~ 会展开。
  • 客户端走的是本机回环上的 POST /workspace-folders/*,要求 x-dsh-plugin: workspace-folders 头,跨站页面无法 直接构造这种请求;请求里带工作区路径,宿主会用 workspace 注册表校验它。

文件

文件作用
lib/index.js宿主半:存储、沙箱授权、工具、运行时上下文、回环路由
lib/client.js客户端半:工作区右键菜单项 + 文件夹弹窗(shell.overlay)
cordis.patch.ymlbundle 插入的插件行
locale/*.json插件管理器里的标题与说明
icon.svg插件图标

Comments

Loading…

Similar plugins

dsh-multi-folder

by HelloQingTao

副工作目录:在输入框「+」菜单里管理,@ 可直接引用其中文件,Agent 获得同等读写与执行权限 | Secondary working directories for DSH — manage them from the composer "+" menu, reference their files with @, and give the agent equal write/exec rig

Manifest valid

★ 0

MIT

JavaScript

Oct 2, 2026

dsh plugin --profile web add @zfgcta/dsh-multi-folder

Multi-workspace sandbox: grants file-write access to every registered workspace automatically — add a workspace, write to it immediately, no config or escalation needed.

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add dsh-multi-workspace

by weibaohui

dsh 插件 · 目录共享:任意可配置目录经 HTTP 在线浏览/上传/下载 + 对话框 @ 文件给 agent 处理

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 29, 2026

dsh plugin --profile web add @weibaohui/dsh-file-share

by navid-kianfar

Options plate on the DeepSeek Harness composer's + button — pick files and folders from the project or anywhere on the machine, upload from your device, or run a slash command — with inline path chips

Tools & CapabilitiesSessions & MessagesManifest valid

★ 0

MIT

TypeScript

Sep 15, 2026

dsh plugin --profile web add @achasoft/dsh-add-assets

by 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.

Security & AuditTools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 26

↓ 1.2k/wk

MIT

TypeScript

Nov 17, 2026

dsh plugin --profile web add @dsh-electron/dsh-plugin-multi-root-workspace

by whyzsm

Attach files/folders in the DSH composer: clipboard paste, native picker, @-mention path search, paged Markdown conversion

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-clipfile