DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-session-cleaner

T

dsh-session-cleaner

Manifest valid

DeepSeek Harness 已归档会话管理与新预设续接插件。Archived-session management and preset continuation plugin for DeepSeek Harness.

UI (client)hasBundlePatch

dsh-session-cleaner

English | 简体中文

An archived-session management plugin for DeepSeek Harness. It adds an Archived Conversations page to Settings with restore, safe deletion, leftover cleanup, and continuation under a new agent preset.

The plugin does not replace existing menus or rewrite a source session's header or event history. Its UI uses the host's semantic design tokens and follows the active theme.

Features

  • List archived conversations by workspace with title, creation time, log status, and live status.
  • Display each session's effective preset and flag a missing or broken source preset.
  • Restore a conversation to its original workspace, with immediate official-sidebar updates.
  • Permanently delete an archived conversation through a rollback-aware quarantine and commit flow.
  • Clean ghost archive entries, orphan workspace slots, orphan projection-cache rows, and quarantined logs.
  • Create a full-history continuation with any available system or user preset while preserving the archived source.

Requirements

  • A DeepSeek Harness release compatible with 0.1.0-rc.6.
  • Node.js and npm.
  • The dsh Web profile; this plugin's client bundle targets the Web platform.

Installation

Clone and build the repository:

git clone <repository-url>
cd dsh-session-cleaner
npm install
npm run build

Enter the local plugin directory, add it to the dsh Web profile, then restart dsh web:

cd path\to\dsh-session-cleaner
dsh plugin --profile web add .
dsh web

To uninstall:

dsh plugin --profile web remove dsh-session-cleaner

Usage

  1. Open dsh Settings and select Archived Conversations.
  2. Select Restore to return a conversation to its original workspace.
  3. Select Delete and confirm to permanently remove its log and registry data.
  4. Choose a target preset and select Continue with preset to create a new session with the complete inherited history.
  5. Select Clean leftovers to remove safely identifiable residue from earlier operations or external state changes.

Deletion is permanent. A live session is never deleted. If the host still owns a session, restart dsh and do not open that session again before deleting it.

Data Safety

Deletion follows this order:

verify archived + not live
  -> rename log into quarantine
  -> commit workspace registry
  -> commit projection cache
  -> purge quarantined log

If the registry or projection-cache write fails, the plugin stops and attempts to roll back prior changes. If logical deletion commits but final file cleanup fails, the quarantined log remains under $DSH_HOME/storages/.dsh-session-cleaner-trash/ and can be removed by Clean leftovers.

Sweep reads every required state before it starts writing. Any prerequisite read failure aborts the cleanup. A staged write failure also stops later stages and returns the completed counts.

Every POST request requires a plugin-specific sentinel header. The host also validates Origin, Sec-Fetch-Site, session-id syntax, and a 64KB request-body limit.

Continue With a New Preset

Continuation creates a lineage child through the public ctx.agents.create and ctx.agentPresets.mount services:

  • the seed contains the source session's complete durable event prefix;
  • a target agent-preset/selected boundary is appended;
  • metadata records parentSession, seedLength, and the target agentPreset;
  • the child is attached to the source workspace after creation;
  • the source log, header, and archive state remain untouched.

Real Web validation confirmed that the complete history renders, the target preset survives a cold restart, and the source log hash remains unchanged.

Development

npm run build
npm test
npx tsc --noEmit -p tsconfig.json

npm test cleans and rebuilds lib/ before running the pure-logic and fake-host route tests. Prebuilt Host and Client bundles, declarations, and sourcemaps live in lib/ and are intentionally committed.

See plugin-design.md for the detailed transaction, security, and architecture decisions.

License

MIT

Compatibility

DSH 0.1.5-rc.2: errorDSH 0.1.5-rc.1: errorDSH 0.1.5-alpha.2: errorDSH 0.1.5-alpha.1: errorDSH 0.1.3-alpha.2: errorDSH 0.1.2-rc.1: errorDSH 0.1.2-alpha.5: errorDSH 0.1.2-alpha.4: errorDSH 0.1.2-alpha.3: errorDSH 0.1.2-alpha.2: error

Versions

Latest versionPublishedSize
0.1.0
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
1.0.0
1.0.1
1.0.2

Similar plugins

dsh-archived-sessions

by MuWinds

DeepSeek Harness 插件-归档会话管理,支持释放、清除归档会话

Sessions & MessagesManifest valid

7

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add @muwinds/dsh-archived-sessions

by keepermttl

DeepSeek Harness 归档会话管理插件:查看/恢复已归档会话(回到原工作区分组)+ 右上角一键关闭 dsh。MIT 许可,欢迎收录到任何插件合集,注明出处即可。

Sessions & MessagesManifest valid

3

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add @dsh-external/dsh-archive-viewer

by lanlandeli

DeepSeek Harness 会话管理插件|归档与恢复、批量操作、工作区分组、子代理关系、活动详情、记录目录与安全文件清理

Manifest valid

3

TypeScript

Aug 18, 2026

dsh plugin --profile web add dsh-conversation-manager

by imrascal

DeepSeek Harness归档会话管理插件

Sessions & MessagesManifest valid

4

MIT

JavaScript

Sep 8, 2026

dsh plugin --profile web add @imrascal/dsh-archive

by TheHeartFickle

DSH 会话管理插件 —— 对话回退 + 归档会话,长会话可回滚、可整理。

Manifest valid

0

MIT

JavaScript

Sep 11, 2026

dsh plugin --profile web add @the-heart-fickle/dsh-session-manager

by Vim0x3c

DeepSeek Harness 会话管理设置面板:列出本机全部会话(运行中/空闲/已归档),支持继续会话、预览大纲、删除会话 | Session management settings section for dsh web: resume, outline, and delete any session

Manifest valid

4

2.4k/wk

MIT

TypeScript

Aug 21, 2026

dsh plugin --profile web add dsh-session-manager