Introduction¶
When doing long-term development in DeepSeek Harness (DSH), a common problem is that after starting a new round of conversation, the architectures, constraints, and decisions finalized in the previous round are not automatically carried into the context. If you paste the entire history back into the prompt, it consumes tokens and easily mixes in irrelevant chatter. There are also solutions in the community that rely on third-party memory frameworks or external services, but the deployment and audit costs are often higher.
Below is an introduction to dsh-memory-eternal-fork: a local memory vault running as a plugin in DSH, which precipitates conversations into git-manageable Markdown knowledge cards and recalls relevant fragments on demand via memory_recall when needed. This article is compiled based on the repository README and package.json (v0.7.9), and is aimed at developers already using DSH 0.2.0-rc.x.
What is this¶
dsh-memory-eternal-fork is a maintained fork of EternalNight996/dsh-memory-eternal, maintained by pokiimon. It is licensed under MIT, and the npm package name is dsh-memory-eternal-fork. Its positioning is: to provide a local Markdown memory vault for DeepSeek Harness—automatically precipitating knowledge cards after conversations end, allowing the Agent to retrieve them on demand via tools, and managing knowledge cards, graphs, and review workflows through a graphical interface.
Unlike approaches that “only modify DSH source code” or are “locked in a private database,” this plugin emphasizes: no modification to DSH source code, memory stored as pure Markdown in a local directory (default ~/.dsh/memory-vault), proprietary in-house implementation of retrieval and deduplication within the plugin, and the README claims no third-party memory framework dependencies at runtime.
Relationship with Upstream and New Projects¶
The README clearly states: this repository is a fork, not the original author’s main repository; code copyright and attribution belong to the original author; the changes in this fork focus on DSH 0.2.0-rc.x compatibility (client inject, settings write channel, capture hooks) and interface adjustments (e.g., changing the bottom-left entry to an embedded card, standalone config page icon, read/write interface specification correction), with the baseline coming from community PR #7. If upstream merges similar fixes, the README suggests prioritizing the upstream version.
The README also notes: the original product line has been upgraded to an independent project for multi-agents called memory-eternal. New features and continuous development are based on the new project (e.g., npm i memory-eternal or dsh plugin --profile web add memory-eternal). dsh-memory-eternal-fork is still suitable for scenarios where users need to use eternal-series memory capabilities within DSH and rely on the compatibility fixes of this fork.
Core Features¶
The following capabilities are derived from the README and package descriptions, and can be understood by module:
- Automatic Sedimentation: After each round of conversation ends, if conditions such as length, quota, and routing are met, the content is written to the local vault; new cards enter the review center (
pending) by default and only enter the main vault after approval. - On-demand Recall: Registers the
memory_recalltool; when “Auto Recall” is enabled, the Agent can retrieve relevant knowledge cards when historical context is needed, rather than pasting the entire session. - Graphical Memory Vault: The “Memory” entry at the bottom of the sidebar (changed to an embedded card in this fork); the left column contains Knowledge Cards, Knowledge Graph, Usage, Review Center, Recycle Center, and Memory Config; “DSH Settings → Memory” is a pure configuration page.
- Shared Vault across Agents (Optional CLI Path): The README explains that Claude Code, Codex CLI, Cursor, etc., can write to the same
~/.dsh/memory-vaultvia a globally installeddsh-memoryCLI and MCP / hooks, usingsubmittedByto distinguish the source; on the DSH side, integration is primarily in the form of plugins. - Standalone Web Administration:
dsh-memory opencan open a UI in the browser that is the same source as the DSH embedded one (defaulthttp://127.0.0.1:7999), used for statistics, search, CRUD, and import/export.
Regarding storage and retrieval, the README summarizes: deduplication uses lexical Jaccard bigrams and optional semantic deduplication; retrieval is a CJK-aware solution; the graph is connected by edges such as wikilinks / shared tags; a single card is a .md file with frontmatter.
Installation and Enabling¶
The plugin is installed within the DSH profile and requires Node.js >= 22 (see engines in package.json). The DSH installation method provided in the README is:
# dsh-desktop users (recommended): DSH CLI installs directly into the profile
dsh plugin --profile web add dsh-memory-eternal
# Or update directly in the profile (pnpm workspace). Note: use pnpm, npm install will report EUNSUPPORTEDPROTOCOL
cd ~/.dsh/profiles/web && pnpm add dsh-memory-eternal@latest
Note: The above commands are excerpted from the original text of the fork repository README; the npm package name for this fork is dsh-memory-eternal-fork (SkillHub directory page and package.json are both v0.7.9). If your goal is to install the maintained version pokiimon/dsh-memory-eternal-fork, please verify the actual npm package name and version resolved in your profile before installation to avoid accidentally installing an upstream package with the same name. The README does not provide commands in the form of dsh plugin add github:..., and this article will not construct them additionally.
After installation is complete, restart dsh web. The README states that after restart, you should see: automatic sedimentation, the memory_recall tool, and the sidebar “Memory” entry and settings page.
Typical Usage¶
Inside DSH¶
Sedimentation and recall automatically participate in the conversation flow after configuration is enabled; the path to change configuration is: Memory Vault left column “Memory Config” or DSH Settings → Memory, click “Save Config” after modification. Changes to fields such as autoWebMode and watchdogAutoSpawn require a DSH restart to take effect (according to README).
CLI Quick Reference (when dsh-memory is globally installed)¶
Command examples provided in the README:
dsh-memory recall "数据库选型" # Retrieve
dsh-memory capture "重要结论..." # Manual sedimentation (- reads stdin)
dsh-memory sweep ~/.claude/projects # Mine existing session records
dsh-memory setup [--dry-run] # Re-run/preview auto-mount (idempotent)
dsh-memory connect <claude|codex|cursor> # Write session end auto-sedimentation hook
dsh-memory open # Ensure web is alive and open browser
When installing the CLI separately, the README states that the commands come from npm i -g (the example package name is still dsh-memory-eternal as in the README).
Other Agent Integration (Optional)¶
If you need to connect Claude Code, Codex, or Cursor in addition to DSH, the README gives examples such as:
npm i -g dsh-memory-eternal
dsh-memory connect claude
As well as the corresponding connect subcommands for Codex and Cursor; the session end hook will write content to the same vault. Whether to automatically rewrite local MCP / hooks configuration is controlled by settings like “Auto Mount MCP (autoMcpSetup)”; when disabled by default, it will not automatically touch local configuration files.
Configuration and Troubleshooting Points¶
Common default values (README “Memory Config” table) include: memory vault directory ~/.dsh/memory-vault; automatic sedimentation / automatic recall enabled by default; “Distill Knowledge Cards” and “Semantic Dedup Feed AI” enabled by default (will call models, can be disabled to save costs); capture minimum length 200, daily quota 60, etc.
If “There are never any cards in the vault”, the README explains that automatic sedimentation checks in order: switch → current round text length → daily quota → model routing. You can enable “Sedimentation Diagnostic Logs” to view skip reasons, or enable “Save Raw Text Card when No Routing”. This fork has fixed issues regarding session event reading on DSH 0.2.x (snapshotEvents and old .events fields) and volatile config references (README 0.7.4–0.7.8 sections). If you encountered “hook silently not writing cards” on 0.2.0-rc.x, you should verify against the README after upgrading to this fork version.
Regarding service keep-alive, the README distinguishes between autoWebMode (how web is pulled up with DSH), watchdogAutoSpawn (standalone watchdog process), and autoMcpSetup (whether to automatically write external Agent configs). The meanings of these three are different, and changing them incorrectly can easily lead to the misunderstanding of “thinking it’s hot-updated, but actually needs a restart”.
Applicable Scenarios and Notes¶
Who it is suitable for: Those who want to build a version-controllable local memory within DSH, retain project decisions and constraints across sessions; currently using DSH 0.2.0-rc.x and needing eternal-series plugin compatibility fixes; accepting the flow of “new cards go to pending first, then enter the main vault after manual or rule review”.
Please note before use:
- The plugin runs with the current DSH process permissions, can read and write the vault directory, and may call models for distillation / deduplication; before installation, you should read the GitHub source code and MIT license, and assess the trust boundary yourself.
- The README declares that long-term new features are shifting to the memory-eternal independent project; if you are selecting from scratch and are not limited to the DSH plugin form, you should read the upstream new project description before deciding.
- The community plugin directory SkillHub and GitHub are both community collection and distribution channels, and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem itself is an extension model where “everything is a plugin”.
Conclusion¶
dsh-memory-eternal-fork precipitates DSH conversations into a local Markdown knowledge base and uses memory_recall for small block recall, making a compromise between tokens and noise; the value of this fork lies in retaining the eternal-series product design while supplementing compatibility and interface issues on 0.2.0-rc.x.
- Directory Page: https://www.skillhub.cn/plugins/pokiimon/dsh-memory-eternal-fork
- Repository: https://github.com/pokiimon/dsh-memory-eternal-fork
- Upstream: https://github.com/EternalNight996/dsh-memory-eternal