dsh-mnemon 0.5.18 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -60
- package/README.zh-CN.md +82 -62
- package/lib/client.js +821 -438
- package/lib/index.js +4 -5
- package/lib/starter.js +4 -4
- package/lib/types/src/client/extension-sdk.d.ts +1 -0
- package/lib/types/src/client/locales.d.ts +33 -22
- package/lib/types/src/client/page-controls.d.ts +56 -0
- package/lib/types/src/client/source-contracts.d.ts +6 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -16,104 +16,123 @@
|
|
|
16
16
|
<p align="center">Pluggable sources and strategies, with layered memory out of the box.</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/ui-guide.md">
|
|
20
|
-
<img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.
|
|
19
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/ui-guide.md#in-a-conversation">
|
|
20
|
+
<img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/en/recall.gif" alt="A question answered from working memory, Project Documents and Memory Spaces; the expanded turn memory bar opens the document it read in Project Documents" width="880" />
|
|
21
21
|
</a>
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
25
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/
|
|
26
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/assets/webui-v0.5.
|
|
27
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/
|
|
28
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/
|
|
25
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/installation.md"><strong>Install and start</strong></a> ·
|
|
26
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/assets/webui-v0.5.19/README.md">Watch the demo</a> ·
|
|
27
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/README.md">Documentation</a> ·
|
|
28
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/extensions.md">Build a plugin</a>
|
|
29
29
|
</p>
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## Why dsh-mnemon
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
An Agent that starts every session from scratch keeps asking what it was already told. Putting everything into one memory store is no better: it either floods each turn or misses what matters. dsh-mnemon gives DeepSeek Harness memory that is layered, visible and composable.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
- **The right memory for each turn.** Preferences and working facts stay in context. Project documents and long-term evidence are searched only when a question needs them.
|
|
36
|
+
- **You can see what a turn used.** Under each reply, the turn memory bar lists the documents and memories the turn read and wrote, and one click opens each in the Memory System. The Memory System shows everything that is stored and lets you edit it.
|
|
37
|
+
- **Save to memory in one click.** When a conversation turns up a fact worth keeping, the brain mark under the reply hands it to a task Agent, which removes duplicates, distils it and writes it to the right Memory Space; the receipt says where it went.
|
|
38
|
+
- **Compose it on the Plugins page.** Choose a main strategy and optional enhancements, and switch them without moving any data. Every component has its own page for its settings.
|
|
39
|
+
- **Keep data where you want it.** Local by default with Mnemon Native, or one of eight third-party Providers. Storage can be global, per workspace or centralized, with ZIP backup.
|
|
40
|
+
- **Extend it.** Sources and Strategies are ordinary DSH plugins built on public SDKs. An installed component gets the same pages and switches as the shipped ones.
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|---|---|---|
|
|
39
|
-
| **Runtime** | Preferences, working agreements, facts needed on the next turn | Compact USER / MEMORY projection |
|
|
40
|
-
| **Documents** | Designs, investigations, procedures and handoffs | Search, then read the relevant narrative |
|
|
41
|
-
| **Memory Spaces** | Durable facts, decisions, entities and relationships | On-demand evidence from enabled backends |
|
|
42
|
+
## See it in action
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
These recordings come from a real WebUI with the live DeepSeek model answering, on a seeded, fictional project, Lumen. Waits for the model play faster, marked in the lower right corner.
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
**Save a new fact to memory.** A reply reports a new measurement. Select the brain mark under it, cut the candidate down to the sentence worth keeping and send it to the task Agent; the receipt names the Memory Space it went to and opens it in one click.
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
<p align="center">
|
|
49
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/ui-guide.md#save-to-memory"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/en/save.gif" alt="Save to memory: edit the candidate, send it to the task Agent, then view the new memory from the Saved receipt" width="880" /></a>
|
|
50
|
+
</p>
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
**See all memory in one place.** Status, runtime memory, Project Documents and Memory Spaces live in the Memory System. The graph links memories through the entities they mention, and Ask Agent answers with the memories it cites, by content.
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
dsh
|
|
53
|
-
|
|
54
|
-
```
|
|
54
|
+
<p align="center">
|
|
55
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/ui-guide.md#the-memory-system"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/en/memory.gif" alt="The Memory System: status, runtime memory, a document, the Memory Spaces graph, then an Agent answer with citations" width="880" /></a>
|
|
56
|
+
</p>
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
**Compose memory on the Plugins page.** One main strategy, its memory sources and optional enhancements, each switch applying at once. Every component has its own page, and storage, backup and interface settings live here too.
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
<p align="center">
|
|
61
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/ui-guide.md#on-the-plugins-page"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/en/plugins.gif" alt="The Plugins page: memory composition, the main strategy menu, the Layered strategy's and Memory Spaces' pages, then storage and interface" width="880" /></a>
|
|
62
|
+
</p>
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
Every step is explained in the [UI guide](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/ui-guide.md); all screens, recordings and the capture environment are in the [v0.5.19 gallery](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/assets/webui-v0.5.19/README.md).
|
|
61
65
|
|
|
62
|
-
|
|
66
|
+
## Three kinds of memory
|
|
63
67
|
|
|
64
|
-
|
|
68
|
+
| Memory | Keep here | How it reaches the Agent |
|
|
69
|
+
|---|---|---|
|
|
70
|
+
| **Runtime memory** | Preferences, working agreements, facts needed on the next turn | Injected every turn as compact USER.md and MEMORY.md |
|
|
71
|
+
| **Project Documents** | Designs, investigations, procedures and handoffs | Searched first, then read when relevant |
|
|
72
|
+
| **Memory Spaces** | Durable facts, decisions, entities and their relationships | Recalled on demand from the enabled Providers |
|
|
65
73
|
|
|
66
|
-
|
|
74
|
+
The default **Layered strategy** keeps runtime memory resident and reads the other two on demand. The **General strategy** offers every available source within one budget and lets the model decide how to use each. A **memory space** is one named, Provider-backed scope for long-term evidence; the Chinese product term is 记忆空间.
|
|
67
75
|
|
|
68
|
-
|
|
76
|
+
## Quick start
|
|
69
77
|
|
|
70
|
-
-
|
|
71
|
-
- **Strategy** chooses how available Sources participate: selection, resident context, retrieval and guidance. Pure composition does not write memory.
|
|
72
|
-
- **Core** validates the proposal, asks Sources for bounded projections and compiles an immutable **View**. The **DSH Host** pins it to the executing turn and controls tool access.
|
|
78
|
+
New to DSH? [Install and start](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/installation.md) walks from an empty machine to your first memory, with a screenshot for every step. The short version, with [Node.js](https://nodejs.org/) 22.19 or later:
|
|
73
79
|
|
|
74
|
-
|
|
80
|
+
```sh
|
|
81
|
+
npm install --global pnpm
|
|
82
|
+
npx @deepseek-ai/dsh web
|
|
83
|
+
```
|
|
75
84
|
|
|
76
|
-
|
|
85
|
+
<p align="center">
|
|
86
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/installation.md"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/install-v0.5.19/en/install.gif" alt="On the Plugins page: Add plugin, type dsh-mnemon, Install, Enable now; the Memory System appears in the sidebar" width="880" /></a>
|
|
87
|
+
</p>
|
|
77
88
|
|
|
78
|
-
|
|
89
|
+
1. In the page that opens, click **Plugins → Add plugin**, type `dsh-mnemon`, click **Install**, then **Enable now**.
|
|
90
|
+
2. Open **Memory System** in the sidebar. **Status** shows each memory component and Provider.
|
|
91
|
+
3. Tell a conversation something to remember. The turn memory bar under the reply lists what the turn read and wrote, and the brain mark saves a reply to memory.
|
|
92
|
+
4. For Memory Spaces, install the Mnemon CLI for Mnemon Native with `npm install --global @mnemon-dev/mnemon`, or enable another Provider on the Memory Spaces page.
|
|
93
|
+
5. Choose the main strategy and enhancements under **Plugins → dsh-mnemon**.
|
|
79
94
|
|
|
80
|
-
|
|
95
|
+
dsh-mnemon supports DSH `0.1.7-rc.2` (npm `latest`) and `0.2.0-rc.1` (npm `next`, run with `npx @deepseek-ai/dsh@next web`). The same package serves the desktop app's Plugins page, `dsh plugin --profile web add dsh-mnemon` on the command line, and Headless with `dsh plugin --profile headless add dsh-mnemon`; keep `v0.5.16` on older hosts. [Getting started](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/getting-started.md) continues from here, and [compatibility and upgrades](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/reference/compatibility.md) covers existing installations.
|
|
81
96
|
|
|
82
|
-
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| [dsh-mnemon-source-runtime](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-runtime/README.md) | USER / MEMORY, revisions and local hot storage | Enabled |
|
|
85
|
-
| [dsh-mnemon-source-documents](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-documents/README.md) | Markdown, search, revisions and archiving | Enabled |
|
|
86
|
-
| [dsh-mnemon-source-memory-spaces](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-memory-spaces/README.md) | Durable evidence and Source-owned Provider children | Enabled |
|
|
87
|
-
| [dsh-mnemon-strategy-default-three-tier](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-default-three-tier/README.md) | The familiar three-tier View and turn retrieval policy | Selected |
|
|
88
|
-
| [dsh-mnemon-strategy-general](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-general/README.md) | Every available Source in one budget; the model decides how to use each | Off |
|
|
89
|
-
| [dsh-mnemon-strategy-auto-capture](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-auto-capture/README.md) | In-turn guidance to retain useful facts | Off |
|
|
90
|
-
| [dsh-mnemon-strategy-light-context](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-light-context/README.md) | A shared resident-projection ceiling | Off |
|
|
91
|
-
| [dsh-mnemon-strategy-scoped](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-scoped/README.md) | Ordered Source selection and a writable subset | Off |
|
|
97
|
+
## How it works
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
[](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/architecture.md)
|
|
94
100
|
|
|
95
|
-
Memory Spaces
|
|
101
|
+
- **Sources** own memory and its operations: Runtime memory, Project Documents and Memory Spaces, whose Providers are its children.
|
|
102
|
+
- A **Strategy** decides how the available Sources take part in a turn: what stays resident, what can be searched, and which tools and budgets apply. Enhancements add to it through standard slots.
|
|
103
|
+
- **Core** validates the result into one immutable **View** for the turn. The DSH Host pins it to that turn and controls tool access.
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
The same public contracts serve the shipped plugins and external repositories. [Architecture](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/architecture.md) explains ownership, the turn lifecycle and the UI regions components contribute to.
|
|
98
106
|
|
|
99
|
-
|
|
107
|
+
## Official plugins
|
|
100
108
|
|
|
101
|
-
|
|
109
|
+
The Starter pins a tested combination of independently versioned packages. One main strategy runs at a time; the enhancements are off until you turn them on.
|
|
110
|
+
|
|
111
|
+
| Package | Role | Default |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| [dsh-mnemon-source-runtime](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-runtime/README.md) | Runtime memory: USER.md, MEMORY.md, revisions and local hot storage | On |
|
|
114
|
+
| [dsh-mnemon-source-documents](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-documents/README.md) | Project Documents: Markdown, search, revisions and archiving | On |
|
|
115
|
+
| [dsh-mnemon-source-memory-spaces](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-memory-spaces/README.md) | Memory Spaces: durable evidence and their Providers | On |
|
|
116
|
+
| [dsh-mnemon-strategy-default-three-tier](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-default-three-tier/README.md) | Layered strategy: resident runtime memory, the rest on demand | Selected |
|
|
117
|
+
| [dsh-mnemon-strategy-general](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-general/README.md) | General strategy: every available source in one budget | Off |
|
|
118
|
+
| [dsh-mnemon-strategy-auto-capture](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-auto-capture/README.md) | Active capture: in-turn guidance to keep useful facts | Off |
|
|
119
|
+
| [dsh-mnemon-strategy-light-context](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-light-context/README.md) | Light context: a shared ceiling on resident context | Off |
|
|
120
|
+
| [dsh-mnemon-strategy-scoped](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-scoped/README.md) | Scoped composition: ordered sources and a writable subset | Off |
|
|
102
121
|
|
|
103
|
-
|
|
122
|
+
Memory Spaces Providers: [Mnemon Native](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-mnemon-native/README.md) (default, local) · [OpenViking](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-openviking/README.md) · [Honcho](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-honcho/README.md) · [Mem0](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-mem0/README.md) · [Hindsight](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-hindsight/README.md) · [Holographic](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-holographic/README.md) · [RetainDB](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-retaindb/README.md) · [ByteRover](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-byterover/README.md) · [Supermemory](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-supermemory/README.md). Third-party Providers stay off until configured; graph, deletion and enumeration capabilities differ by backend. See [Providers](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/memory-providers.md).
|
|
104
123
|
|
|
105
|
-
|
|
124
|
+
## Build your own
|
|
106
125
|
|
|
107
|
-
|
|
126
|
+
Define a Source or Strategy with `dsh-mnemon/extension-sdk`, add an enhancement through the standard slots, or write a Memory Spaces driver with `dsh-mnemon-source-memory-spaces/provider-sdk`. A component can also add its own settings and Status card to the pages dsh-mnemon shows. Your repository owns its manifest, dependencies, tests and build; DSH installs and mounts it, and choosing it as the main strategy is a separate decision.
|
|
108
127
|
|
|
109
|
-
|
|
128
|
+
Start with the [plugin author guide](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/extensions.md). Discuss new capabilities and Providers in an Issue before a pull request; see [CONTRIBUTING](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/CONTRIBUTING.md).
|
|
110
129
|
|
|
111
130
|
## Data and trust
|
|
112
131
|
|
|
113
|
-
- Runtime and Documents are local; Native is local
|
|
114
|
-
-
|
|
115
|
-
- Saved Provider credentials stay on the Host and are
|
|
116
|
-
-
|
|
132
|
+
- Runtime memory and Project Documents are local files; Mnemon Native is local. Third-party Providers use their own services and scopes.
|
|
133
|
+
- Turning a component off does not erase its memory, and changing the storage location does not move data. Use ZIP backup to carry it.
|
|
134
|
+
- Saved Provider credentials stay on the Host and are never exported. Backups still contain private memory; protect them.
|
|
135
|
+
- Sources and Strategies are trusted in-process JavaScript, not sandboxed code. Remembered history never outranks current instructions.
|
|
117
136
|
|
|
118
137
|
[Backup and recovery](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/operations.md) · [Security policy](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/SECURITY.md) · [Release history](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/releases/README.md) · [Roadmap](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/roadmap.md)
|
|
119
138
|
|
|
@@ -125,4 +144,4 @@ pnpm verify
|
|
|
125
144
|
pnpm verify:plugins
|
|
126
145
|
```
|
|
127
146
|
|
|
128
|
-
Use Node.js `^22.19.0 || >=24.0.0` and pnpm
|
|
147
|
+
Use Node.js `^22.19.0 || >=24.0.0` and pnpm. `node scripts/serve-e2e.mjs` starts a disposable real WebUI; add `--docs-demo` for the seeded project behind these screenshots, and `--live-model` to have the DeepSeek API answer, with the key read from `DEEPSEEK_API_KEY`. Mechanical tests are not claims about model accuracy or live cloud Providers. [Development and verification](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/README.md).
|
package/README.zh-CN.md
CHANGED
|
@@ -12,110 +12,130 @@
|
|
|
12
12
|
<a href="https://dshfind.com/zh/plugins/omdsh-dev/dsh-mnemon?ref=badge"><img alt="dshfind 下载量" src="https://dshfind.com/api/badge/omdsh-dev/dsh-mnemon?metric=downloads&lang=zh" /></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
+
|
|
15
16
|
<p align="center"><strong>面向 DeepSeek Harness 的可组合视图记忆。</strong></p>
|
|
16
17
|
<p align="center">记忆来源与策略可插拔,开箱即用提供分层记忆。</p>
|
|
17
18
|
|
|
18
19
|
<p align="center">
|
|
19
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/ui-guide.md">
|
|
20
|
-
<img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.
|
|
20
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/ui-guide.md#在对话中">
|
|
21
|
+
<img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/zh-CN/recall.gif" alt="提问后,回答同时用到工作记忆、项目档案与记忆空间;展开回合记忆栏,点击读到的档案,直接在项目档案中打开它" width="880" />
|
|
21
22
|
</a>
|
|
22
23
|
</p>
|
|
23
24
|
|
|
24
25
|
<p align="center">
|
|
25
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/
|
|
26
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/assets/webui-v0.5.
|
|
27
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/
|
|
28
|
-
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/
|
|
26
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/installation.md"><strong>安装与启动</strong></a> ·
|
|
27
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/assets/webui-v0.5.19/README.md">观看演示</a> ·
|
|
28
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/README.md">文档中心</a> ·
|
|
29
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/extensions.md">制作插件</a>
|
|
29
30
|
</p>
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
## 为什么需要 dsh-mnemon
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
每次会话都从零开始的 Agent,会反复询问你早已说过的事情;把所有内容塞进同一个记忆库也不行,要么每轮都被淹没,要么漏掉真正要紧的信息。dsh-mnemon 为 DeepSeek Harness 提供分层、可见、可组合的记忆。
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
- **每一轮都拿到合适的记忆。** 偏好和工作中的事实常驻上下文;项目档案与长期证据只在问题需要时才检索。
|
|
37
|
+
- **看得见这一轮用了什么。** 每条回复下方的回合记忆栏列出这一轮读到和写入的档案与记忆,点一下就在记忆系统中打开它;记忆系统展示全部已保存的内容,并可直接编辑。
|
|
38
|
+
- **一键存入记忆。** 对话里出现值得保留的事实,点击回复下的脑形图标,由任务 Agent 去重、提炼并写入合适的记忆空间,回执写明存到了哪里。
|
|
39
|
+
- **在插件页组合。** 选择一个主策略和若干可选增强,切换时无需迁移任何数据;每个组件都有自己的设置页。
|
|
40
|
+
- **数据放在你想放的地方。** 默认由 Mnemon Native 在本地保存,也可以接入八种第三方 Provider;存储范围可选全局、按工作区或集中存储,并支持 ZIP 备份。
|
|
41
|
+
- **可以扩展。** Source 与 Strategy 都是基于公开 SDK 的普通 DSH 插件;安装的组件与随附组件拥有同样的页面和开关。
|
|
36
42
|
|
|
37
|
-
|
|
38
|
-
|---|---|---|
|
|
39
|
-
| **运行时** | 偏好、协作约定、下一轮就需要的事实 | 紧凑的 USER / MEMORY 投影 |
|
|
40
|
-
| **档案** | 设计、调查、流程和交接材料 | 先检索,再阅读相关叙事 |
|
|
41
|
-
| **记忆空间** | 长期事实、决策、实体与关系 | 从已启用后端按需召回证据 |
|
|
43
|
+
## 看看实际效果
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
以下录屏来自真实 WebUI,由真实的 DeepSeek 模型作答,项目是预置的虚构项目 Lumen;等待模型的片段加速播放,画面右下角有标记。
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
**把新事实存进记忆。** 回复中出现了新的测量结果:点击回复下的脑形图标,把候选内容改成要记住的那一句,交给任务 Agent;回执写明存进了哪个记忆空间,一键即可查看。
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
<p align="center">
|
|
50
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/ui-guide.md#存入记忆"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/zh-CN/save.gif" alt="存入记忆:编辑候选内容,交给任务 Agent,收到已存入的回执后在记忆空间中查看新记忆" width="880" /></a>
|
|
51
|
+
</p>
|
|
48
52
|
|
|
49
|
-
|
|
53
|
+
**在一处查看全部记忆。** 状态、运行时记忆、项目档案与记忆空间集中在记忆系统中;图谱按实体把记忆连接起来,Agent 查询给出按内容引用记忆的回答。
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
dsh
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
+
<p align="center">
|
|
56
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/ui-guide.md#记忆系统"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/zh-CN/memory.gif" alt="记忆系统:依次查看状态、运行时记忆、项目档案、记忆空间图谱,再用 Agent 查询得到带引用的回答" width="880" /></a>
|
|
57
|
+
</p>
|
|
55
58
|
|
|
56
|
-
|
|
59
|
+
**在插件页组合记忆。** 一个主策略、它的记忆来源与可选增强,每个开关即时生效;每个组件都有自己的页面,存储、备份与界面设置也在这里。
|
|
60
|
+
|
|
61
|
+
<p align="center">
|
|
62
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/ui-guide.md#在插件页中"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/webui-v0.5.19/zh-CN/plugins.gif" alt="插件页:记忆组合、主策略菜单、分层策略与记忆空间的组件页,以及存储与界面" width="880" /></a>
|
|
63
|
+
</p>
|
|
57
64
|
|
|
58
|
-
|
|
65
|
+
更多画面与每一步的说明见[界面指南](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/ui-guide.md),全部截图、录屏与采集环境见 [v0.5.19 图集](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/assets/webui-v0.5.19/README.md)。
|
|
59
66
|
|
|
60
|
-
|
|
67
|
+
## 三类记忆
|
|
61
68
|
|
|
62
|
-
|
|
69
|
+
| 记忆 | 适合保存 | 如何进入 Agent 上下文 |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| **运行时记忆** | 偏好、协作约定、下一轮就需要的事实 | 每轮以紧凑的 USER.md 与 MEMORY.md 注入 |
|
|
72
|
+
| **项目档案** | 设计、调查、流程与交接材料 | 先检索,相关时再阅读全文 |
|
|
73
|
+
| **记忆空间** | 长期事实、决策、实体及其关系 | 按需从已启用的 Provider 召回 |
|
|
63
74
|
|
|
64
|
-
|
|
75
|
+
默认的**分层策略**让运行时记忆常驻,另外两类按需读取;**通用策略**在同一份预算内提供全部可用来源,由模型决定如何使用。**记忆空间**是由 Provider 承载、可以独立命名和激活的长期证据范围,英文界面称 memory space。
|
|
65
76
|
|
|
66
|
-
##
|
|
77
|
+
## 快速开始
|
|
67
78
|
|
|
68
|
-
|
|
79
|
+
第一次使用 DSH?[安装与启动](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/installation.md)从一台空白电脑一直带你到第一条记忆,每一步都有截图。简要步骤如下,需要 [Node.js](https://nodejs.org/) 22.19 或更高:
|
|
69
80
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
81
|
+
```sh
|
|
82
|
+
npm install --global pnpm
|
|
83
|
+
npx @deepseek-ai/dsh web
|
|
84
|
+
```
|
|
73
85
|
|
|
74
|
-
|
|
86
|
+
<p align="center">
|
|
87
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/installation.md"><img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/main/docs/assets/install-v0.5.19/zh-CN/install.gif" alt="在插件页点击添加插件,输入 dsh-mnemon,安装后立即启用,侧栏出现记忆系统" width="880" /></a>
|
|
88
|
+
</p>
|
|
75
89
|
|
|
76
|
-
|
|
90
|
+
1. 在打开的页面中点击**插件 → 添加插件**,输入 `dsh-mnemon`,点击**安装**,再点击**立即启用**。
|
|
91
|
+
2. 在侧栏打开**记忆系统**,“状态”页列出每个记忆组件和 Provider。
|
|
92
|
+
3. 在对话中说一句需要记住的话。回复下方的回合记忆栏列出这一轮读到和写入的记忆,脑形图标可以把回复存入记忆。
|
|
93
|
+
4. 使用记忆空间时,可用 `npm install --global @mnemon-dev/mnemon` 安装 Mnemon Native 所需的 CLI,或在记忆空间页面启用其他 Provider。
|
|
94
|
+
5. 在**插件 → 可组合记忆**中选择主策略与增强。
|
|
77
95
|
|
|
78
|
-
|
|
96
|
+
dsh-mnemon 支持 DSH `0.1.7-rc.2`(npm `latest`)与 `0.2.0-rc.1`(npm `next`,用 `npx @deepseek-ai/dsh@next web` 启动)。同一个包也用于桌面版的插件页、命令行 `dsh plugin --profile web add dsh-mnemon`,以及 Headless:`dsh plugin --profile headless add dsh-mnemon`;更早的宿主请继续使用 `v0.5.16`。接下来可以看[快速开始](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/getting-started.md),已有安装的升级见[兼容性与升级](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/reference/compatibility.md)。
|
|
79
97
|
|
|
80
|
-
|
|
98
|
+
## 工作原理
|
|
81
99
|
|
|
82
|
-
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| [dsh-mnemon-source-runtime](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-runtime/README.md) | USER / MEMORY、修订与本地热记忆 | 启用 |
|
|
85
|
-
| [dsh-mnemon-source-documents](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-documents/README.md) | Markdown、搜索、修订与归档 | 启用 |
|
|
86
|
-
| [dsh-mnemon-source-memory-spaces](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-memory-spaces/README.md) | 长期证据及 Source 自有 Provider 子模块 | 启用 |
|
|
87
|
-
| [dsh-mnemon-strategy-default-three-tier](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-default-three-tier/README.md) | 分层策略:默认的 View 与回合检索策略 | 选中 |
|
|
88
|
-
| [dsh-mnemon-strategy-general](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-general/README.md) | 全部可用 Source 共享一份预算,由模型决定如何使用 | 关闭 |
|
|
89
|
-
| [dsh-mnemon-strategy-auto-capture](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-auto-capture/README.md) | 当前回合中主动记录有用事实的指引 | 关闭 |
|
|
90
|
-
| [dsh-mnemon-strategy-light-context](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-light-context/README.md) | 所有选中 Source 共享的常驻投影上限 | 关闭 |
|
|
91
|
-
| [dsh-mnemon-strategy-scoped](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-scoped/README.md) | 有序选择 Source,并限定可写子集 | 关闭 |
|
|
100
|
+
[](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/architecture.md)
|
|
92
101
|
|
|
93
|
-
|
|
102
|
+
- **Source(记忆来源)** 拥有记忆及其操作:运行时记忆、项目档案和记忆空间,Provider 是记忆空间的子模块。
|
|
103
|
+
- **Strategy(策略)** 决定可用的 Source 如何参与一轮对话:哪些常驻、哪些可以检索、使用哪些工具和预算。增强通过标准插槽为它补充能力。
|
|
104
|
+
- **Core(核心)** 把结果校验为本轮唯一的不可变 **View(上下文视图)**,DSH 宿主将它固定到这一轮并控制工具访问。
|
|
94
105
|
|
|
95
|
-
|
|
106
|
+
随附插件与外部仓库使用同一套公开契约。[架构](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/architecture.md)说明了归属关系、回合生命周期,以及组件可以贡献内容的界面区域。
|
|
96
107
|
|
|
97
|
-
|
|
108
|
+
## 官方插件
|
|
98
109
|
|
|
99
|
-
|
|
110
|
+
Starter 固定一组经过测试、各自独立版本的包。同一时间只运行一个主策略;增强在你打开之前保持关闭。
|
|
100
111
|
|
|
101
|
-
|
|
112
|
+
| 包 | 作用 | 默认 |
|
|
113
|
+
|---|---|---|
|
|
114
|
+
| [dsh-mnemon-source-runtime](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-runtime/README.md) | 运行时记忆:USER.md、MEMORY.md、修订与本地热存储 | 开启 |
|
|
115
|
+
| [dsh-mnemon-source-documents](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-documents/README.md) | 项目档案:Markdown、检索、修订与归档 | 开启 |
|
|
116
|
+
| [dsh-mnemon-source-memory-spaces](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-source-memory-spaces/README.md) | 记忆空间:长期证据及其 Provider | 开启 |
|
|
117
|
+
| [dsh-mnemon-strategy-default-three-tier](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-default-three-tier/README.md) | 分层策略:运行时记忆常驻,其余按需读取 | 选中 |
|
|
118
|
+
| [dsh-mnemon-strategy-general](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-general/README.md) | 通用策略:全部可用来源共享一份预算 | 关闭 |
|
|
119
|
+
| [dsh-mnemon-strategy-auto-capture](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-auto-capture/README.md) | 主动记录:在回合中提示保留有用的事实 | 关闭 |
|
|
120
|
+
| [dsh-mnemon-strategy-light-context](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-light-context/README.md) | 轻量上下文:为常驻内容设置共同上限 | 关闭 |
|
|
121
|
+
| [dsh-mnemon-strategy-scoped](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-strategy-scoped/README.md) | 范围组合:按顺序选择来源,并限定可写子集 | 关闭 |
|
|
102
122
|
|
|
103
|
-
|
|
123
|
+
记忆空间 Provider:[Mnemon Native](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-mnemon-native/README.md)(默认,本地)· [OpenViking](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-openviking/README.md) · [Honcho](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-honcho/README.md) · [Mem0](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-mem0/README.md) · [Hindsight](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-hindsight/README.md) · [Holographic](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-holographic/README.md) · [RetainDB](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-retaindb/README.md) · [ByteRover](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-byterover/README.md) · [Supermemory](https://github.com/omdsh-dev/dsh-mnemon/blob/main/plugins/dsh-mnemon-provider-supermemory/README.md)。第三方 Provider 在配置前保持关闭;图谱、删除与枚举能力因后端而异。详见 [Provider 指南](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/memory-providers.md)。
|
|
104
124
|
|
|
105
|
-
|
|
125
|
+
## 自己动手扩展
|
|
106
126
|
|
|
107
|
-
|
|
127
|
+
用 `dsh-mnemon/extension-sdk` 定义 Source 或 Strategy,通过标准插槽编写增强,或用 `dsh-mnemon-source-memory-spaces/provider-sdk` 编写记忆空间驱动。组件还可以把自己的设置和状态卡片加入 dsh-mnemon 的页面。你的仓库自己负责清单、依赖、测试与构建;DSH 负责安装和挂载,是否把它选为主策略是另一个独立决定。
|
|
108
128
|
|
|
109
|
-
|
|
129
|
+
从[插件开发指南](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/extensions.md)开始。新能力与新 Provider 请先在 Issue 中讨论,再提交 PR,详见 [CONTRIBUTING](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/CONTRIBUTING.zh-CN.md)。
|
|
110
130
|
|
|
111
|
-
##
|
|
131
|
+
## 数据与信任
|
|
112
132
|
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
- 已保存的 Provider
|
|
116
|
-
- Source 与 Strategy
|
|
133
|
+
- 运行时记忆与项目档案是本地文件,Mnemon Native 也在本地;第三方 Provider 使用各自的服务与作用域。
|
|
134
|
+
- 关闭组件不会删除其中的记忆,更换存储位置也不会搬移数据;需要迁移时使用 ZIP 备份。
|
|
135
|
+
- 已保存的 Provider 凭据只留在宿主上,不会被导出;但备份仍包含私有记忆,请妥善保护。
|
|
136
|
+
- Source 与 Strategy 是受信任的进程内 JavaScript,**不是沙箱代码**;历史记忆永远不会凌驾于当前指令之上。
|
|
117
137
|
|
|
118
|
-
[备份与恢复](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/operations.md) · [安全策略](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/SECURITY.md) · [
|
|
138
|
+
[备份与恢复](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/operations.md) · [安全策略](https://github.com/omdsh-dev/dsh-mnemon/blob/8466e3560a3b9de4e9f4b7302cbf005c84e8e69f/SECURITY.md) · [版本历史](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/releases/README.md) · [路线图](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/roadmap.md)
|
|
119
139
|
|
|
120
140
|
## 开发与验证
|
|
121
141
|
|
|
@@ -125,4 +145,4 @@ pnpm verify
|
|
|
125
145
|
pnpm verify:plugins
|
|
126
146
|
```
|
|
127
147
|
|
|
128
|
-
|
|
148
|
+
需要 Node.js `^22.19.0 || >=24.0.0` 与 pnpm。`node scripts/serve-e2e.mjs` 会启动一个用后即弃的真实 WebUI;加上 `--docs-demo` 即可得到这些截图背后的示例项目,再加 `--live-model` 则由 DeepSeek API(读取 `DEEPSEEK_API_KEY`)真实作答。机制测试不代表模型准确率,也不代表云端 Provider 的实际表现。详见[开发与验证](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/development/README.md)。
|