rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:gjunyoung/dsh-library
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个本地文件库插件:上传、预览、收藏、批量导出,并能把库里的文件作为附件发到聊天。
给 DeepSeek Harness 加一个本地文件库:上传、浏览、预览、收藏、批量导出,并且和聊天打通——agent 交付的文件可以自动入库,聊天里也能把库内文件作为附件发出。纯插件实现,不需要修改 Harness 本体。

present 交付的文件自动入库并记录来源会话图片灯箱(滚轮缩放 / 拖动 / 旋转 / 下载 / 删除):

前提:本机已安装 DeepSeek Harness,并有一个可用的 profile。
git clone https://github.com/gjunyoung/dsh-library.git
npm pack 生成的 .tgz 路径)。首次启动会在 ~/.dsh/library(Windows:C:\Users\<你>\.dsh\library)创建存储目录。
安装入口在不同版本里名称可能略有差异(「安装」「添加插件」等),本质是把该目录作为当前 profile 的一个本地依赖。
~/.dsh/library/
├─ index.json 记录(文件名、大小、哈希、来源、收藏、所属收藏夹)
├─ index.backup.json 上一次的索引备份
├─ blobs/<2>/<sha>.bin 按内容寻址的文件本体(同内容只存一份)
├─ orphan/ 失去索引记录的字节(不会被自动删除)
├─ tmp/ 临时文件、Office 转换缓存
└─ thumbs/ 预留的缩略图目录
index.json。索引损坏、或手动动过目录时使用;索引里没有的文件会以 recovered-<hash前8位> 出现,原名与收藏信息无法恢复。设置 → 资料库(存储位置、迁移、重建索引):

srcdoc 渲染,脚本可运行但读不到应用数据、也无法访问外网;./style.css 这类相对引用不可用。present 交付的文件会自动入库;write / edit 直接写进工作区的文件不会自动入库(避免把临时文件都塞进来)。packages/library/(本仓库根目录)
├─ index.js Host 半边:路由、会话事件捕获、打开系统程序
├─ client.js Client 半边:面板、预览、灯箱、批量、设置页
├─ lib/ engine(存储与索引)、http、model、render、capture、zip、office
├─ locale/ zh / en 文案
├─ test/ node:test 用例
└─ cordis.patch.yml bundle 补丁
运行测试(Node 22+):
node --test "test/*.test.js"
客户端半边只允许 require('react');与 Harness 的交互一律通过 slot 注册与 loopback HTTP 完成,这也是它能作为纯插件工作的原因。
MIT © 2026 gjunyoung
可以自由使用、修改、分发(包括商业用途),只需保留版权声明与许可证文本;软件按“原样”提供,不含任何担保。
A local file library for DeepSeek Harness: upload, preview, favourite, batch export, and attach files to chat.
A local file library for DeepSeek Harness: upload, browse, preview, favourite and batch-export files, wired into the chat — deliverables an agent presents are archived automatically, and library files can be attached to a message. It is a pure plugin: nothing in Harness itself changes.

Unfiled by default+ button in the composer picks files from the library; files an agent delivers through present are archived with their source sessionThe image viewer (wheel zoom, pan, rotate, download, delete):

Requires DeepSeek Harness with a working profile.
git clone https://github.com/gjunyoung/dsh-library.git
npm pack .tgz).The first start creates the archive at ~/.dsh/library (C:\Users\<you>\.dsh\library on Windows).
The install entry point is named slightly differently across releases (“Install”, “Add plugin”, …); it always ends up as a local dependency of the current profile.
… menu on a row offers preview, download, favourite, move to folder and delete.Unfiled plus your folders); inside a folder the search box applies, and the … menu opens a folder picker — already-favourited files show “Remove from favourites”.~/.dsh/library/
├─ index.json records (name, size, hash, source, favourite, folder)
├─ index.backup.json previous index backup
├─ blobs/<2>/<sha>.bin content-addressed bytes (identical content stored once)
├─ orphan/ bytes whose record disappeared (never deleted automatically)
├─ tmp/ temporary files and the Office conversion cache
└─ thumbs/ reserved for thumbnails
index.json from the bytes on disk. Use it when the index is damaged or the directory was edited by hand; files unknown to the index come back as recovered-<first 8 hash chars> and lose their original name and favourites.Settings → Library (location, move, rebuild index):

srcdoc iframe: scripts run, but the page cannot read application data or reach the network, and relative references such as ./style.css do not resolve.present are captured; plain write / edit changes in the workspace are not (that would pull in every scratch file).index.js host half: routes, session-event capture, "open in system"
client.js client half: panel, preview, viewer, batch bar, settings
lib/ engine (archive + index), http, model, render, capture, zip, office
locale/ zh / en dictionaries
test/ node:test suites
cordis.patch.yml bundle patch
Run the tests (Node 22+):
node --test "test/*.test.js"
The client half may only require('react'); everything it needs from Harness goes through slot registration and loopback HTTP, which is what keeps this a pure plugin.
MIT © 2026 gjunyoung
Use, modify and redistribute freely (commercial use included) as long as the copyright notice and license text stay with it. The software is provided “as is”, without warranty.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。