DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-session-manager

y

dsh-session-manager

Manifest valid

DSH plugin: batch browse, archive, delete and restore history sessions

UI (client)hasBundlePatch

dsh-session-manager

Batch browse, archive, delete and restore your DSH history sessions from a sidebar panel.

DSH stores every history session on disk under DSH_HOME/sessions/<cwd-encoded>/<session-id>/ as a session.v4.jsonl.zstd append-only event log, but the built-in session service exposes no delete or archive API. This plugin fills that gap with a filesystem-level, reversible workflow.

Features

  • Session titles — each row shows the human-readable title DSH gave the session (read from the session/title event inside the log), with the real working directory, origin, last-updated time and log size.
  • Search — filter by title, working directory or id.
  • Subagent filter — subagent sessions are hidden by default; toggle them back on when you need them.
  • Enumerate every history session across all working directories.
  • Multi-select sessions in the sidebar panel and batch-operate.
  • Archive — move sessions out of the active list into a global DSH_HOME/archive/sessions/ directory. Data is preserved verbatim and can be restored any time.
  • Delete — permanently remove sessions (rm -rf). Marked irreversible in the UI and confirmed before running.
  • Restore — bring archived sessions back to their original working directory.

How titles and paths are read

A session log is a run of concatenated zstd frames, one per append, so zlib.zstdDecompressSync alone stops after the first frame. The plugin locates every frame by its 28 B5 2F FD magic bytes and inflates each slice. It then reads:

  • frame 0 — the session header, which carries the real, unencoded cwd (the directory name alone is lossy: both / and a literal - encode to -);
  • the head frames — the first session/title event (measured: always within the first six frames);
  • the tail frames — any later session/title events, i.e. renames (measured: always within the last sixty frames).

The highest seq wins. Results are cached per session and invalidated by the log's mtime and size, so listing 170 sessions costs a few milliseconds after the first scan.

Install

Install the plugin through the DSH plugin manager (Discover → Index sources), or place the package in the profile's node_modules.

Usage

  1. Open the 会话管理 / Sessions entry in the sidebar.
  2. Tick the sessions you want (or use 全选 / Select all).
  3. Choose 归档 / Archive, 删除 / Delete (or 恢复 / Restore in the Archived tab).

Agent tools

The host half also registers four tools for the agent to use directly:

  • session_manager_list — list all sessions and the archive.
  • session_manager_archive — archive a batch by ids.
  • session_manager_restore — restore a batch by ids.
  • session_manager_delete — permanently delete a batch by ids.

Layout

DSH_HOME/sessions/<cwd>/<id>/session.v4.jsonl.zstd   # active sessions
DSH_HOME/archive/sessions/<cwd>/<id>/...              # archived (preserved)
DSH_HOME/archive/sessions-index.json                  # archive index

License

MIT

Comments

Loading…

Similar plugins

dsh-butler-archive

by kira905

DSH web plugin that browses, previews, restores and deletes archived sessions that were moved out of the sessions directory.

Development & InfrastructureSessions & MessagesManifest valid

★ 2

AGPL-3.0

JavaScript

Nov 9, 2026

dsh plugin --profile web add @kira905/dsh-butler-archive

by Yiklek

dsh plugin: view and restore archived sessions from a dedicated page in the web Settings.

Manifest valid

★ 0

MIT

JavaScript

Aug 20, 2026

dsh plugin --profile web add dsh-archived-list

by z1lyA

DSH plugin: manage archived DeepSeek Harness sessions — batch unarchive and safe permanent deletion with attachment reference scanning.

Manifest valid

★ 0

MIT

JavaScript

Nov 3, 2026

dsh plugin --profile web add dsh-session-admin

by leolee9086

DSH plugin: block-level parallel index over session history

Manifest valid

★ 0

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-better-session-query

by DreamStan

A DSH plugin for browsing archived sessions and safely deleting them.浏览归档会话,并安全地关闭、取消归档或删除会话。

Manifest valid

★ 0

MIT

TypeScript

Aug 18, 2026

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

by shuiqian520

DSH plugin: permanently delete a session from the sidebar menu, and retry a user message or an assistant reply.

Sessions & MessagesManifest valid

★ 3

↓ 736/wk

MIT

JavaScript

Oct 17, 2026

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