dsh-fount-memory: Fount-style Persistent Memory Recalled Within a Turn

Preface

When conducting long-term conversations or Agent development in DeepSeek Harness (DSH), the model by default only sees content within the current context window. Once a session is closed, preferences, agreements, and confirmed facts that were not explicitly written down are easily lost. Some users write key information into system prompts or external notes, but this is neither convenient for updating by topic nor easy to automatically inject into model requests at the appropriate time.

The following introduces the community plugin dsh-fount-memory (Maintainer: win10ogod, Category: Memory). Referencing the long-term and short-term memory design of Fount characters, it operates within normal conversation turns: it injects named factual memories based on conditions before model requests. By default, it does not automatically inject full conversation traces, nor does it additionally initiate reflection, dream, or autonomous followup/steer turns. Storage and retrieval are completed locally in SQLite without calling the model for these purposes.

What is this

dsh-fount-memory is a persistent memory plugin for DSH, with the current package version 0.2.2 (MIT). It is developed targeting the DSH plugin interface for 0.1.7-rc.2, 0.2.0-rc.2, and 0.2.1-alpha.1, as well as the format v4 message interface. The implementation partially references the named long-term memory, revision tracing, and short-term episode design of the Rika Character Pack; trigger conditions have been modified to structured JSON here to facilitate validation within DSH plugins. It is not a direct import of Fount’s original character memory data.

The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and license on the GitHub repository.

Core Features

Long-term Memory: Named Facts & Trigger Conditions

Long-term memories are managed by name. Writing to an existing name updates the content, while the old version and source context remain in the revision history; deletion removes the history as well. Before a model request, named facts that meet the trigger conditions are injected into the context.

Trigger conditions support: any keyword, all keywords, and specific dates (month-day). README example:

{
  "name": "使用者生日",
  "content": "使用者生日為 7 月 17 日。",
  "trigger": { "any": ["生日", "birthday"], "onDates": ["07-17"] }
}

Short-term Sealing

The plugin retains the most recent 10 non-empty text messages along with their sources, session IDs, turn numbers, and recording times. DSH’s completed status only indicates the end of a turn, not that the task was successful; therefore, these seals are unverified history, not demonstrations of successful tasks. Turns ending in blanks, incomplete todos, interruptions, or failures will not generate new seals. Conversation segments currently only record text; non-text attachments remain in the original DSH session.

Recall Strategy & recallCount

The configuration item recallCount defaults to 0. Under this default value:

  • The automatic recall of named facts is unaffected.
  • Sealed segments are only explicitly retrieved when the model calls fount_memory_search with includeEpisodes: true; general searches default to returning only named facts.

If recallCount is set to a positive integer, legacy raw conversation recall is enabled (selecting segments by vocabulary, temporal cues, and decay, while skipping segments within 20 minutes in the same session). Raw traces may contain unfinished operations and can easily become context for the model to imitate; the README recommends that general development Agents keep this at 0.

Four Model Tools

Tool Purpose
fount_memory_remember Record confirmed facts; reuse the same name when correcting an item
fount_memory_search Search memory; use includeEpisodes: true when sealed history needs to be queried
fount_memory_context View sources and old revisions
fount_memory_forget Forget: first use search to confirm the scope, then use kind: all to delete named memories, historical versions, and conversation segments containing specified strings simultaneously

The tools do not guess facts for the user; sub-agent turns are not automatically sealed. Original DSH session logs are still managed by DSH itself.

What It Explicitly Does Not Do

The plugin does not establish reflection or dream turns, does not call agent.followup() or agent.steer(), nor does it restore sessions during idle time. The suite upgrade itself does not delete existing data; deactivating the plugin does not delete the database.

Installation & Activation

Install into the desired profile in the DSH host environment (example uses web):

dsh plugin --profile web add github:win10ogod/dsh-fount-memory
dsh --profile web --dump-config

dsh plugin installs the package and adds the bundle to the profile; the --dump-config output should show a fount-memory entry. If DSH is already running, a restart is required before use.

The runtime environment requires Node.js >= 22.13.0 (see package.json engines).

Configuration Example

- id: fount-memory
  name: dsh-fount-memory
  config:
    namespace: default
    scope: workspace
    recallCount: 0
    relevanceThreshold: 5
    sameSessionCooldownMinutes: 20
  • By default, databases are separated by workspace, located at $DSH_HOME/storages/fount-memory; if DSH_HOME is not set, it uses .dsh/storages/fount-memory under the user’s home directory.
  • scope: global allows sharing data across workspaces for the same namespace.
  • dataDir can specify the database directory.

Typical Usage

  1. Write Facts: In the conversation, instruct the model to call fount_memory_remember after confirming information, including name, content, and optional trigger (see JSON example above for structure).
  2. Query & Traceability: Use fount_memory_search to find; use fount_memory_context when revision history or sources are needed.
  3. Forget by Topic: When the user asks to forget a topic, first search to confirm the scope, then forget with kind: all to avoid leaving fragments or history by only deleting surface entries.
  4. Development Agent Default: Keep recallCount: 0. Only actively view seals via search’s includeEpisodes: true when auditing unverified conversation fragments is needed, rather than letting legacy raw traces automatically enter every request.

Applicable Scenarios & Notes

Suitable for: Scenarios requiring stable memory of user preferences, project agreements, and date-based facts across multiple DSH turns, with a desire for recall to happen within normal turns without adding autonomous Agent turns; deployments wishing to keep memory local without relying on extra LLM calls.

Notes:

  • The plugin accesses local storage with the same permissions as DSH; evaluate disk and backup strategies before writing sensitive facts.
  • Short-term seals and optional raw recall may contain traces of failed or incomplete operations and should not be treated as “verified best practices” to automatically feed to the model.
  • The community catalog SkillHub Plugin Page and GitHub are independent information sources and have no official affiliation with DeepSeek / High-Flyer; versions and peer dependencies are subject to the repository README and package.json.

Conclusion

dsh-fount-memory connects the Fount-inspired named long-term memory, revision tracing, and controllable short-term sealing to the DSH format v4 plugin system: it defaults to only factual recall within turns and does not seize conversation initiative. If you are building Agents in the Harness that need to “remember names, dates, and agreements,” you can install it via the commands above, keep recallCount at 0, and use the four memory tools for explicit reading and writing.

  • Catalog Page: https://www.skillhub.cn/plugins/win10ogod/dsh-fount-memory
  • Source Code & Docs: https://github.com/win10ogod/dsh-fount-memory
羽毛球分组比赛记分
小程序二维码

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

Xiaoye