DeepSeek Harness plugin

dsh-session-delete-bakacirn

DSH plugin: permanently delete cold sessions from a Settings page (设置 -> 会话管理).

Jump to install

Source facts

Repository
BakaCirno233/dsh-session-delete
Latest update
Aug 19, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/BakaCirno233/dsh-session-delete
Plugin: dsh-session-delete-bakacirn
Author: BakaCirno233

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-session-delete

DeepSeek Harness (DSH) 插件:在 设置 → 会话管理 中列出所有会话,并永久删除不需要的会话。

  • 删除该会话的持久化日志(~/.dsh/sessions/<项目>/<session-id>/
  • 从所有工作区的会话账目中摘除(workspaceRegistry.detachSession
  • 搜索索引(SQLite FTS)在下一次查询时自动同步清理
  • 两步确认防误删;删除前后都会校验,删除后验证持久化列表不再包含该会话

> 活动会话限制:本次启动中打开过的会话(包括正在查看的当前会话)会被拒绝删除——活动 Agent 会重写日志,删除不彻底。重启应用后这些会话变成冷会话,即可正常删除。历史会话(此前运行留下的)随时可直接删除。

安装

在目标 profile 的 package.json(例如 ~/.dsh/profiles/desktop/package.json)中加入依赖与 bundle:

{
  "dependencies": {
    "dsh-session-delete": "github:<你的用户名>/dsh-session-delete"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "…其他插件…",
        "dsh-session-delete"
      ]
    }
  }
}

然后在 profile 目录执行 pnpm install,重启 DSH 应用。

使用:设置(齿轮)→ 会话管理

本地开发(file: 依赖)

"dependencies": {
  "dsh-session-delete": "file:D:/workspace/repos/dsh-session-delete"
}

pnpm install 后改 lib/ 里的代码,重启应用即可生效。

结构

  • lib/index.js — Host 半部:在本地 webServer 注册两个路由

- POST /api/session-delete/list{ sessions: [{ sessionId, live, running }] } - POST /api/session-delete/delete{ ok, code?, message? } - 文件删除直接使用 node:fs/promisesrm),无需子进程。

  • lib/client.js — 浏览器半部:settings.section 的「会话管理」页,通过 fetch 调用宿主路由。
  • cordis.patch.yml — 把宿主插件行插入组合(宿主半部)。
  • package.jsondsh.client 声明让 Web 端自动发现 lib/client.js

License

[MIT](./LICENSE)