deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:3911ee/dsh-workspace-explorer
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
为 DeepSeek Harness 打造的「工作区文件」插件,在侧边栏底部一键开启 VS Code 风格的双栏面板:左侧是项目全目录文件树,右侧是支持多标签页的代码编辑器。它不仅让你像操作本地 IDE 一样浏览、打开和编辑文件,更能让 AI Agent 实时“看见”项目结构并直接修改代码——从查看源码到批量重构,Agent 都能在面板中同步操作,实现真正的结对编程。无论是快速定位文件、预览 Markdown 或图片,还是与对话中的 @文件 引用联动,这个插件都将 AI 助手从“聊天机器人”升级为“能动手写代码的智能伙伴”,让每一次指令都落地为可执行的代码变动。
| 项 | 要求 |
|---|---|
| DeepSeek Harness | 0.1.0-rc.6 及以上(实测版本 0.1.0-rc.6) |
| Profile 类型 | 必须是带 Web 界面的 profile(标准 web profile) |
| Node.js | DSH 自带的运行环境即可,无额外要求 |
| pnpm | 安装插件时需要(dsh plugin 的官方机制) |
| 操作系统 | Windows 实测通过;macOS/Linux 理论支持(代码已做跨平台路径处理,未实测) |
# 当前唯一方式:直接从 GitHub 安装(lib/ 已提交,无需构建)
dsh plugin --profile web add github:3911ee/dsh-workspace-explorer
npm 方式在发布后才可用:
dsh plugin --profile web add dsh-workspace-explorer。
一条命令完成:dsh plugin 会自动执行 pnpm 安装,并因插件包声明了
dsh.bundle.patch 自动把它加入 profile 的 bundle 层,无需手改任何配置。
手动安装方式:
# 1) 把插件源码复制进 web profile 的 node_modules
# 2) 编辑.dsh\profiles\web\package.json:
# dependencies 里加一行
# "dsh-workspace-explorer": "file:./node_modules/dsh-workspace-explorer"
# dsh.profile.bundles 数组里加一项
# "dsh-workspace-explorer"
dsh web 的终端按 Ctrl+C,重新执行 dsh web# 升级:重新 add 或 pnpm update(由 dsh plugin 转交)
dsh plugin --profile web add github:3911ee/dsh-workspace-explorer
# 卸载:从 profile 依赖中移除后重启
dsh plugin --profile web remove dsh-workspace-explorer
卸载后重启 dsh web 即完全移除(插件不修改任何 DSH 内置文件,不留残留)。
在 DeepSeek Harness Web GUI 侧边栏底部添加「工作区文件」入口,打开一个 VS Code 资源管理器风格 的双栏面板:左侧浏览全部工作区目录的文件树, 右侧查看和编辑文件。
/workspace-files-api/*)完成,仅由 DSH 进程内的宿主插件提供dsh web 默认仅绑定回环地址 127.0.0.1,此时插件 API 只有本机浏览器可访问,这是推荐且默认的安全配置dsh web 绑定到非回环地址(如 0.0.0.0 或公网),插件 API 将无独立鉴权地与 DSH 一起暴露 —— 这与 DSH 自身的安全模型一致,但属于使用者须自行评估的配置风险;切勿将带本插件的 DSH 直接暴露到公网| 防护 | 实现 |
|---|---|
| 路径校验 | 所有操作要求绝对路径(Windows 要求盘符限定或完整 UNC),拒绝相对路径与空路径 |
| 名称校验 | 新建/重命名仅接受单一路径段,拒绝空名、./.. 与含 /\ 分隔符的名称 |
| 目录列举 | 单层封顶 1000 条目,防止巨型目录拖垮服务 |
| 文件读取 | 默认 256 KiB、硬顶 8 MiB;只读文件头,不会把大文件整体载入内存 |
| 文件写入 | 8 MiB 上限;请求体 64 KiB 上限 |
| 资源释放 | 所有文件句柄 try/finally 关闭;无缓存、无后台任务、无内存累积 |
发现安全问题请通过 GitHub Issues 私密渠道(或邮件)联系维护者,建议附上: 影响版本、复现步骤、危害评估。修复后将通过新版本发布并在 Release Notes 中披露。
CI(.github/workflows/ci.yml):每次推送跑构建校验;推送 v* 标签自动 npm publish。
src/index.js):注册自有 HTTP 前缀 /workspace-files-api(list/read/write/rename/mkdir/newfile),不依赖目录选择器后端组合(native/browse 均可),也不修改 DSH 内置包src/client.js):占用侧边栏底部 sidebar.footer.action 列表槽(多插件共存),通过 ctx.workspaces 读取工作区列表,UI 全部自包含(组件 + 高亮器 + 样式)MIT
A workspace file-explorer plugin for the DeepSeek Harness Web GUI: adds a "Workspace files" button at the sidebar footer that opens a VS Code-style explorer panel — file trees of all registered workspace directories on the left, an editor on the right. Features: lazy file tree with language-colored SVG icons, inline rename, new file/folder, freely resizable editor with line numbers, VS Code Dark+ syntax highlighting, in-window edit & save (Ctrl+S), zh/en UI.
Install: dsh plugin --profile <name> add github:<user>/dsh-workspace-explorer
(npm install becomes available after publishing). The package declares
dsh.bundle.patch, so dsh plugin composes it automatically; the committed
lib/ needs no build step. See the Chinese section above for deployment,
security, and limits.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。