DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-delete-archived-session

o

dsh-delete-archived-session

Manifest valid★ 1

列出并删除 DSH 已归档会话:默认移入回收站可恢复,带二次确认与日志归属校验。

hasBundlePatch

dsh-delete-archived-session

一个 DSH 插件:列出并删除已归档的会话。 DSH 本身只有「归档」和「取消归档」两个操作。归档只是把会话藏起来,日志永远留在磁盘上,官方没有任何办法把那块空间收回来。

安全设计

删会话就是把聊天记录销毁掉,所以这个插件刻意做得很保守。

1.只删已归档的。

2.必须明确确认。

3.必须先证明归属。

4.不跑出根目录。

5.默认可以恢复。

6.顺手清掉归档记录。

7.DSH不崩。

安装

这是一个标准的 DSH 插件包:package.json 里声明了 dsh.bundle.patch,cordis.patch.yml 负责插入一行。

方法一(推荐):在对话里说一句「把这个插件装上」,让 AI 调用插件管理器安装。

方法二:自己手动加。在 profile 的 package.json 里加依赖并登记 bundle:

{
  "dependencies": { "dsh-delete-archived-session": "file:./dsh-delete-archived-session" },
  "dsh": { "profile": { "bundles": ["dsh-delete-archived-session"] } }
}

装好后需要重启 DSH 才生效。

配置

插件不导入 Node 标准库以外的任何东西——它注册的是朴素的工具/命令描述对象,也不接受 schemastery 的 Config。这样做是为了不管 profile 怎么提升 DSH 自身的依赖,它都能挂载成功。

配置因此走环境变量:

环境变量默认值含义
DSH_DELETE_ARCHIVED_SESSIONS_ROOT$DSH_HOME/sessions要操作的会话根目录
DSH_DELETE_ARCHIVED_SESSIONS_TRASH<根目录>/../.deleted-sessions删除时移入的回收站
DSH_DELETE_ARCHIVED_SESSIONS_PERMANENT不设(允许永久删除)设为 0、false 或 no 则禁止永久删除,强制走可恢复路径

$DSH_HOME 的读取方式和 DSH 本身一致:先看 $DSH_HOME,没有就用 ~/.dsh。

Comments

Loading…

From the same category

billion-context

by ranxianglei

基本稳定可用 100K tokens is enough. Universal context-compression proxy for ALL AI coding agents,10w上下文足矣

Sessions & MessagesManifest valid

★ 1.8k

↓ 619.8k/wk

MIT

TypeScript

Oct 18, 2026

dsh plugin --profile web add billion-context

A DeepSeek coding agent harness: persistent shell, Ultra subagents, auto approval, Chrome MCP and session telemetry

Sessions & Messages

★ 1k

MIT

JavaScript

Index only — not installable

by Han-1413141

DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch

Sessions & MessagesManifest valid

★ 445

↓ 27.8k/wk

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add dsh-cost-meter

by Nwflower

Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable se

Sessions & MessagesManifest valid

★ 237

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-chat-import

by Totoro-qaq

DeepSeek Harness plugin for previewable cross-preset session migration. Fixed-schema handoffs preserve state, source-model intent, and unresolved images; the original session stays untouched.

Sessions & MessagesManifest valid

★ 163

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add dsh-plugin-bridge

by MichengAI

DSH Archive Manager — 在 DeepSeek Harness 中安全查看、恢复和管理已归档会话 · Safely view, restore, and manage archived sessions in DSH

Sessions & MessagesManifest valid

★ 163

↓ 17k/wk

Apache-2.0

JavaScript

Oct 18, 2026

dsh plugin --profile web add @michengai/dsh-archive-manager