OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:junecattle/dsh-attachment-cache
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A sidebar panel for DeepSeek Harness that shows what is stored in ~/.dsh/attachments, grouped by conversation, and lets you delete it deliberately — with a one-line explanation of what each deletion breaks — or move the whole store to another disk without losing old conversations.
Every image and file you attach to a conversation — and every image a tool hands back — is written to ~/.dsh/attachments/v1 as an immutable, content-addressed object (objects/<sha256> for normalized images, file-objects/<sha256> plus a files/<sha256>/<name> hardlink for files). The harness never removes them: there is no garbage collector, no retention policy, no eviction. Quitting dsh does not touch the folder either, so it only ever grows. A handful of conversations with TIFFs, PDFs or screenshots can add gigabytes.
Nothing in DSH's UI tells you which conversation owns which bytes, or what happens if you delete a file by hand. This plugin does.
~/.dsh/cache/attachments (request images) is regenerable; clear it whenever you like.dsh plugin --profile web add github:junecattle/dsh-attachment-cache
Restart DSH, open Settings → Plugins, enable Attachment cache manager, then click the archive icon in the sidebar.
Updating later:
dsh plugin --profile web add github:junecattle/dsh-attachment-cache
| Area | What it does |
|---|---|
| Tabs | 全部, 图片, 文档, 其他, 无引用 — each with a live count |
| Search | Matches file name, extension, or the conversation title that owns the file |
| Extension filter | Comma-separated suffixes, e.g. tif,pdf |
| 全选当前 | Selects everything currently visible (including collapsed groups) |
| 展开全部 / 收起全部 | Opens or folds every conversation card |
| 存储位置 | Opens the relocation dialog |
| 重新扫描 | Re-reads the store and session logs |
| 删除选中 | Confirms, then deletes the selected objects |
Hovering a file shows its size, digest, share count and the consequence of deleting it; clicking pins it in the detail pane with a preview for PNG/JPEG/GIF/WebP.
| Deleted | Effect |
|---|---|
| An image object | That image no longer renders in every conversation that used it. Text and tool output stay. |
| A file object | The original file can no longer be re-downloaded or re-read by a later turn; the alias under files/ disappears too. |
A files/<sha>/<name> alias |
Only that display name goes away; the object survives for other names. |
~/.dsh/cache/attachments |
Nothing permanent — request images are regenerated on demand. |
| Unreferenced objects | Nothing; no session points at them. |
Deletion is permanent (no recycle bin), which is why the panel shows the impact first and asks once more before removing anything.
~/.dsh/attachments/v1 stays the logical path — the harness config and every stored reference keep working — but the bytes can live elsewhere:
存储位置 → 选择目标文件夹 (e.g. D:\dsh-attachments).C:.v1.backup-<timestamp> instead of deleted.files / bytes / phase); the panel can be closed and reopened.Notes:
dsh, but a backup tool that does not follow reparse points will see an empty folder.~/.dsh/cache deliberately stays on C:; it is small and regenerable.index.js) registers routes under /attachment-cache-manager, guarded by the host's connection fence, and reads:objects, file-objects, files, request-images),~/.dsh/sessions/<workspace>/<session>/session.v4.jsonl.zstd, zstd multi-frame) purely to map sha256:<digest> references to conversations.client.js) registers a sidebar.panellist icon and a keyed main page; all visible text goes through the client locale.POST /delete after the confirmation dialog.The plugin never calls into DSH's attachment service internals and never writes to session logs, so a DSH update cannot corrupt the store through it.
web profilezlib.zstdDecompress for session logs)Everything is local. The panel reads files under ~/.dsh and serves previews over the authenticated localhost route of your own DSH instance; nothing is uploaded anywhere.
npm run check # syntax-check index.js and client.js as ESM
node scripts/publish.mjs "feat: ..." # publish the working tree to GitHub (REST API, no git needed)
Layout:
index.js host half: inventory, delete, relocation routes
client.js client half: sidebar icon + panel page
locale/{en,zh}.json plugin display metadata
icon.svg sidebar icon
cordis.patch.yml bundle patch
market/ catalog entry submitted to awesome-dsh-plugin
scripts/ check + publish helpers
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: storage。