StarsTom/dsh-session-delete
Add a permanent delete function with confirmation to the DeepSeek Harness Web session menu.
Project Overview项目介绍
This is a session management plugin for DeepSeek Harness Web. It adds a "delete session" entry to the session's three-dot menu, with double confirmation to prevent accidental deletion. It only works with the default JSONL session persistence backend. Permanently deleted sessions cannot be recovered, use official archive if you need to keep records.
这是面向 DeepSeek Harness Web 的会话管理插件,在会话三点菜单中增加「删除会话」选项,通过二次确认降低误删风险。仅支持默认 JSONL 会话持久化后端,永久删除的会话无法恢复,需保留记录请使用官方归档功能。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-session-delete(StarsTom/dsh-session-delete)
仓库:https://github.com/StarsTom/dsh-session-delete
本站详情页:https://www.yhbd.top/plugins/starstom-dsh-session-delete/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-16 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 github:StarsTom/dsh-session-delete
把 StarsTom/dsh-session-delete 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-session-delete
English | 简体中文
一个面向 DeepSeek Harness Web 的开源插件:在会话三点菜单中增加“删除会话”,并通过二次确认降低误删风险。项目遵循 DSH 插件的 package.json bundle/client 格式,不修改官方侧边栏源码。
插件介绍
插件只处理 DSH 默认 JSONL 会话持久化后端。它会在用户明确确认后删除目标会话目录;活动会话会先停止 agent、等待写入完成,再清理运行态注册。无法确认会话身份、后端不兼容或目标越过持久化根目录时,插件会拒绝操作。
插件不发起网络请求、不读取凭据、不收集或上传会话内容。永久删除不可恢复,需要保留记录时请使用 DSH 自带的“归档会话”。
功能
- 在现有“归档会话”下方增加“删除会话”,不替换官方侧边栏。
- 删除前显示会话名称、不可恢复提示和强制确认复选框。
- 删除活动会话前停止 agent、等待写入完成并清理运行时注册项。
- 只支持官方 JSONL 会话持久化后端;其他后端会拒绝操作并保留数据。
- 递归删除前校验目标位于 JSONL 持久化根目录之下。
- 不发起网络请求,不收集或上传会话内容。
环境要求
- DeepSeek Harness
0.1.0-rc.6或兼容版本 - Node.js 20 或更高版本
webprofile- 默认 JSONL 会话持久化后端
安装
从 GitHub 安装标准 DSH bundle:
dsh plugin --profile web add github:StarsTom/dsh-session-delete
安装后完整重启 DSH Web 服务,再刷新页面。dsh.bundle 会自动把插件加入 profile;不要再向 profile 的 cordis.patch.yml 手工插入同一个插件,否则会产生重复 loader id,导致 DSH 启动失败。
开发时可以从本地目录安装:
cd /path/to/dsh-session-delete
dsh plugin --profile web add .
使用方法
- 在左侧会话列表中找到目标会话。
- 点击会话右侧三点按钮。
- 选择“删除会话”。
- 核对会话名称,勾选确认项后点击“永久删除”。
永久删除无法恢复。需要保留记录时请使用官方“归档会话”。
卸载
dsh plugin --profile web remove dsh-session-delete
重启 DSH Web 服务后生效。卸载插件不会删除任何会话。
工作方式与兼容性
当前 DSH 公共 slot 尚未暴露会话菜单扩展点,因此浏览器端只在检测到官方“归档会话”菜单项时追加入口。DSH 后续若调整侧边栏 DOM 或菜单文案,插件会停止注入,而不会替换或破坏原菜单。
服务端 RPC 仅接受 loopback 权限。删除流程只使用 DSH 注入的 sessions、agents 和 sessionPersistence 服务,不读取凭据,也不访问网络。删除失败时返回脱敏错误,绝对路径和文件系统细节只保留在本机 DSH 日志中。
开发与验证
npm run check
npm test
npm pack --dry-run
测试覆盖活动会话、冷会话、持久化写入退役等待、目录删除、根目录越界拒绝、重复会话名拒绝和确认契约。真实删除前仍应在不含重要数据的测试 profile 中验证。
版本
当前版本:0.1.3。完整记录见 CHANGELOG.md。
社区与反馈
本项目是个人开源插件,不代表 DeepSeek 官方;请先在 disposable profile 中验证,再处理重要会话。
liangmianya/dsh-synapse
alaliqing/claude-paper
acryldev/acryl
omdsh-dev/dsh-annotation
Anionex/dsh-turn-rewind
Tyan66666/billion-context-dsh
qkycir-123/dsh-run2skill