dsh-shredder

DSH PLUGIN会话与消息

仓库 ruler4396/dsh-shredder

会话与消息 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件

为 DeepSeek Harness 原生会话菜单补上一枚红色「彻底删除」行,仅对已归档会话显示,两步确认后永久清除会话记录。

一句话选型结论

按资料字段整理

dsh-shredder 是会话与消息类的 DSH 可安装插件,未做沙盒验证,暂无安全审查结论,列出 4 项功能,没有现成安装命令,需要按仓库 README 接入。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类会话与消息 收录类型可安装插件 验证等级未标注验证等级 安全审查未标注
验证等级 UNKNOWN 未标注验证等级
GitHub 星标 0 复刻 0 · 未关闭 issue 未标注
最近更新 2026-10-09 创建于 2026-09-29
README 9.4 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-shredder:DeepSeek Harness 原生会话菜单里的永久删除行

  • 原生菜单内删除行
  • 仅归档会话可见
  • 两步点击确认
  • 清除残留归档记录

上游标签

archivecordisdeepseekdeepseek-harnessdsh-pluginsessions

验证等级与安全审查

未标注验证等级
自动化流程结论,不是人工审核
验证等级未标注验证等级上游未给出验证结论,安装前请自行确认
安全审查未标注静态分析结论,未标注不代表已通过审查
仓库健康度未标注按仓库活跃度与最近更新时间给出
可信度未标注综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 安全审查还没结论,装之前先看仓库改了什么、要什么权限。
  • 没有现成安装命令,要按仓库 README 手动接入。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在会话与消息场景里给 DSH 补能力的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-shredder当前 未做沙盒验证 未标注 0 未标注 无
dsh-desktop L3 · 安装规范通过 低风险 3.0 万 未标注 无
openpets L4 · 沙盒安装通过 低风险 1,274 未标注 有
deeptide L4 · 沙盒安装通过 低风险 1,104 0.1.1-rc.2 有
jingyun-dsh L3 · 安装规范通过 低风险 1,004 未标注 有
study-mate 未做沙盒验证 未标注 856 未标注 无

仓库档案

会话与消息
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方ruler4396仓库 dsh-shredder · 默认分支 未标注
分类会话与消息session
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言JavaScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 未标注收录时的数值,非实时
创建 / 更新2026-09-29 · 2026-10-09最后推送 未标注
本站收录2026-09-30首次进入本站目录的时间

README 全文

9.4 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-shredder

One red Shred session row inside DeepSeek Harness's own session menu, for permanently deleting a session you have already archived.

dsh-shredder is a community plugin for DeepSeek Harness (dsh). It is not an official DeepSeek AI product.

What it does

  • Adds one row to the native "…" menu of a session row, right below Unarchive session.
  • The row only appears when that session is archived — an ordinary session never shows a delete option here.
  • Two-step inline confirmation: the first click turns the row into Confirm permanent delete, the second one deletes. Closing the menu resets it.
  • On success the session is gone from every surface: the workspace list, the ungrouped list and the archive set.
  • If the log file is already gone but the id is still stuck in the archive set (a stale archive record), the same row just clears the record instead — and says so.

What it deliberately does not do

  • No archive panel, no extra page, no sidebar entry. Archived sessions are shown by dsh itself inside the workspace they belong to; the native View options → hide / show / only archived filter already lists them. This plugin adds the one action that dsh does not provide, in the place where the action belongs.
  • No bulk delete, no search, no preview, no restore-and-open. If you want an archive workspace, see the alternatives below.
  • No trash can, no undo. "Shred" here means the session directory is unlinked from the filesystem; it does not overwrite disk blocks. Recovering a shredded session needs a file-recovery tool at best.

Requirements

  • dsh 0.2.0-rc.2 verified. Older hosts are supported through a fallback path (they lack the public unarchiveSession), but only the current release is measured.
  • A profile that loads bundles (the shipped desktop / web profiles).

