Session workspace file manager: adds a "Files" tab to the conversation area to browse the current session workspace directory tree and manage it in place (upload, download, mkdir, rename, delete, search), with files mentionable into the composer for the agent to process.
Install
# from npm (prebuilt)
dsh plugin --profile web add @weibaohui/dsh-file-share
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:weibaohui/dsh-file-share
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
会话工作区文件管理插件:在对话区顶部加一个「文件」tab,点开即可浏览、预览并管理当前会话工作区下的所有文件。
核心功能
- 按会话工作区:文件树绑定到当前对话的工作区目录(
ctx.sessions.get(sessionId).header.cwd),不用配置任何固定目录 - 树形浏览:目录树懒加载、逐层展开,文件大小一眼可见
- 预览 / 查看:点文件名或行内「预览」弹出查看面板——文本/代码直接显示、图片内联渲染;超大文件或二进制类型引导下载或交给 agent
- 上传 / 下载:一键上传本机文件到当前目录(可多选);任意文件可下载
- 文件夹下载 / 多选打包:悬停目录行「下载」整目录打包 zip;勾选多个文件与文件夹(可混选)批量打包,zip 内保留相对目录结构(零依赖内置 ZIP 构建,条目数 / 总大小双上限,符号链接逃逸的条目自动跳过)
- 目录管理:新建文件夹 / 改名 / 删除(目录递归、带确认)/ 刷新 / 名称过滤搜索
- @ 进对话框:文件行点「@」把
@绝对路径注入输入框,agent 直接处理该文件 - 路径边界安全:所有操作锁定在会话工作区内,
../、绝对路径、软链逃逸一律拒绝
安装
dsh plugin --profile web add @weibaohui/dsh-file-share -w
装完重启 dsh web 即生效。
使用
- 打开 Web UI,进入任意一个会话(或新建会话)
- 对话区顶部找到 「文件」 tab(跟在「工艺」旁),点开即见该会话工作区目录树
- 点击文件名可预览内容;悬停文件行可 下载 / @ / 改名 / 删除;工具栏可上传、新建文件夹、搜索过滤
- 上传、新建等操作作用于当前目录——点目录名展开并切换目标目录
- 想让 agent 处理某个文件:点「@」把
@路径注入输入框,回车后 agent 直接读取
提示:文件管理基于会话工作区,需在本实例中打开过的活跃会话;跨实例或未打开的旧会话会提示原因。
联系我 :飞书群
版本兼容性
本插件与 DeepSeek Harness(@deepseek-ai/dsh)的版本对应关系:
| 插件版本 | 适配 dsh 版本 | 备注 |
|---|---|---|
| 0.3.2 | 0.1.7-rc.2 | 当前版本,已在 @deepseek-ai/dsh@0.1.7-rc.2 下验证运行 |
发版约定:每次发布新版本时,请在上表追加一行,记录该插件版本实际验证所用的
@deepseek-ai/dsh版本。package.json的engines.dsh声明最低支持版本;本表记录实际验证版本,二者配合使用。
Links
More in this category
DayuanJiang/next-ai-draw-io#dsh-plugin★ 36802
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
Tencent/WeKnora#dsh-weknora★ 36302
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 7042
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5074
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 1575
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1155
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.