# Repository Briefing: omdsh-dev/dsh-mnemon
> Source: https://repoforai.com/repo/omdsh-dev/dsh-mnemon (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/omdsh-dev/dsh-mnemon
- **Official Docs / Website**: https://mnemon.dev
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (89/100 · Maintenance 35/35 · Adoption 14/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.5.60 (2026-12-03) — https://github.com/omdsh-dev/dsh-mnemon/releases
- **Review Snapshot**: 2026-12-03 (Note: v0.5.60 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Self-Hosted, Local AI, CLI
- **Momentum**: 1,197 ★ total (+3 24h / +49 7d) · 87 forks
- **Topics**: `agent-memory`, `context-management`, `cross-session-memory`, `deepseek-harness`, `document-search`, `dsh-better-sidebar`, `dsh-mnemon`, `dsh-plugin`, `llm-memory`, `local-first`, `long-term-memory`, `memory-orchestration`
- **When to Use**: Best for: DSH users who need working facts to persist across sessions, project evidence retrieved on demand, and a visible record of what each turn read or wrote. Skip if: You need a shared memory API for multiple agent frameworks, require sandboxed extensions, or only need Markdown search.

## Overview
```text
### Architecture & Core Mechanics
dsh-mnemon is a TypeScript extension for DeepSeek Harness (DSH), not a standalone retrieval service. Sources own data and operations; Memory Spaces owns the Provider integrations that back its named scopes. A main Strategy decides what stays resident, what can be retrieved, and which tools and budgets apply. Optional enhancements contribute through defined slots. Core validates the result into one immutable View, which the Host pins to the turn while controlling tool access.

The `plugins/` workspace separates independently versioned components, while the Starter pins a tested combination. The package depends on `@deepseek-ai/cosmokit` and `@deepseek-ai/schemastery`; DSH loads the bundled `cordis.patch.yml`. Authors build Sources and Strategies with `dsh-mnemon/extension-sdk`, and Memory Spaces drivers with `dsh-mnemon-source-memory-spaces/provider-sdk`. This keeps storage and turn policy separate without introducing a process boundary: Sources and Strategies run as trusted JavaScript in the Host.

### Key Capabilities & Differentiators
The default Layered strategy injects compact `USER.md` and `MEMORY.md` every turn, searches Markdown Project Documents before opening matches, and recalls durable evidence from Memory Spaces on demand. The General strategy instead exposes all available Sources under one budget and lets the model decide how to use them. The turn memory bar links reads and writes to stored records. Saving a reply to memory can send it to a task agent for deduplication, distillation, and routing, with a receipt naming the destination.

Memory Spaces supports local Mnemon Native and eight third-party Providers, including Mem0, Hindsight, and OpenViking. The experimental Skills component can review finished conversations, propose `SKILL.md` edits, and backtest drafts against the current version using recorded or hand-written cases. Self-evolution is off by default; once enabled, manual adoption remains the default. Automatic adoption is opt-in and applies to eligible suggestions only after complete, non-regressing backtests.

### Trade-offs & Limitations
Compared with a standalone memory backend such as Mem0, dsh-mnemon primarily adds DSH-specific orchestration and visibility; Mem0 can sit behind it rather than replace it outright. Compared with document-only retrieval, it also handles resident context and long-term writes, but introduces more policy and configuration choices. Layered bounds what is injected by default, at the cost of relying on on-demand retrieval to surface relevant evidence. General gives the model more control within one budget, making source selection more dependent on model behavior.

Disabling a component does not erase its data, and changing a storage path does not migrate it. ZIP backups and Git sync can carry private memory even though Provider credentials are not exported. Git sync preserves conflicting versions until a reconciliation plan is accepted; skill evolution data stays local and is excluded from backups. Treat third-party plugins as trusted code and review imported skills as instructions the agent may follow. Mechanical verification and skill backtests are not evidence of live Provider performance or model accuracy.

### Hardware & Deployment Guide
For WebUI, start DSH with `npx @deepseek-ai/dsh web` and install and enable `dsh-mnemon` from Plugins. The CLI equivalents are `dsh plugin --profile web add dsh-mnemon` and `dsh plugin --profile headless add dsh-mnemon`. Do not duplicate the bundled `cordis.patch.yml` insert block in the profile: duplicate entries can prevent Settings from saving. The plugin declares Node.js >=20, but the documented DSH `0.2.2-rc.1` requires >=24.9.0; older supported Hosts have their own requirements.

For local Memory Spaces, install `@mnemon-dev/mnemon` globally; otherwise configure the chosen Provider. Local file and Provider storage do not determine where model inference runs. v0.5.57 trimmed the Starter browser bundle by shipping only the Memory Spaces translations it uses. v0.5.58 made scheduled Git backup resume from the last recorded sync time after a restart, and v0.5.59 preserved exact workspace paths on filesystems that support trailing spaces in directory names.
```

## Key Capabilities
```text
- Turn isolation: Core validates one immutable View per turn, and DSH pins it to the turn and controls tool access.
- Retrieval policy: Layered injects compact `USER.md` and `MEMORY.md` and looks up deeper evidence on demand; General puts all available Sources under one budget.
- Memory provenance: The turn memory bar links reads and writes to stored records, and the save receipt names the destination.
- Provider boundary: Memory Spaces groups durable evidence into named scopes backed by local Mnemon Native or one of eight third-party Providers.
- Skill governance: Experimental `SKILL.md` revision supports version history, per-skill test cases, backtests, and manual adoption by default.
- Portability: ZIP backups and Git sync move memory without exporting Provider credentials; conflicting Git edits remain pending reconciliation.
```

## Quick Start / Clone
```bash
npm install --global pnpm
npx @deepseek-ai/dsh web
```