Install

  1. Clone this repository somewhere stable, e.g. C:\plugins\dsh-shredder.
  2. In your profile manifest ~/.dsh/profiles//package.json, add both entries:
{
"dependencies": { "dsh-shredder": "file:C:/plugins/dsh-shredder" },
"dsh": { "profile": { "bundles": [ /* …existing bundles…, */ "dsh-shredder" ] } }
}
  1. Install with the pnpm that ships with dsh, then restart dsh (bundle composition is resolved at start; a page reload is not enough):
& "\resources\runtime\pnpm\bin\pnpm.cjs" --dir "$HOME\.dsh\profiles\" add "file:C:/plugins/dsh-shredder"

On the desktop app the profile is desktop. dsh --profile desktop --dump-config is refused there (profile "desktop" is managed exclusively by the Electron application), so verify by restarting and opening a session menu.

  1. Open the "…" menu of an archived session → 彻底删除 / Shred session → click twice.

Updating after you edit the source

file: dependencies are installed as a copy, not a link. Deleting the installed copy and running pnpm install (even with --force) does not re-copy it — pnpm answers Already up to date and the plugin silently stops being mounted. Re-declare the dependency instead, and check bytes:

Remove-Item "$HOME\.dsh\profiles\\node_modules\dsh-shredder" -Recurse -Force
& "" --dir "$HOME\.dsh\profiles\" add "file:C:/plugins/dsh-shredder"   # must print `Packages: +1`

