DeepSeek Harness Hub
← 返回列表

WSL 工作区选择器wepar1212/dsh-wsl-workspace

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

在侧边栏挑选 WSL 发行版与目录,直接添加为工作区

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/17 · 已提供中文文档

DeepSeek Harness 的 WSL 工作区选择器捆绑包

综合分
27.7
GitHub 分
27.7
用户评分
★ Stars
1
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add wepar1212/dsh-wsl-workspace
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/16(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
依赖的 DSH / Cordis 模块
@deepseek-ai/cordis@deepseek-ai/dsh-api-remotes@deepseek-ai/dsh-agent@deepseek-ai/dsh-client-locale@deepseek-ai/dsh-client-runtime@deepseek-ai/dsh-client-ui-primitives@deepseek-ai/dsh-client-ui-sidebar@deepseek-ai/dsh-client-ui-slots@deepseek-ai/dsh-client-ui-workspace@deepseek-ai/dsh-client-web-react@deepseek-ai/dsh-invariants@deepseek-ai/dsh-subprocess
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

dsh-wsl-workspace

一个独立的 DeepSeek Harness 树外 bundle。在 Web 工作区侧边栏提供手动 WSL 开关、发行版选择和 Linux 目录浏览,将选中的 WSL 目录直接添加为 DSH 工作区;进入 WSL 工作区后,Agent 的 bash 会自动在对应的 Ubuntu/WSL 目录执行命令。

An independent out-of-tree bundle for DeepSeek Harness. It adds a manual WSL switch, distribution picker, and Linux directory browser to the Web workspace sidebar, then opens the selected WSL directory as a DSH workspace. Agents in that workspace automatically run bash commands inside the selected Ubuntu/WSL directory.

WSL 工作区入口 / WSL workspace entry

WSL 目录选择 / WSL directory picker

功能 / Features

- 开关默认关闭;只有用户手动启用后才访问 WSL。
- 自动发现当前 Windows 用户安装的 WSL 发行版。
- 支持浏览目录或输入 /home/user/project 这类绝对 Linux 路径。
- 使用 Host 返回的 \\wsl.localhost\\... 路径创建标准 DSH 工作区。
- Host、Web Client、Typert Remote 和 bundle patch 全部包含在一个 npm 包中。
- WSL 工作区 Agent 的 bash 自动使用 wsl.exe 进入当前发行版和 Linux 工作目录;普通 Windows 工作区不受影响。
- 不依赖 DSH 的 Win32 PTY 检测;命令桥接直接使用 wsl.exe。
- 不需要在 WSL 内安装 VS Code Server;只需发行版中已有 bash,项目工具(例如 Rust/Node/Python)按需安装。
- 不修改 DSH 的 packages/bundle/web-app、根 tsconfig 或其他随发行文件。

- The switch defaults to off and WSL is accessed only after explicit opt-in.
- Installed WSL distributions are discovered automatically.
- Browse directories or enter an absolute Linux path such as /home/user/project.
- The Host returns an authoritative \\wsl.localhost\\... path for the standard DSH workspace service.
- Host, Web Client, Typert Remote, and bundle patch ship in one npm package.
- Agents in a WSL workspace automatically run bash commands with wsl.exe in the selected distribution and Linux cwd; normal Windows workspaces are unchanged.
- It does not depend on DSH's Win32 PTY inspection; command routing uses wsl.exe directly.
- No VS Code Server is required inside WSL. The distro only needs bash; project toolchains such as Rust, Node.js, or Python are installed as needed.
- No DSH distribution file needs to be edited.

安装 / Install

进入 DSH 源码根目录,执行下面这一条命令即可安装并挂载插件(无需下载插件源码、安装依赖或手动构建):

pnpm dsh plugin --profile web add github:wepar1212/dsh-wsl-workspace

重启 DSH 后,在侧边栏底部点击 WSL 按钮,手动打开开关,选择发行版和目录。

From the DSH source root, run the command above to install and mount the plugin. No plugin checkout, dependency install, or manual build is required. Restart DSH, click the WSL action at the bottom of the sidebar, enable it, and choose a distribution and directory.

卸载 / Uninstall

pnpm dsh plugin --profile web remove dsh-wsl-workspace

开发 / Development

pnpm build
pnpm test
pnpm typecheck

终端权限 / Terminal permissions

启用 WSL 工作区后,Agent 的命令在 WSL Linux 环境中运行。Windows 沙箱不能继续限制已经进入 Linux 的命令,因此这些命令按用户明确选择的 WSL 工作区使用完整 WSL 权限。请只对可信项目启用此功能。
启用 WSL 工作区后,其 Agent 命令会在选定的 WSL Linux 环境中运行。Windows 沙箱无法约束进入 Linux 后的命令,因此这些命令会使用通过选择 WSL 工作区明确授予的完整 WSL 权限。请仅对受信任的项目启用它。

限制 / Limitations

- 仅支持运行在 Windows Host 上且可调用 wsl.exe 的 DSH。
- WSL 命令需要 Windows Host、可用的 wsl.exe、目标发行版和 bash;每次命令都是独立调用,不保留 shell 环境变量或交互状态。
- 只选择目录,不创建、重命名、移动或删除 WSL 文件。
- 每次更新源码后需要重新执行 pnpm build 并重启 DSH。

- 需要 Windows Host 且 wsl.exe 可用。
- WSL 命令需要 Windows Host、wsl.exe、选定的发行版和 bash;每次调用都是隔离的,不会保留交互式 shell 状态或导出的变量。
- 仅选择目录;不执行创建、重命名、移动或删除操作。
- 源码更新后需重新构建并重启 DSH。

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

同作者(wepar1212)的其他插件

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群