DSH Chat Prune: View, filter, and safely prune conversations in DSH NEXT

Preface

When using DSH NEXT for agents or everyday conversations, sessions in the sidebar accumulate over time: titles look similar, they are hard to locate across workspaces, and when you want to archive in bulk or clean up by time, you often have to click through them one by one. The risk of deleting the wrong item or missing a backup is also higher. The system’s built-in session list focuses on opening and continuing; it offers limited support for “seeing where a session came from and its storage status, retaining by rule, and confirming before deletion.”

The following introduces the community plugin DSH Chat Prune (repo Cans518/dsh-chat-prune). It adds single-item deletion and a “Manage Conversations” entry to the DSH NEXT sidebar, and provides previews, optional backups, and per-item result feedback before performing deletions or batch operations.

What This Is

DSH Chat Prune is a DSH community plugin released by the maintainer Cans518 and categorized as a client-side plugin. Its purpose is to help organize conversations in DSH NEXT: unified viewing, batch archiving, rule-based retention, and pruning after confirmation.

The plugin is not affiliated with DSH. Before installing or using it, review the repository source and the MIT License. The plugin runs under the permissions of the current dsh process; deletions and backups operate on local data directories. Confirm the source is trusted before installing.

Core Features

The capabilities below come from the project README’s feature descriptions.

Feature Description
Sidebar entry Delete a single conversation or open the management window from the bottom; adapts to expanded and collapsed sidebar states
Search and filtering Find by title, workspace, session ID, source, status, update time, and size
Batch management Select across pages and batch archive, unarchive, pin, unpin, or delete
Retention rules Keep the most recent N entries per workspace; optionally restrict candidates to those older than a specified number of days
Multi-source management Merge multiple DSH data directories; connect to their respective local hosts and operate uniformly
Preview and backup Verify the full target list before execution, receive per-item result feedback, and stop operations that have not started yet
Theme adaptation Follows the host’s light, dark, and custom themes

Data behavior notes: Archiving retains records; deletion removes local records. Single-item deletion does not back up by default; batch deletion enables backup by default. When backup is enabled, if backup fails the item is not deleted. Backups are stored under deleted-sessions/ in the corresponding data directory. Pinned, running, not-safe-to-release, missing-record, or unknown-time conversations are protected when pruning by rules.

Runtime Environment

Check the README’s environment notes before installing.

  • OS: Online deletion currently supports Windows only; the README states that macOS / Linux do not support online deletion yet.
  • Host: DSH NEXT; requires the client plugin, workspace service, and session persistence service.
  • Installer tool: The dsh command provided by the desktop app.
  • Node.js: The package includes prebuilt artifacts, so typical users do not need local compilation; engines.node in package.json is >=20, and Node.js 24 is recommended for development.

engines.dsh in package.json is >=0.2.0-rc.2 <0.3.0; host interfaces may change across versions. See technical-reference.md for boundary details.

Installation and Activation

First initialize the profile: launch DSH NEXT once, then quit normally from the system tray. Then install using the desktop app’s command (the README provides the Release package URL; the current example version is v0.5.0):

dsh plugin --profile desktop add https://github.com/Cans518/dsh-chat-prune/releases/download/v0.5.0/dsh-chat-prune-0.5.0.tgz

Reopen DSH to start using it. The package includes build artifacts and enables the plugin automatically on install; there is no need to clone the repo, compile, or manually add YAML mount entries.

If you download .tgz and SHA256SUMS.txt from Releases and verify them before installing locally:

dsh plugin --profile desktop add "C:\Downloads\dsh-chat-prune-0.5.0.tgz"

If the terminal cannot find dsh, enable the command-line entry in the DSH NEXT desktop app and reopen the terminal. When using the Web profile, replace desktop with web and install to the profile you actually use.

Uninstall (does not restore already deleted records and does not clean up existing backups):

dsh plugin --profile desktop remove dsh-chat-prune

Typical Usage

Delete a single conversation

Expand the workspace on the left, hover over a specific session row, and click the trash icon. Verify the target and backup settings before confirming deletion; press Escape or click “Cancel” to abort.

Batch organization

  1. Click “Manage Conversations” at the bottom of the sidebar.
  2. Search or filter records, then select the current page or all filtered results.
  3. Choose an action such as archive, pin, or delete, and click “Preview selected action”.
  4. Review the full target list and then confirm execution; results are shown per item, and you can stop actions that have not started yet.

Prune by rules

In the management window, click “Retention rules”, for example set “Keep the most recent 10 per workspace and only prune entries older than 30 days”, generate candidates, then preview and confirm. “Most recent N” is calculated per entire workspace in each source.

For multi-source connections, filtering rules, backup configuration, and common issues, see the repository’s User Guide; for restoration steps, see the backup and recovery sections in the technical reference.

Use Cases and Precautions

Who it’s for: Windows users who accumulate many sessions in DSH NEXT over time, need batch archiving/deletion by workspace or time, or want to merge multiple local DSH data directories for unified management.

Important notes:

  • Deletions are executed by the host that owns the data directory, and the plugin checks session write ownership; running or not-safe-to-release sessions will be rejected.
  • Additional sources not connected to a host are shown read-only; removing source settings will not delete conversations.
  • Before updating the plugin, quit DSH normally and save any plugin configurations you have modified; then follow the new Release instructions to run dsh plugin --profile desktop add <new package URL> and reopen DSH.

The community plugin directory is an independent site and is not officially affiliated with DeepSeek or High-Flyer. When selecting plugins, evaluate permissions and data security on your own.

Further Reading

DSH Chat Prune brings “see before you delete, rule-based retention, and batch previews” into the sidebar and management window, making it suitable for periodic session housekeeping in DSH NEXT. Specific behavior is subject to the repository README and version Releases.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye