又写了个DS Harness插件:dsh-file-viewer

同步自知乎:又写了个DS Harness插件:dsh-file-viewer

原文:知乎文章

开源地址:github.com/liguobao/dsh

DeepSeek Harness File Viewer

  • 很纯粹,就是一个文件查看器,什么都没有了。

DSH File Viewer

A universal file preview layer for DeepSeek Harness: open and inspect files right inside the web UI — no external application needed.

Preview ≠ Execute. The viewer is strictly read-only: previewing a file never runs shell commands, scripts, macros, or HTML. SVG is rendered through <img>, and Markdown is sanitized before display.

给要什么没什么DeepSeek Harness,写一个文件浏览的插件,支持了常见的文件类型,基本能看了。

如果是对话中产生的文件,直接在底部新增一个Chips栏目,点击就可以看。

社区上现在也有好几个类似的插件了,不过支持文件多的,比较纯粹的是当前这个插件了。


插件一句话简介
dsh-file-viewer右栏通用文件预览层,支持图片/PDF/CSV/Markdown/JSON/YAML/代码等
@wingsky-1/dsh-web-file-preview点击对话中的文件链接弹出预览
@undeadsheep/dsh-file-preview悬浮窗预览工作区文件,可编辑
GitHubJiKe/dsh-markdown-preview对话流内渲染 Markdown/图片/文本
Nothree-code/folder-tree-sh文件树加多标签预览,支持 PDF/DOCX/CSV
@lijian-ui/dsh-file-manager右侧文件管理器,支持 10+ 格式预览和 Git 操作
chengzhi43/dsh-fileVS Code 风格文件管理器,Monaco 编辑
DSH-better-sidebar侧边栏工作台,集成文件预览、终端、Git

当然各取所需就好了,我这边是不打算做编辑和对比的,只是看下内容就完事了。

不过,结合 github.com/liguobao/dee Remote插件,

也是支持直接查看远端的的文件内容的,

走的依旧是内部Host 的Remote RPC,

中间服务器看不到任何的内容,足够的安全可靠。


好了,完事。

扩展阅读:

Built with Hugo
Theme Stack designed by Jimmy