dsh-experience-library: Experience Validation Solidification Layer

Preface

DeepSeek Harness (DSH) extends its capabilities through a plugin mechanism. Existing memory plugins (such as dsh-meow-memory) primarily address the issue of “remembering” declarative information. Building on this, this plugin aims to solve the problem of remembering “the right way to do things”—procedural experience. It achieves this by real-time collection, processing, verification, and solidification, transforming AI’s operational processes into reusable “skillbooks” (技能书), thereby filtering out hallucinations and solidifying successful experiences.

What It Is

dsh-experience-library is a plugin that serves as an experience verification and solidification layer, developed by maintainer libiwolve. It provides DSH with a closed-loop system: it collects raw data from the event stream, processes it semi-automatically or fully automatically, validates its effectiveness through a three-layer verification mechanism, and finally solidifies it into skillbooks for future session invocation.

Core Features

The plugin implements a closed loop of experience through the following core modules:

  • Real-time Collection: Listens to the full session/event event stream and automatically tags and persists data at each turn or end event without consuming extra tokens.
  • Scheduled Aggregation: Recalculates stats.json every 30 seconds and provides a GET /experience-library/stats interface for real-time statistical viewing.
  • Semi-automatic Processing: Refines the pending processing queue into skillbooks using the experience_refine tool.
  • Fully Automatic Task Dispatch: Includes idle detection and batching mechanisms for error/search samples, automatically triggering refinement tasks during off-peak or idle times.
  • Location Indexing: Generates locate-index.json to reduce repetitive file location operations through partial reading and writing (achieving a baseline optimization of approximately 21.3%).
  • Skillbook Library: Comes with 10 experimental experience skillbooks (in YAML format), covering scenarios such as log repair, plugin registration, and envelope protocols, serving as a reproduction benchmark.
  • Adapter Mechanism: Not tied to a specific memory plugin; it interfaces with the “lesson layer” of any memory plugin via adapters, achieving logical decoupling.
  • Benchmark Validation: Provides experimental data showing that the experience library can increase success rates from 60% to 100% and reduce time consumption by 4.7 times on complex tasks.

Installation and Activation

Prerequisites: DSH must be installed and the profile name confirmed (default is web).

Install using the official CLI command:

dsh plugin --profile web add dsh-experience-library

After installation, restart the dsh web service. The “Experience Library” tab will be visible on the settings page. For manual installation, please refer to the GitHub repository instructions. Note that the plugins directory may need to be created manually.

Typical Usage

The plugin provides both REST interfaces and command-line tools.

1. View the skillbook list

GET /experience-library/skills

2. View aggregate statistics

GET /experience-library/stats

3. View the pending processing queue

GET /experience-library/pending

4. Manually trigger a dispatch check

GET /experience-library/dispatch?force=1

5. Edit and write back skillbooks

PUT /experience-library/skills

6. Use CLI tool to refine experience

experience_refine tool(list/done)

Applicable Scenarios and Notes

  • Applicable Scenarios: Suitable for scenarios requiring the handling of complex, multi-step, or specific domain tasks. The experience library significantly improves performance on “unknown pitfalls,” raising success rates from 60% to 100%.
  • Notes: The plugin runs with the permissions of the current DSH process; it is recommended to check the source code before installation. The current adapter only supports meow-memory. The plugin is licensed under MIT.

Brief Conclusion

Through the “Collection - Processing - Verification - Solidification” closed loop, the experience library transforms scattered session logs into structured skillbooks. For DSH users seeking high reliability and efficiency, it is a powerful tool for enhancing DeepSeek’s performance on complex tasks.

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

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

Xiaoye