dsh-memento: Bounded File Memory for Local Agents

Introduction

Local agents often face the issue of context loss during operation. Traditional memory solutions typically rely on vector databases or embedding models, adding complexity to the infrastructure. The DeepSeek Harness (DSH) plugin dsh-memento offers a file-based bounded memory approach. It does not rely on embeddings, vector storage, or LLM calls, managing state solely through the file system. This makes it suitable for local development scenarios that prioritize controllability and lightweight operation.

What is it

dsh-memento is a DeepSeek Harness plugin maintained by user janpauldahlke. It provides bounded file memory for local agents. Core data is stored in the ~/.dsh/memory/ directory, injected via ME.md (personal profile) and project MEMORY.md (project memory), and supplemented by an inbox mechanism for handling temporary drafts.

Core Features

The plugin provides a Memory interface in the right sidebar of the DSH Web UI, primarily offering the following capabilities:

  • File Editing & Injection: Directly edit ME.md and project files via the right sidebar. Edited content serves as an injection layer, allowing the Agent to read it in new sessions.
  • Inbox: Provides a temporary draft area. When Remember this: is triggered in chat or the memory_remember tool is used, content is appended to the inbox. The inbox is append-only and never injected; it is strictly for the Agent to read.
  • Human Promotion: The Agent never automatically writes to the injection layer. Users must “promote” content from the inbox to ME.md or project drafts via the right sidebar; changes only take effect after saving.
  • Tool Support:
    • memory_remember: Appends a line of text to the inbox.
    • memory_history_search: Performs read-only “archaeological” searches on past session logs.

Installation & Activation

Installing this plugin requires Node.js version >= 20 and ensuring the DeepSeek Harness Web Profile is running.

dsh plugin --profile web add dsh-local-memento

After installation, restart dsh web and refresh your browser.

Typical Usage

  1. Record Information: Enter Remember this: <specific content> in the DSH chat, and the content will enter the inbox.
  2. Organize Memory: Open the Memory interface in the right sidebar, select lines from the inbox, and click “↑ promote” to move them to ME.md or a project file.
  3. Query History: Use the memory_history_search tool to search previous session records.

Use Cases & Notes

This plugin is suitable for local agent scenarios that require clear memory boundaries and do not wish to introduce vector databases or embedding services.

  • Permissions & Source: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installation.
  • Injection Mechanism: Remember that the Agent never writes to the injection layer (ME.md, etc.); all promotion operations must be performed manually in the right sidebar.
  • No LLM Dependency: The plugin performs no internal LLM calls; all logic is based on file reading and writing.

Conclusion

dsh-memento provides a controllable memory management solution for local agents through simple file system operations. For more details and source code, please visit: https://github.com/janpauldahlke/dsh-memento

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

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

Xiaoye