dsh-plugin-session-delete

DSH PLUGIN安全与权限

仓库 gabrielbav/dsh-plugin-session-delete · npm @gabrielbav/dsh-plugin-session-delete

安全与权限 未标注验证等级 安全审查:未标注 可信度:未标注 可安装插件
安装这个插件

为 DeepSeek Harness 补上会话与工作区的永久删除能力:在会话行与菜单中一键删除会话,或连同工作区一并删除,并带确认与安全校验。

一句话选型结论

按资料字段整理

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

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

安装

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

    Node.js 要求 >=24.9.0;版本不匹配时安装会报错。

  2. 2
    执行安装命令

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

  3. 3
    确认已挂载

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

  4. 4
    试跑并检查权限

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

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求>=24.9.0来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名@gabrielbav/dsh-plugin-session-delete可用 npm view 查看包信息

能做什么

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

dsh-plugin-session-delete:为 DeepSeek Harness 补上会话与工作区的永久删除

  • 会话行悬停显示删除按钮
  • 会话菜单可永久删除
  • 工作区连同会话一并删除
  • 删除前确认并校验运行状态
  • 删除会话同时清理子代理

上游标签

deepseek-harnessdshdsh-plugin

验证等级与安全审查

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

选择建议

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

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 列出了 5 项功能,能直接看出它解决什么问题。

先想清楚的地方

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

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-plugin-session-delete当前 未做沙盒验证 未标注 0 未标注 有
dsh-infinite-gen-4 未做沙盒验证 未标注 1,611 未标注 无
cc-safety-net 未做沙盒验证 未标注 1,591 未标注 无
dsh-wallpaper-engine L5 · 运行验证通过 低风险 1,018 0.2.0-rc.2 等 10 个 有
api-relay-audit L5 · 运行验证通过 低风险 875 0.2.0-rc.2 等 10 个 有
hol-guard L4 · 沙盒安装通过 不在扫描口径 828 未标注 有

仓库档案

安全与权限
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方gabrielbav仓库 dsh-plugin-session-delete · 默认分支 main
分类安全与权限admin-security
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-11-12 · 2026-11-12最后推送 2026-11-12
本站收录2026-11-13首次进入本站目录的时间

README 全文

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

Session delete for DeepSeek Harness

DeepSeek Harness can archive sessions but not delete them, and deleting a workspace moves its sessions to "Ungrouped". This plugin adds permanent deletion:

  • Delete session: a trash button next to the archive button when you hover a session row, and a Delete session item in the session's "..." menu.
  • Delete workspace and sessions: an item in the workspace's "..." menu, beside the built-in Delete workspace. It deletes every session in the workspace, then the workspace. The workspace folder and its files are never touched.

Both ask for confirmation. Deleting a session also deletes its subagent sessions. If the session is open in the conversation view, DSH switches to a new conversation.

What is never deleted

A session is kept, and the dialog says why, when:

  • it is running: a turn, a subagent, a background job or a schedule is active. Stop it first.
  • its log is open somewhere else: another DSH process (Desktop and the CLI share sessions), or a subagent or integration that owns it.
  • it is a subagent session: delete its parent instead.
  • the session store is not the standard JSONL folder layout, or a session folder does not look like one. The plugin removes only a folder that sits exactly two levels under the session root, is not a symlink, holds no subfolders, and whose stored header names the session being deleted.

"Delete workspace and sessions" keeps the workspace when any of its sessions is kept, and lists them.

Sessions used since DSH started

DSH keeps every session you chatted in loaded until it restarts. To delete one of those, the plugin asks the session controller to unload it with releaseAgent. That method is not in upstream DSH yet; it is proposed in gabrielbav/deepseek-harness#1. The plugin detects it at runtime:

DSH Sessions not loaded Idle sessions used since DSH started Running sessions
with releaseAgent deleted unloaded, then deleted kept
without it deleted kept: "Restart DSH and try again" kept

On a DSH without the method, the confirmation dialog says so up front.

