auroralab-art/dsh-file-ref

DeepSeek 工具插件:拖放文件即可插入 @workspace 路径或绝对路径。

Project Overview项目介绍

dsh-file-ref is a native Cordis plugin published by Aurora Lab for the DeepSeek Harness (DSH) web profile, distributed as a .tgz bundle tagged with dsh-plugin and deepseek-harness topics. It is installed with a single CLI invocation against the active profile, namely dsh plugin --profile web add https://github.com/auroralab-art/dsh-file-ref/releases/download/v0.1.0/dsh-file-ref-0.1.0.tgz, after which dsh web must be restarted and the browser hard-refreshed; the package metadata carries a bundle-manifest field consistent with DSH plugin packaging. The plugin never uploads file bytes into the model context. Instead, it injects @workspace style path references into the composer text, and the DSH agent then opens those paths using whatever tools the session already exposes.

The typical workflow targets local authoring tasks where developers want to drag PDF, CSV, JSON, source code, or Markdown files into the DSH web composer, which by default only accepts PNG, JPEG, WebP, and GIF. When the browser exposes the original filesystem path, workspace-internal files appear as @relative tokens while external paths remain absolute; if the browser hides the real path, the host stages a copy under the configured inboxDir (default .dsh-inbox) and references it relatively. Before each step, the plugin verifies that every @relative token still resolves and emits a <workspace-reference kind="file" /> marker so the agent can act on it, and the plugin is aimed at DSH users who routinely hand local assets to their agent.

Dependencies include DeepSeek Harness v0.1.0-rc.1 or later, Node.js ^22.19.0 or >=24.0.0, and the web profile only — headless mode is explicitly unsupported because the plugin relies on browser paste/drop events and the composer UI. Optional inboxDir and maxStageBytes keys live in ~/.dsh/profiles/web/cordis.patch.yml, with later layers replacing the whole config object so every key must be restated; the default cap is 20 MiB per staged copy, after which the host refuses the staging operation, while UTF-8 text is read by DSH read and other formats fall back to the session's shell. The license is Aurora Lab Source rather than MIT, restricting use to personal non-commercial installations and requiring written owner consent before any modification, derivative work, or commercial deployment.

dsh-file-ref 是 Aurora Lab 为 DeepSeek Harness(DSH)编写的原生 Cordis 插件,专门扩展 DSH web 配置下网页撰写器的文件附加能力。它通过 dsh plugin --profile web add <tgz> 命令安装,重启 dsh web 后即可生效;构建产物是 .tgz 包,源码仓库同时提供 dsh-plugin 与 deepseek-harness 主题标签,并附带 bundle-manifest 元数据。插件插入文本中的 @workspace 引用,文件字节不会进入模型上下文,DSH 代理再借助会话自带的 read、Shell 等工具打开文件。

典型使用场景是把 PDF、CSV、JSON、源代码、Markdown 等非图像文件直接拖入或粘贴进 DSH 网页撰写器,从而绕过默认仅支持 PNG、JPEG、WebP、GIF 的限制。当浏览器可见源路径时,工作区内文件会以 @相对路径 形式出现,工作区外则保留绝对路径;若浏览器隐藏真实路径,宿主会把副本写入工作区下的 .dsh-inbox 并 @ 该相对路径,步骤执行前还会校验路径存在性并插入 <workspace-reference kind="file"> 标记。该方案非常适合日常需要给代理喂本地文档、日志或数据文件的开发者。

依赖项包括 DeepSeek Harness v0.1.0-rc.1 或更高版本、Node.js ^22.19.0 或 >=24.0.0,并仅能在 web 配置下运行,headless 模式不被支持。默认 inboxDir 为 .dsh-inbox、maxStageBytes 为 20 MiB,超过上限的暂存副本将被拒绝,单个文件过仍可能触及会话本身的读取限制。许可证为 Aurora Lab Source,非 MIT,仅允许个人非商业使用,修改、二次衍生或商用须取得作者书面同意。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add https://github.com/auroralab-art/dsh-file-ref/releases/download/v0.1.0/dsh-file-ref-0.1.0.tgz

把 auroralab-art/dsh-file-ref 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-file-ref

Add file attachment support to DeepSeek Harness.

Version License DSH

English | 中文


Drag-and-drop or paste any local file — PDF, CSV, code, or document — into the DSH web composer. The plugin resolves the filesystem path and inserts an @workspace reference the agent opens with existing tools. No upload API, no extra model context.

Why do I need this?

Without this plugin, the DSH composer only accepts PNG, JPEG, WebP, and GIF. Any other file is rejected as an unsupported image format.

dsh-file-ref bridges that gap:

  • Recover the original filesystem path when the browser or host can see it.
  • Otherwise write a copy into the workspace inbox and @ that path.
  • Mark @relative mentions before the model step so the agent can open the file with read, the shell, or other tools already in the session.

There is no new upload API and no extra model-facing file tool. The agent uses whatever access mode the session already provides.

Quick Start

Requires the dsh CLI and the web profile.

dsh plugin --profile web add https://github.com/auroralab-art/dsh-file-ref/releases/download/v0.1.0/dsh-file-ref-0.1.0.tgz

Restart dsh web and hard-refresh the browser. Done.

To remove:

dsh plugin --profile web remove dsh-file-ref

How does it work?

File location Draft text inserted
Inside the current workspace @docs/spec.pdf
Outside the workspace /Users/you/Downloads/spec.pdf
Path hidden by the browser @.dsh-inbox/spec.pdf (a copy under the workspace)
PNG / JPEG / WebP / GIF First-party image rail, unchanged

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-input-history 下一个 Next dsh-vision-plugin →