DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-session-tidy

d

dsh-session-tidy

Manifest valid

One-click tidy for the DSH session list: archive blank sessions and sessions inactive for N days, keep the newest N per workspace, clean truncated or instruction-prefixed titles, and disambiguate dupl

UI (client)hasBundlePatch

dsh-session-tidy — Session Tidy

A real, installable DeepSeek Harness plugin that tidies the sidebar session list in one click.

A resident “整理会话” chip sits just above the composer. It opens a preview sheet of proposed changes — archive blank sessions, rewrite truncated or instruction-prefixed titles, disambiguate duplicates, optionally archive stale sessions — and applies the selected ones in one action. Every batch can be undone.

Session tidy

What it tidies

RuleActionDefault
Blank sessions — never received a prompt (blank projection, or 0 turns with no first prompt)archive (never delete)✅ on
Title cleanup — strips “you are a …” role preambles, code fences, URLs, newlines and truncation ellipses; caps at 30 display columnsrename✅ on
Duplicate titles — keep the most recently active one, suffix the rest with (2)rename⬜ off
Keep newest N per workspace (3/5/8/12, default 5) — archive the tail of each registered workspacearchive✅ on
Stale sessions — no activity for N days (1/3/7/14/30/90, default 7)archive✅ on

Safety rails: archived, pinned, running and subagent-owned sessions are skipped; the session you have open and anything active within 5 minutes are skipped; at most 40 renames per run; the last five batches are recorded in data/undo.json for one-click undo.

Install

Requires DSH >= 0.2.0, Node >= 20.

dsh plugin --profile <profile> add link:/absolute/path/dsh-session-tidy

Then restart DSH Desktop (the Host half loads at boot). The Web half alone can be refreshed.

Data & privacy

Reads ~/.dsh/storages/session_projcache/sessions/*.json (titles, first prompts, turns, blank flag, last prompt time) and ~/.dsh/storages/workspace.json (workspace membership, archived/pinned state). No network, no model calls. Writes happen only after you press the primary action, and only touch titles and archive markers.

HTTP surface

PathMethodPurpose
/session-tidy-api/statusGEThealth, caches, last apply
/session-tidy-api/planGETtidy plan (?refresh=1 bypasses the 10 s cache)
/session-tidy-api/applyPOST{batchId?, actions:[…]}
/session-tidy-api/undoGET/POSTundo ledger / undo last batch

Mutations go through sessionController.rename() and workspaceRegistry.archiveSession().

Access control: prefix routes bypass DSH's Connection admission, so every request goes through ctx.connection.requestRejection(req) (Host/Origin checks plus the browser credential) and is rejected with 401/403 when that fails; writes additionally require content-type: application/json and an x-dsh-session-tidy: 1 header, which a cross-origin page cannot forge without a CORS preflight.

Development

node build.mjs
node verify/plan.test.mjs && node verify/routes.test.mjs && node verify/client.test.mjs

Host-side changes require a DSH restart (ESM caching). See STATUS.md for the verification record and README.zh-CN.md for the full Chinese documentation.

Comments

Loading…

Similar plugins

dsh-session-delete

Session management for DSH: archive or delete one session, archive/delete all sessions in a workspace, and restore archived sessions from the settings page — archiving backs up workspace metadata and

Sessions & MessagesManifest valid

★ 0

↓ 283/wk

dsh plugin --profile web add dsh-session-delete

Keeps DSH session titles in DATE | CATEGORY | NAME with turn-aware auto-retitle, manual refresh, and hover cost/duration.

Sessions & MessagesManifest valid

★ 1

MIT

JavaScript

dsh plugin --profile web add dsh-session-title-stamp

Settings section for archived sessions: browse by workspace, search, batch unarchive with the sidebar updating live, and optional auto-archive rules (idle days, keep-last-N per workspace) with a dry-r

Sessions & MessagesManifest valid

★ 0

↓ 114/wk

dsh plugin --profile web add dsh-plugin-archive-manager

by ozjxnxh

Adds delete and multi-select batch delete to the sidebar session menu, removing session chat logs with an automatic backup and one-click undo while leaving workspace files untouched.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Oct 29, 2026

dsh plugin --profile web add dsh-session-trash

by ZilongYang

One Settings page for every DeepSeek Harness session: browse active and archived sessions by workspace, generate a title from the whole conversation for live or archived sessions, archive or restore,

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Nov 5, 2026

dsh plugin --profile web add dsh-session-mng

by EIGHTfs

Session management for DSH: archive/restore, batch & conditional delete, AI auto-rename, interrupted-session auto-resume, workspace grouping, undo last message, repair damaged session logs (seq-gap/EI

Sessions & MessagesManifest valid

★ 1

NOASSERTION

HTML

Oct 21, 2026

dsh plugin --profile web add dsh-session-conductor