The “archive” operation in DSH usually only modifies markers and does not involve cleaning up disk files. After long-term use, the $DSH_HOME/sessions/ directory tends to accumulate a large amount of original text that is no longer viewed. Targeting this pain point, the Archive Keeper plugin automatically extracts structured key points after a session is archived and provides a panel that allows you to decide the final destination of each archived item individually (keep original, keep summary only, or delete completely, with recoverable deletion).
Core Functions¶
Automatic Extraction¶
The plugin polls the archive list. As soon as a new archived session appears, it automatically triggers the extraction process, transforming the entire session into structured key points, including summaries, decisions, facts, deliverables, to-dos, and items that can be voided.
Retention Control¶
In the “Archive Keeper” panel at the top of the conversation, each archive is an expandable card. You can choose:
* Keep Original: Make no changes.
* Keep Summary Only: Delete the original text and retain only the extracted key points.
* Delete Completely: Move the original text and summary to the trash.
* Restore Original: Move the original text previously moved to the trash back.
Classification and Rules¶
The archive list is categorized into four levels: Year → Date → Time Slot → Tag. You can open the personalization panel via the ⚙ icon in the upper right corner to define custom “worth keeping” rules (via tags, collection rules, or auto-tagging). Sessions that match these rules will be prioritized for retention.
Trash and Security¶
All deleted content (original text and summaries) is first moved to the trash/ directory. The panel top displays the trash storage usage, supporting item-by-item restoration or emptying. Emptying the trash is the only irreversible operation.
Real-time Counting and Retry¶
The panel displays four real-time numbers: Total Archives, Extracted, Unextractable, and Pending Extraction. Extraction failures are automatically retried up to 3 times. Sessions with lost original text are cleaned up automatically.
Installation and Enablement¶
Install the plugin package using npm:
npm i git+https://github.com/Isle-ux/dsh-archive-keeper-plugin.git
After installation, add the plugin to the profile’s dsh.profile.bundles (or load it according to your DSH version’s plugin installation method). This package includes all runtime code and does not require additional runtime dependencies to be installed.
Usage Example¶
- Click the ⚙ icon in the upper right corner to open the personalization panel.
- In the “Archive Keeper” panel, click on cards to perform operations (such as unarchive, delete, etc.).
Notes¶
- Environment Requirements: Node.js ≥ 20 is required. Effective only in Desktop / Web versions; Headless/TUI is not supported.
- Version Verification: The development and verification environment is DSH 0.2.0-rc.2.
- Compatibility: This plugin will not conflict with other plugins.
- License: MIT.
Ecosystem Background¶
The DeepSeek Harness (DSH) philosophy is “Everything is a plugin.” The community directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / Huanfang.