Preface¶
The extensibility of DeepSeek Harness (DSH) is embodied by its plugin ecosystem. During debugging or testing, session data cleanup is a common operation. The @apherchin/dsh-session-delete plugin adds a functional entry point to DSH, allowing users to perform deletion operations via the session row menu, rather than relying solely on command lines or database management.
What is it¶
This is a client-side plugin maintained by apherchin. It leverages DSH’s Cordis patch mechanism to add a “Delete conversation” menu item to the session list, handling the persistent storage of sessions and the cascading relationships of sub-sessions.
Core Features¶
- Permanently delete session disk data: After performing the deletion operation, the local files corresponding to the session will be cleared.
- Cascade deletion of sub-agent sessions: When deleting a main session, it automatically cleans up the associated sub-agent session data.
- Reject running sessions: The plugin checks the session status and rejects the deletion of sessions currently in progress (host + client plugin).
- Copy original session ID: Provides the ability to copy the session ID for troubleshooting or record-keeping purposes.
Installation and Activation¶
The officially provided installation command is dsh plugin add dsh-wonder-tools. The functionality of this plugin has been integrated into the dsh-wonder-tools toolkit. @apherchin/dsh-session-delete now exists only as a dependency of this toolkit and is no longer used as a standalone plugin.
Typical Usage¶
- Install
dsh-wonder-tools. - In the DSH interface, locate the session row you wish to delete.
- Select “Delete conversation” from the menu for that row.
- The plugin will attempt to delete the session disk data. If the session is currently running, the operation will be rejected.
Applicable Scenarios & Notes¶
- Applicable Scenarios: Suitable for developers who need to thoroughly clean up historical session data and manage sub-agent session structures.
- Permission Description: The plugin runs with the permissions of the current DSH process.
- Maintenance Status: This package has ceased independent maintenance and exists only as a dependency of
dsh-wonder-tools. - License: MIT.
Summary¶
This plugin provides a direct entry point for session management, addressing the need for batch session data cleanup within a graphical interface. As the functionality has been merged, it is currently recommended to install dsh-wonder-tools to obtain this capability.