DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Session Purge — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
S

dsh-session-purge

Session Purge

彻底删除一个 DSH 会话:日志目录 + 投影缓存 + 工作区登记表(DSH 自身只提供归档)

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:wwwyxsuper/dsh-session-purge#3633c5e580a1be5d30c11cff37b43ab9d143a976
README兼容性版本

兼容性与来源证明

Session Purge 以 dsh-session-purge 发布,当前版本为 0.2.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/3

版本

0.2.0stable
2026/10/3

相关插件

正在加载相关插件…

最新版
0.2.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/3
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。

README

dsh-session-purge

Permanently delete a DSH session — straight from the archived list.

DSH itself only offers archive / unarchive. Session logs are append-only, the persistence seam exposes no delete, and the workspace registry only drops the registration, never the session. This plugin closes that gap, and it is the only one that puts the action on archived sessions in the sidebar — the place where sessions you are done with actually pile up.

中文说明

What it gives you

1. Two agent-side tools (host half)

ToolWhat it does
session_purge_listLists every session on disk: title, size, last modified, archived / live-agent / current-session flags (read-only; use it to confirm a target before deleting)
session_purge_deleteDeletes one session; needs confirm: true, optionally allow_unarchived / allow_live / prune_registry

2. A UI entry (client half, since v0.2.0)

One additive seat on the sidebar session row (pure addition — replaceRisk: none):

SeatHow it looks
sidebar.workspaces.session.menu.itemOne extra row, 彻底删除 / Delete permanently, inside a session's ⋯ menu (with a separator, right under unarchive)

An earlier revision also used sidebar.workspaces.session.row.action (a hover button at the end of the row). Users reported it looked bulky, so it was removed — the menu row is the only entry now.

It renders only for ARCHIVED sessions. "Is it archived?" is answered by the host half (GET /api/dsh-session-purge/state); the client never guesses at an undocumented snapshot shape.

Deleting cannot be undone, so it takes two clicks: the first arms the row (确认删除?), the second one deletes. There is no window.confirm — Electron renderers may disable it.

What the delete actually removes

Three places, in one pass:

  1. <DSH_HOME>/sessions/<workspace>/<session id>/ — the session log itself
  2. <DSH_HOME>/storages/session_projcache/sessions/<session id>.json — the projection cache (titles live here)
  3. <DSH_HOME>/storages/workspace.json — the id in the registry (backed up to .bak-<stamp> first, then atomically replaced)

Plus an audit line in <DSH_HOME>/session-purge.log.

Safety gates

#Gate
1The UI entry only appears for archived sessions (the tool needs explicit allow_unarchived: true otherwise)
2Refuses to delete the session you are talking to (self-destruct)
3Refuses to delete a session that still has a live agent (it would be flushed back to disk)
4Re-checks after deleting whether the files came back (resurrected) and says so plainly
5Two-click confirm in the UI; the HTTP route requires a per-boot token injected into the page

HTTP routes (used only by this plugin's client half)

MethodPathMeaning
GET/api/dsh-session-purge/statereturns { ok, archived: [sessionId…] }
POST/api/dsh-session-purge/deletebody { sessionId, confirm: true }

Both require the header x-dsh-session-purge, and the static marker ui is accepted as well: a custom request header forces a CORS preflight, and the route never approves one, so a cross-origin page cannot reach it. The route lives on DSH's own loopback web server — no extra port is opened.

Install / update

It installs as a file: dependency into a profile (a copy, not a link). After editing the source you must re-copy it and restart DSH — the client half never hot-reloads:

$src = '<this repo>'
$dst = "$env:USERPROFILE\.dsh\profiles\<profile>\node_modules\dsh-session-purge"
robocopy $src $dst /MIR /XD node_modules
# then restart DSH

Uninstall / rollback

Remove dsh-session-purge from the profile's package.json dependencies and from dsh.profile.bundles, delete node_modules\dsh-session-purge, restart DSH. The menu row disappears and nothing else changes.

⚠️ A deleted session cannot be recovered — that is the only irreversible part, which is why there is a confirmation step. The attachment directory ($DSH_HOME/attachments/v1) is content-addressed and may be shared between sessions, so it is deliberately left alone.

Relationship to the other session-delete plugin

dsh-session-purge on npm is maintained by someone else and covers the same core idea. Its own README states that archived sessions are not visible in the sidebar, so their menu cannot be reached — you are told to unarchive first. This plugin is the opposite: it only shows on archived sessions, which is exactly the list where deletion is wanted.

MIT License.