DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-session-sweeper

H

dsh-session-sweeper

Manifest valid

DSH plugin, scans and manages all terminal sessions on the local computer (Claude Code, Codex, Workbuddy, DSH, etc.)

UI (client)hasBundlePatch

dsh-session-sweeper — 会话清道夫 (Session Sweeper)

中文说明

Scan, view, and safely clean local AI terminal session histories — Claude Code, Codex CLI, WorkBuddy, and DSH itself — from a dedicated card in the DSH Web UI (Settings → 会话清道夫 / Session Sweeper).

Screenshots

Session listMessage preview
Recycle binSettings

What it does

  • Scan every supported source under your home directory and list sessions with title, project, message count, size, and last-active time.
  • View session contents (user/assistant messages, tool calls) in a paged preview — including DSH logs stored as concatenated zstd frames.
  • Clean selected sessions. The default action is quarantine: the whole artifact (file, or session directory for DSH) is moved into a recycle directory with a manifest recording the original path and a SHA-256 per file. One click restores a batch byte-for-byte.
  • Hard delete is available but requires typing the confirmation phrase DELETE; it leaves an audit tombstone only.

Data safety model

GuardBehavior
Quarantine-firstDefault clean moves artifacts to ~/.hist-sweeper/recycle/<batchId>/ — always restorable
Active guardSessions modified within guardHours (default 24) are skipped unless you explicitly include them
Current sessionThe session served by the running DSH process is never cleanable
Lock detectionFiles that cannot be opened are skipped without aborting the batch
Audit logEvery operation is appended to ~/.hist-sweeper/recycle/log.jsonl and shown in the Recycle tab
ScopeTouches nothing besides session artifacts — never configs, credentials, memory, or todos

Install

From a packed tarball (no build scripts, lib/ is prebuilt and committed):

dsh plugin --profile web add ./dsh-session-sweeper-1.0.0.tgz

From git (lib/ is committed, so no prepare build permission is needed):

dsh plugin --profile web add github:HrxSpace/dsh-session-sweeper

Restart dsh web afterwards and open Settings → Session Sweeper.

Configuration

Both options can be overridden on the plugin row in your profile's cordis.patch.yml:

OptionDefaultMeaning
guardHours24Active-guard window in hours
recycleDir~/.hist-sweeper/recycleQuarantine destination

Test hooks (not for daily use): DSH_SWEEPER_HOME / DSH_SWEEPER_RECYCLE redirect the scanned home and recycle root — used by the test suite to run against synthetic trees.

Uninstall

dsh plugin --profile web remove dsh-session-sweeper

The recycle directory and audit log survive uninstalling (they are your recovery path); delete ~/.hist-sweeper manually once you no longer need them.

Permissions & network

  • Reads: ~/.claude/projects/**, ~/.codex/sessions/** (incl. archived_sessions), ~/.workbuddy/projects/**, ~/.dsh/sessions/**
  • Writes: only the recycle directory
  • Serves a same-origin-only JSON API (/sweeper/api/*) on the DSH web server; cross-origin requests are rejected
  • No network access, no lifecycle scripts, zero runtime dependencies beyond node builtins (react is provided by the DSH client runtime)

Development

# build (any tsdown ≥0.22 works; lib/ output is committed)
npx tsdown

# tests (node:test + tsx, zero package installs)
node --import tsx/esm --test tests/sweeper.test.ts

# dev instance with the local build overlaid
pnpm dsh --profile web --patch ./cordis.dev.yml --port 3180 --no-open

License

MIT

Compatibility

DSH 0.2.1-alpha.3: failedDSH 0.2.1-alpha.5: failedDSH 0.2.1-rc.1: failed

Versions

Latest versionPublishedSize
1.0.10——

Comments

Loading…

Similar plugins

dsh-assembly.resume

Import local Codex CLI/Desktop, Claude Code CLI, and Claude Desktop conversations into DSH with project grouping, semantic history, and tool activity; bind an existing or replacement workspace and con

Sessions & MessagesManifest valid

★ 0

dsh plugin --profile web add dsh-assembly.resume

by ShiraGawaAnri

DSH 配置档插件(profile bundle):像 Claude Code / Codex Desktop 一样,在输入框输入 `@` 提及**当前会话所在工作区**的文件/目录,支持带优先级的模糊搜索与键盘补全。

Manifest valid

★ 0

MIT

JavaScript

Aug 16, 2026

dsh plugin --profile web add @dsh-external/dsh-at-mention

by Norman-else

Run Claude Code as a first-class DSH conversation while preserving its native agent loop, tools, skills, hooks, and MCP integrations in DSH.

Workflow & AutomationManifest valid

★ 17

↓ 564/wk

MIT

TypeScript

Oct 24, 2026

dsh plugin --profile web add @norman-else/dsh-claude

by BaiZhi967

DSH 会话导入插件:按工作区浏览本地 ZCode 的会话,勾选或整工作区导入 DeepSeek Harness · Import local ZCode conversations into DeepSeek Harness

Development & InfrastructureTerminal & ClientsManifest valid

★ 3

MIT

JavaScript

Sep 30, 2026

dsh plugin --profile web add dsh-plugin-zcode-import

Personal coding assistant that schedules, follows up on and verifies local Codex or Claude Code tasks from DSH, with WeChat, WeCom and Feishu remote channels.

Workflow & AutomationManifest valid

★ 1

MIT

TypeScript

dsh plugin --profile web add dsh-nexus

by forwardzz

DeepSeek Harness 插件:把 OpenCode 桌面端(opencode.db)的历史会话按各自原本的工作目录导入为 DSH 原生会话

Manifest valid

★ 0

MIT

JavaScript

Oct 6, 2026

dsh plugin --profile web add dsh-opencode-session-sync