Harness(DSH)上传体验优化插件
re-ITRT/dsh-file-fix · 技能
DeepSeek Harness(DSH)上传体验优化插件:统一文件导入体系——任何后缀的文件都能
★ 2GitHub 星标
0分支
2026-08-25最近更新
TypeScript开发语言
MIT许可证
主要功能
- 任何文件 drop / 粘贴 / 选择 → 字节上传(filefix/persistFile)→ host 存入内容寻址附件库 /.dsh/attachments/filefix/(sha256 去重,manifest.jsonl 索引)——与工作区完全解耦
- 两层横向列表(与 DSH 同一审美)
- 发送时(agent/pre-step)注入文件清单消息(role=user + plugin 来源 + notice 表单: UI 只显示「 附件 N 个文件」一行摘要,模型读到完整清单与 attachment_id)
- 模型侧工具
- read_attachment按 attachment_id 读取内容
使用条件
- dsh spill-policy 阈值 50 KB纯文本工具结果超过即替换为「头尾预览 + spill 路径」, 且 spill 定位是 Windows 路径(agent 的 bash 为 Linux 语义读不了)——插件已通过 48 KB 默认段 + 工作区镜像规避
- 工具集无 shell 执行能力时 agent 无法解压/运行文件(环境问题,非插件)
安装命令
dsh plugin --profile web add github:re-ITRT/dsh-file-fix