Preface¶
When building Agents in DeepSeek Harness (DSH), a common pain point is that once the context window closes, the agreements, preferences, and pitfalls from the previous round scatter. Many “memory” plugins rely on auto-recall: stuffing a few history entries into the context before each round starts, letting algorithms guess what is important. Extra lines in the context aren’t always ones you want to see.
“Buwang” (Never Forget) (Repository cheeseRatRat/dsh-buwang) takes a different path: no automatic writing, no automatic reading; the Workshop does not enter the context by default. All data is local Markdown—no database, no cloud, and no network requests from the plugin side. Maintained by the author along with Xianyuyu and AI partner Lanxi, it is categorized as “Memory” in the SkillHub Plugin Directory. SkillHub is a community directory with no official affiliation with DeepSeek or Quantia; DSH itself remains a host where “everything is a plugin,” requiring DSH installation before installing the plugin.
What is this¶
The full name can be understood as a private memory vault of “proactively recorded diaries and past events that I will not forget.” It is a DSH plugin (dsh-buwang, current manifest version 0.1.5, MIT) that solves the problem of “the model has nowhere to store things, but I don’t want the context automatically filled up.” You verbally instruct it to write what should be remembered and verbally instruct it to read what should be reviewed. Personalities, memories, the workshop, and the sealing (archive) are managed in separate partitions; multiple personalities do not mix with each other.
Differences from common memory plugins¶
The following four points are hard constraints in the design (referred to as the “Four Iron Rules” in the README):
- If you don’t ask, it doesn’t record.
- If you don’t ask, it doesn’t read.
- The Workshop is not loaded by default; saying “Search Workshop” lists the directory, and you open it only after selection, closing it immediately when done.
- Personalities do not share by default; sharing creates a read-only snapshot that the other party cannot modify.
The trade-off is the need to actively operate via natural language or the panel; the benefit is that every line injected into the context has your consent (or comes from a Workshop item you enabled).
Three layers of memory and four partitions¶
Three layers of memory¶
| Layer | Path | Context Cost per Round | Writing Style |
|---|---|---|---|
| Companion (Tongyou) | 记忆/<Persona>/同游.md |
Full text injection, no truncation | One short sentence per line; panel shows N / 60 limit |
| Recent | 记忆/<Persona>/近期/YYYY-MM-DD.md |
One line for each of the last few days | One summary entry per session; can use -2, -3 for the same day |
| Long-term | 记忆/<Persona>/长期/YYYY-MM-DD~YYYY-MM-DD.md |
One title line + one sentence | Consolidated interval summary; details require memory_recall |
“Organizing” relies on your trigger: memory_consolidate lists content to be organized, and memory_archive creates long-term notes; it will not automatically compress diaries in the background. Companion memories can be written via “Remember this” or configured in settings as “Companion Selection” (Off / Only when summarizing / Record when mentioned); when full at 60 entries, it suggests moving them to long-term storage, requiring your confirmation.
Four partitions¶
- Persona:
人格/<Persona Name>.md, only one enabled at a time, injected in full. - Memory: Full text of Companion, one line each for Recent and Long-term; additionally, there is Self-Description (
自述/<Persona>/YYYY-MM-DD.md) which is not indexed, does not occupy context space, and is viewable only in the panel. - Workshop:
工坊/<Persona>/常驻|按需/*.md, on-demand items are not loaded by default. - Sealed (Archive): Deleting documents or entire persona archives is recoverable; shared personas are read-only to others.
Injection order for the index each round (source text): 【Persona】→【Companion】→【Shared Persona·Read-only】→【Recent Days】→【Earlier】→【Workshop·Enabled】. Persona and Companion do not count towards the memory budget; Self-Description never appears.
Core Tools¶
The host registers seven tools for the Agent (names from the README table):
| Tool | Function |
|---|---|
memory_list |
Lists directory, does not return body text |
memory_recall |
Reads body text by date, title, or keywords |
memory_save |
Writes: tongyou / diary / workshop / self |
memory_seal |
Seals an entry, removing it from the index |
memory_consolidate |
Lists days pending organization (with body text) |
memory_archive |
Writes long-term notes and archives corresponding recent entries |
memory_workshop |
Turns Workshop skills on/off (only injected each round if enabled) |
Writing uses a temporary file in the same directory followed by a rename, reducing the risk of corrupting existing memories with half-written files.
Installation and Activation¶
Prerequisites¶
- DeepSeek Harness (
dsh) is installed, and the Web interface opens successfully. - DSH version ≥
0.1.7-rc.1(Verified by the author on0.2.1-rc.2; older versions will be blocked during theenginesinstallation phase). - Place the repository in a fixed directory, avoiding spaces and strange symbols in the path, e.g.,
D:\plugins\dsh-buwang.
The documentation is explicit: Do not concatenate dsh plugin add github:... based on the repository name; Do not manually edit the profile’s package.json (JSON errors will prevent the host from starting). Installation proceeds via the Agent’s plugin_manager.install_bundle.
Say the following to the Agent in DSH (replace the path with your absolute path):
把这个目录装成插件:D:\plugins\dsh-buwang
After installation, a book icon should appear in the sidebar; if not, press Ctrl+R to refresh. If it is only written to dependencies but not added to dsh.profile.bundles, the plugin will not load.
Data Directory¶
The database is created automatically upon first opening: default is ~/Documents/buwang (Windows: C:\Users\<You>\Documents\buwang), containing the “Default” persona and empty Companion memory. The database location is determined by the pointer %USERPROFILE%\.buwang\root.txt (a single line path) or configuration dataDir, or environment variable BUWANG_HOME; after “Change Location” in the panel, the plugin needs to be reloaded. The panel allows “Backup” to an adjacent folder with a timestamp.
Typical Usage¶
Daily usage is primarily colloquial. The correspondences provided in the README are as follows:
| You say | Behavior |
|---|---|
| “Remember this: I don’t drink cold drinks” | Writes a line to Companion |
| “Remember today: Buwang is installed” | Writes to today’s Recent diary |
| “Save this method to the Workshop, call it ‘Pre-deployment Check’” | Saves as an on-demand Workshop skill |
| “Summarize today” | Archives today’s diary and skills |
| “Look up October 19th” | Reads the full text of that day |
| “Search Workshop” | Lists directory, opens temporarily after selection |
| “Seal this entry” | Moves to Sealed (Archive), recoverable |
The panel allows direct editing of entries and adding skills on the Workshop page; Self-Description supports inline paging editing. Chinese search splits long sentences into 2-4 character fragments for matching, with title hits prioritized.
The repository examples/示例库/ provides a full sample library (fictional characters) which is not auto-loaded; you can copy the directory structure to your own library, but do not overwrite activePersona in your 设置.json.
Use Cases and Notes¶
Who it suits: DSH users who want memory to be completely local, manually editable in Markdown, and who want strict control over “what enters the context.” If you need automatic recall every round, the philosophy is opposite to “Buwang”; they can coexist, but the context is no longer entirely determined solely by you.
Permissions & Security: The plugin reads and writes to the disk with the current DSH process permissions; please read the source code and MIT license before installation to confirm paths and backup strategies. The plugin itself does not initiate network requests; model dialogue networking is unrelated to the memory vault.
Troubleshooting: If _debug.log in the vault root directory shows apply start, root=…, it indicates the host has loaded the plugin; if there is no icon in the sidebar, check bundles and restart. After changing the vault location, confirm the root.txt path exists and reload the plugin.
Conclusion¶
“Buwang” uses three layers of memory, four partitions, and seven tools to bind both “remembering” and “reading” to your commands, serving as a long-term private memory vault using purely local Markdown. For further understanding, see the repository docs/功能介绍.md.
- Plugin Directory Page: https://www.skillhub.cn/plugins/cheeseRatRat/dsh-buwang
- GitHub: https://github.com/cheeseRatRat/dsh-buwang
- Issues & Suggestions: Issues