DSH Archive Manager: Managing Archived Sessions in DeepSeek Harness

Preface

In the Sessions section of the DeepSeek Harness (DSH) sidebar, there is typically only a single “Show/Hide Archived” toggle for archived conversations. Once a conversation is archived, it becomes difficult to find by date or workspace, and bulk restoration is inconvenient. As the archive list grows longer, maintaining readability with a manual toggle alone becomes challenging.

This document introduces the community plugin DSH Archive Manager (@gsnowdrift/dsh-archive-manager). It provides a list, filtering, bulk unarchive capabilities, and a previewable, reversible auto-cleanup strategy under Settings → Archived Sessions, specifically addressing this management gap.

What Is This?

DSH Archive Manager is published by maintainer gsnowdrift and is categorized as “Memory” in the plugin directory. The current npm package version is 0.2.3, released under the MIT license, targeting DSH 0.2.x Web and Desktop profiles (the Host side has not been verified on pure CLI profiles).

The plugin does not make network requests or collect telemetry. Its read/write scope is limited to archive metadata, the archive collection, the plugin’s own storage within the local profile, and the session log directory after explicit user confirmation.

Core Features

Archive List & Filtering

The settings page allows viewing archived conversations with fields including title, workspace, path, archive time, last activity, source (manual/automatic), and run status. Supported operations:

  • Dropdown filtering by archive date (showing daily counts)
  • Search by title, path, or conversation ID
  • Filter by workspace
  • Option to include sub-agent conversations
  • Pagination: 25 items per page, showing page number and total count

Bulk & Single Operations

  • Select multiple items and Unarchive; conversations return to their original positions in their original workspaces
  • Single item Unarchive
  • Single item Delete: Deletes the session record from disk, requiring double confirmation and is irreversible (occurs only when you actively click)

Auto-Cleanup (Reversible)

Three strategies can be combined and are stored in the plugin storage domain (archive_manager), persisting across restarts. Supports Preview Plan and Run Now.

Strategy Function Default
cleanupEnabled Master switch for scheduled cleanup (runs every cleanupIntervalMinutes minutes, default 30) Off
autoArchiveDays Automatically archive (hide from sidebar) regular conversations idle for more than N days 90 days, 0 to disable
retentionDays Automatically unarchive (return to sidebar) conversations archived for more than N days 180 days, 0 to disable
capCount When archive count exceeds N, automatically unarchive the oldest ones 0 to disable
includeSubagents Whether sub-agent conversations participate in cleanup Off

Auto-cleanup does not physically delete session logs: it only moves conversations between the archive collection and sidebar visibility; history and workspace attribution are recoverable. Running conversations are always skipped and will not interrupt active tasks.

Installation & Activation

Web profile installation:

dsh plugin --profile web add @gsnowdrift/dsh-archive-manager

For desktop, replace web with desktop:

dsh plugin --profile desktop add @gsnowdrift/dsh-archive-manager

After installation, restart DSH or reopen the client to access the management interface under Settings → Archived Sessions.

The plugin runs with the current DSH process privileges. Before installation, it is recommended to review the source code and license at the GitHub repository to ensure compliance with your environment policies.

Typical Usage

  1. Open the sidebar Settings (gear icon) and select Archived Sessions in the left column.
  2. Select an archive date from the top dropdown, or use search and workspace filters; titles are folded from the session log, and during cold starts may initially show the conversation ID, replacing it with the title automatically after a few seconds.
  3. Select several rows and click Unarchive N Items; the conversations return to their original positions.
  4. Adjust strategies in the “Auto-Cleanup” card below → Save Settings → Preview Plan to confirm impact → then Run Now.

If you extend DSH through other means, the Host side exposes remote.archiveManager (list, getSettings, setPolicy, unarchive, deleteSessions, preview, runCleanup, etc.), which can be integrated with the same logic as the settings page; general users only need to use the settings interface.

Use Cases & Notes

Who is this for: Developers who have been using DSH long-term, have many archived conversations, and need to find history by date or workspace, restore in bulk, or want to use reversible strategies to automatically archive idle conversations and control the archive count.

Known limitations (excerpted from official documentation):

  • Archive time is based on the moment the plugin observes the conversation entering the archive collection; for conversations archived before the plugin’s first launch, the conversation header creation time is used as a fallback.
  • Rare conversations with no title events display as “(No Title)” followed by an ID.
  • If session logs have been deleted by external tools, the list may show orphan entries that cannot be deleted; the plugin periodically cleans such entries from the archive collection without deleting other files on disk.
  • The delete operation is non-atomic; the plugin uses tombstones and similar methods to prevent the list from continuing to display deleted conversations.
  • The entry is registered under settings.section; the section may not appear if the host changes slots.

The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page and dsh-plugin.org are community collections and have no official affiliation with DeepSeek / High-Flyer.

Conclusion

DSH Archive Manager turns “invisible and unrecoverable after archiving” into a browsable, filterable, and bulk-restorable system, using previewable auto-cleanup to reduce list bloat without deleting logs by default. You can install it from the directory page or GitHub when needed:

  • Directory Page: https://www.skillhub.cn/plugins/gsnowdrift/dsh-archive-manager
  • GitHub: https://github.com/gsnowdrift/dsh-archive-manager
羽毛球分组比赛记分
小程序二维码

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

Xiaoye