dsh-quit-delete: DeepSeek Harness Plugin: One-Click Exit and Permanent Deletion of Current Session

Introduction

When using DeepSeek Harness (DSH) for conversations or agent development, sessions can accumulate a large volume of history. By default, these logs are persisted to disk and can be difficult to clean up quickly even when they are no longer needed. In scenarios that prioritize privacy or require strict storage management, manually deleting logs is both tedious and prone to oversight.

dsh-quit-delete is a DeepSeek Harness client plugin that, through the /quit-delete slash command, allows users to permanently remove a session’s stored logs from disk while leaving the current session.

What Is This

dsh-quit-delete is a DSH plugin written by maintainer jing-qifeng. It adds the /quit-delete slash command to the web client. When this command is executed, it stops any work currently running in the session, waits for the agent to enter an idle state, and then deletes the session’s log directory from disk. Because the log directory is removed, the session’s records cannot be recovered.

Key Features

  • Slash command /quit-delete: Type this command in the message input box and press Enter, or select it from the / menu, and a confirmation dialog will appear. Press Enter in the dialog (or click “Delete and quit”) to execute the deletion and quit; press Esc, Space, or click “Cancel” to abort with no action taken.
  • Explicit confirmation form /quit-delete confirm (shorthand /quit-delete con): Skips the dialog and directly executes the deletion. The browser client also sends this form after the user confirms.
  • Using /quit-delete when the plugin is not loaded: Only displays a risk warning and preserves the draft; nothing is deleted.

Installation & Setup

Install from GitHub source (no build step required):

dsh plugin --profile web add github:jing-qifeng/dsh-quit-delete

Install from a local checkout directory:

dsh plugin --profile web add /path/to/dsh-quit-delete

For desktop, use --profile desktop. A Web UI restart is required after the initial installation to load the client module.

Uninstall:

dsh plugin remove dsh-quit-delete

Typical Usage

  1. Type /quit-delete in the message input box and press Enter.
  2. In the confirmation dialog that appears, press Enter (or click “Delete and quit”) to complete the deletion and quit.
  3. To skip the dialog, simply type /quit-delete confirm and press Enter.

Use Cases & Cautions

Suitable for scenarios that require quick cleanup of session records, avoidance of log accumulation, or compliance with privacy requirements.

Note: This plugin runs with the permissions of the current DSH process. Review the source code and license (MIT) before installing. Deletion is irreversible with no recycle bin; the log directory is permanently removed. Attachments (located in $DSH_HOME/attachments/) use content-addressed storage and may be shared across sessions, so they will not be deleted. Projection caches and search indexes are left untouched; they will be rebuilt or realigned based on the persisted list.

In Short

dsh-quit-delete provides a quick and controllable way for users to permanently remove logs from disk while leaving a session, making it well-suited for scenarios that require strict management of session records. Plugin directory: https://www.skillhub.cn/plugins/jing-qifeng/dsh-quit-delete | GitHub: https://github.com/jing-qifeng/dsh-quit-delete

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

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

Xiaoye