Then compare lib/*.js between the two trees (sha256), and restart.

Uninstall

Remove the dependencies entry and the dsh.profile.bundles entry, run install again, restart. To stop mounting it without uninstalling, remove only the bundles entry — the bundle layer then never composes. Do not add a user-level - id: shredder / disabled: true line for that: an id that is not in the tree only makes every start print patch: entry "shredder" not found to stderr.

How it works

Half File Role
Host lib/index.js one loopback HTTP endpoint
Client lib/client.js the menu row, injected into sidebar.workspaces.session.menu.item at order: 450
Mount cordis.patch.yml bundle-layer insert row (id: shredder)
Method Path Body Result
POST /dsh-shredder/delete { sessionId } { ok, action: 'deleted' \| 'record-only', … }

Deletion order is part of correctness:

  1. Ask the owners to stop — the official workspace/session-stop seam (agent turn, jobs, subagents, schedule).
  2. flush the live session so buffered events reach disk.
  3. Evict the resident instance from the session store, so every tab drops its row and no late write can rebuild the directory.
  4. WorkspaceEntity.detachSession — drop the workspace membership slot. Archiving keeps the slot on purpose (unarchive restores the position), so deleting the file first would make the session flash back into the workspace list.
  5. Remove ///.
  6. Unarchive (official workspaceRegistry.unarchiveSession), which clears the archive record.
  7. Background re-checks at +2s / +6s / +15s delete a directory that a late flush resurrected.

Known boundaries

  • Irreversible. Export anything you might want back before shredding.
  • Sometimes the row stays, and the archive flag is kept on purpose. Clearing the archive record only makes sense once every browser tab has dropped the session row. That is guaranteed when the resident instance was evicted synchronously (session/disposed broadcast). It is not guaranteed when the instance was busy at that moment (the host defers the detach) or when the session is not resident in this process at all — in those two cases unarchiving would move a still-displayed row into the ordinary session list, and clicking it would read a deleted log ("session not found"). So the endpoint deletes the file and reports recordHeld: true instead. The browser half then re-pulls the official session list through the client sessions service (refresh() → session.list, whose merge keeps only ids the host still reports, so the vanished row drops out) and only afterwards re-issues the request to clear the record — no reload or restart needed. If that entry point is missing or the re-pull fails, the row simply stays archived; the background pass clears a deferred instance's record within 15 s, and a session resident in no process leaves one invisible dead id behind, which is cheaper than a broken row on screen.
  • Other browser tabs are not notified in the absent case. There is no session to dispose, so no event reaches the other tabs; they keep their stale row until they re-pull the list themselves.
  • Deleting a historical-format session is slower, and it is not this plugin's I/O. sessionPersistence.stat() computes a revision that, for pre-current format logs, fingerprints the whole session root (one stat() per session file). Measured on the author's machine: 215 session directories, of which 66 are session.v3.jsonl.zstd and 24 are session.v4.jsonl.zstd — deleting one of those 90 pays a ~215-file walk. Current-format sessions skip it entirely.
  • What stays behind. Shredding removes the session log directory. The projection-cache entry under storages/session_projcache/sessions/ and any content-addressed upload under attachments/ are owned by dsh itself and are not removed here — measured on this machine: after a session directory is gone, the only file still carrying its id is the projection-cache entry.
  • Eviction touches runtime internals. The session store has no public close/evict API, so step 3 reads store.store / entry.detach behind a presence probe; if a future host changes that shape the step reports unsupported instead of crashing.
  • Pinned sessions. dsh makes pinning and archiving mutually exclusive, so a session reachable through this row cannot hold a pin.
  • Styling is a faithful copy, not an import. The row mirrors the official MenuItemButton markup (div.itemWrap > button[role=menuitem].item.danger + .itemIcon + .itemLabel) and its design tokens, because dsh-client-ui-primitives is a build-time dependency and is not in the client module table for a plugin to require. If the host restyles its menus, this row needs the same edit.
  • Seat contract. sidebar.workspaces.session.menu.item gives its children { sessionId, displayTitle } plus the standard useWorkspaces snapshot hook (that is where the archive set comes from) and the injected useMenuOpenState. Native rows sit at orders 100/200/300/400.

Alternatives, if you want more than one row

The plugin store has fuller archive managers — @michengai/dsh-archive-manager (a whole Settings page: title and content search, favorites, bulk restore, batch cleanup, log diagnosis), dsh-better-archive (settings section plus a right-sidebar archive tab, built on the host's own Menu / RiskConfirmation), and dsh-archive-manager (sidebar footer panel with agent teardown). They overlap with what this plugin does and go far beyond it. Pick this one only if what you wanted was "the delete option, in the menu, without another page".

Development

node test/delete-endpoint.mjs     # host endpoint: response shapes, ghost records, negative control (deletes real temp dirs)
node test/style-injection.mjs     # client style-injection contract, four host-materialization scenarios
npm test                          # both

License

MIT — see LICENSE.

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-shredder 怎么安装?

本站没有抓到该条目的安装命令,请到仓库主页确认安装方式;这类条目多数是生态应用或尚未发布安装包的项目。

dsh-shredder 的验证等级是什么意思?

未标注验证等级。上游未给出验证结论,安装前请自行确认

dsh-shredder 安全吗?

未标注。

dsh-shredder 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-shredder 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-shredder 有哪些功能?

原生菜单内删除行、仅归档会话可见、两步点击确认、清除残留归档记录。

同名或近似条目

1 条
不同作者的仓库分开列,请确认你要装的是哪一个
会话与消息
按星标排序,可作替代方案

dsh-desktop

dsh-desktop

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

L3 · 安装规范通过 3.0 万 星

openpets

openpets

L4 · 沙盒安装通过 1,274 星

deeptide

deeptide

L4 · 沙盒安装通过 1,104 星

jingyun-dsh

jingyun-dsh

井云 DSH 客户端插件,为 DeepSeek Harness 注入会员登录、订阅支付、算力管控与应用市场,让智能体和技能快速变成可交易商品

L3 · 安装规范通过 1,004 星

study-mate

study-mate

StudyMate 是 DSH 的「学习模式」预设与技能包,为数学、计算机科目定制学习路线、讲解课件与练习评估,跨科目共享记忆。

未标注验证等级 856 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。