SuperLcm for DSH

Introduction

The core philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin,” but native context management often has limitations when handling long conversation chains or when precise verification of historical decisions is required. SuperLcm for DSH is a plugin designed for this purpose; by saving complete original text in the background and generating hierarchical summaries, it resolves the issue of agents’ dependence on long-term historical memory.

What is SuperLcm for DSH

This is a model inference plugin developed by maintainer yu381792. It stores original text, summaries, and settings in a local database and supports summary generation using vendors and models already configured in DSH. The plugin is released under the MIT License, with the current version being 0.5.35.

Core Features

  1. Full Preservation of DSH Events: Saves all conversation and tool records by event ID for subsequent verification.
  2. Background Hierarchical Summarization: Chunks the original text by approximately 20K tokens, generates summaries, and merges them into a higher-level directory for quick location.
  3. Precise Recall: Provides a set of tools supporting history search, directory viewing, and original text reading.
  4. Optional Compression Takeover: When a specified ratio (default 80%) is reached, it prepares summaries in the background to replace older context, while retaining recent original text.

Installation and Enablement

This plugin requires Node.js 22.16+, and the tested host version is DSH 0.2.1-alpha.1. Installation steps are as follows:

npm pack
dsh plugin --profile web add ./SuperLcm-0.5.35.tgz

After installation, restart the DSH host. Navigate to “Plugins → SuperLcm → Summary Settings,” select a model, and enable background summarization. The compression takeover feature is configured in a separate “Compression” page.

Tools and Usage

The plugin provides the following tools:

  • lcm_find: Searches archived sessions and original text
  • lcm_outline: Views the hierarchical summary directory of a session
  • lcm_read: Reads the complete original text by event ID
  • lcm_grep, lcm_describe, lcm_expand, lcm_expand_query, lcm_reindex, lcm_doctor: Used for index consultation and maintenance

Important Notes

  • Data Storage: Original text, summaries, and settings are saved in a local database on the machine running DSH. The default path is $DSH_HOME/SuperLcm/lcm.sqlite (uses ~/.dsh if DSH_HOME is not set). Custom file paths are supported via DSH_SUPERLCM_DB.
  • Remote Access: Remote browsers read settings via an authenticated DSH connection.
  • Windows Compatibility: A code compatibility review for Windows has been completed, but physical machine testing has not been performed.
  • Dependencies: Summary generation uses the model vendors configured in DSH.

Conclusion

SuperLcm for DSH provides DSH with complete context memory capabilities through a local database and hierarchical summarization mechanism. For developers who need to track long-term tasks or precisely verify historical details, this is a practical tool.

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

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

Xiaoye