dsh-reclaim: Auditing and Safely Reclaiming Disk Space in DeepSeek Harness

Introduction

The official DeepSeek Harness (DSH) does not reclaim attachments. The original README of @deepseek-ai/dsh-attachment-local states: Images are kept forever. The official delay in reclamation is because restored and forked sessions may share immutable objects. dsh-reclaim solves this problem while respecting this constraint indicated by the official documentation.

What is this

This is a DSH plugin designed to audit and safely reclaim disk space permanently occupied by DeepSeek Harness. It is maintained by gankudadiz and licensed under the MIT License.

Core Features

The plugin provides the following capabilities:

  1. Audit Objects: Audits the space occupied and usage status of sessions, attachments, and rebuildable caches.
  2. Risk Grading: Classifies data into risk categories based on rules: Safe (can be batch cleared), Needs Confirmation (requires individual review), Dangerous (cannot be cleared), and Unclassified (report only).
  3. Quarantine Zone: Cleanup operations do not delete data directly but move it to a plugin-provided quarantine zone where it can be restored at any time.
  4. Read-only Agent Tools: Provides read-only Agent audit tools, allowing models to query data but not delete it.
  5. Automatic Layout Adaptation: Automatically selects the cache layout (supports DSH 0.1.6+).

Installation and Activation

It must be installed in a profile with a web layer (e.g., the web template); otherwise, a waiting for service: connection error will occur.

  1. Install the Plugin:
    dsh plugin --profile web add "git+https://github.com/gankudadiz/dsh-reclaim.git#main"
    dsh web
*Note: Since it has not been published to npm yet, you must install it using the git URL method above.*
  1. Access the Interface:
    After installation, navigate to Settings -> Space Reclaim to access it.

  2. Health Check:
    Verify that the service is running properly:

    curl -b <session cookie> http://127.0.0.1:<port>/api/dsh-reclaim/health

Notes

  1. DSH Version Compatibility: DSH is in the developer preview stage, and breaking changes regarding compatibility may exist. The plugin currently supports 0.1.5-rc.1 to 0.1.5-rc.3, 0.1.6-*, and 0.1.7-rc.1.
  2. What it Does Not Handle: This plugin does not clean up logs, temporary files, or backup directories, nor does it manage plugin dependencies or perform scheduled automatic cleanups.
  3. Agent Permissions: Audit tools on the Agent side are query-only; data deletion is not permitted.
  4. License: Uses the MIT License.

License

MIT

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

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

Xiaoye