Install

From the Plugins page: Add plugin → @gabrielbav/dsh-plugin-session-delete, or a path to a checkout. From the command line:

dsh plugin --profile web add @gabrielbav/dsh-plugin-session-delete

Restart dsh web afterwards.

Limitations

  • Worktree checkouts are not removed. A checkout the worktree plugin created for a session stays on disk. Archive the session first if you want the worktree plugin's cleanup to run, then delete it.
  • Cached session data outside the session folder stays. The projection cache keeps a small record per session under $DSH_HOME/storages. It is not shown anywhere and is not reused.
  • Archived ids stay in the archive list. Removing a deleted id from the archive set would cancel the worktree plugin's pending cleanup. The leftover id names no session and is not displayed.
  • Empty project folders stay under the session root after their last session is deleted.
  • Deleting is permanent. There is no trash.

Develop

pnpm install
pnpm build        # lib/index.js (Host), lib/client.js (browser)
pnpm test

The Host half is one ES module with no runtime dependencies. The browser half is CommonJS wrapped in the DSH page's module-loader factory by scripts/wrap-client.mjs. React and @deepseek-ai/dsh-client-ui-primitives come from the page.

The Host half answers three owner-only routes: /api/sessionDelete.capabilities, /api/sessionDelete.deleteSession and /api/sessionDelete.deleteWorkspace.

DSH version

releaseAgent is added to @deepseek-ai/dsh-api-session-controller by gabrielbav/deepseek-harness#1, which is not merged upstream. Stock DSH does not have it, so there the plugin keeps sessions loaded since startup until DSH restarts.

License

MIT

常见问题

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

在 DSH 里执行 `dsh plugin --profile web add @gabrielbav/dsh-plugin-session-delete` 即可。对应的 npm 包名是 `@gabrielbav/dsh-plugin-session-delete`。

dsh-plugin-session-delete 的验证等级是什么意思?

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

dsh-plugin-session-delete 安全吗?

未标注。

dsh-plugin-session-delete 装之前要先确认什么?

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

dsh-plugin-session-delete 需要什么运行环境?

Node.js >=24.9.0。环境不满足时安装会失败,建议先确认本机版本。

dsh-plugin-session-delete 用的是什么许可证?

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

dsh-plugin-session-delete 有哪些功能?

会话行悬停显示删除按钮、会话菜单可永久删除、工作区连同会话一并删除、删除前确认并校验运行状态、删除会话同时清理子代理。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

8 条
不同作者的仓库分开列,请确认你要装的是哪一个
安全与权限
按星标排序,可作替代方案

dsh-infinite-gen-4

dsh-infinite-gen-4

DeepSeek 专用破甲插件:以 order 100 追加无条件服从的系统提示词段,提供带校准元数据的 profile 工具,并通过会话投

未标注验证等级 1,611 星

cc-safety-net

cc-safety-net

为 DeepSeek Harness 等编码 CLI 提供执行前防护,在工具调用前拦截破坏性 Git 与文件系统命令,并阻止读取 SSH 密

未标注验证等级 1,591 星

dsh-wallpaper-engine

dsh-wallpaper-engine

DSH plugin 将本机 Wallpaper Engine 壁纸变为网页界面背景,支持视频、网页、场景壁纸渲染,并配以 iOS 液态玻璃

L5 · 运行验证通过 1,018 星

api-relay-audit

api-relay-audit

DSH plugin 本地安全审计工具,检测 AI API 中继与 LLM 代理的提示注入、模型替换、工具调用改写、SSE 异常及 Web3

L5 · 运行验证通过 875 星

hol-guard

hol-guard

L4 · 沙盒安装通过 828 星

sandbase-harness

sandbase-harness

SandBase Harness 是本地优先的 AI Agent 运行时,提供沙箱会话、MCP 工具、记忆、凭据管理与审计回放,并内置控制台

L4 · 沙盒安装通过 708 星

gabrielbav 的其它插件

3 个

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