# dsh-memory-markdown **Repository Path**: wyr233/dsh-memory-lite ## Basic Information - **Project Name**: dsh-memory-markdown - **Description**: 记忆库增强插件:内置零依赖检索 + 一键建库 + 治理仪表盘 + /memory 命令 + 自带 skill(DeepSeek Harness 长期记忆) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-11 - **Last Updated**: 2026-10-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dsh-memory-lite Read-only enhancer for a **file-based long-term memory library** (markdown cards kept in git) in [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH). > MIT · zero runtime dependencies · host + settings page · 中文说明见文末 ## What it does | Feature | Detail | | --- | --- | | `memory_find` tool | Searches the library's cards: CJK by adjacent bigrams, Latin by whole words, weighted title ×6 / keywords ×4 / body ×1. Returns card paths + matched terms + a snippet, then the agent opens the card with `read`. | | Memory digest injection | Appends one small `systemPrompt` section (default ≤900 chars, configurable): where the library is, which topics exist, and "search it before guessing". | | Settings page | A "Memory library" section under DSH Settings: a **governance dashboard** (opening tax, scale & trend, layer health, consolidation, guard & backup, search tools), slider+number thresholds, seven one-click actions (checkup / backup / governance scan / new chat + prompt / prompt templates / in-panel search / open the memory site), and toggles (digest on-off, tool on-off, digest budget, search limit). | | Built-in search engine | The reference ranking (CJK bigrams, title ×6 / keywords ×4 / body ×1, synonym groups, idf weighting) is compiled into the plugin, so search works with **zero setup**; `searchMode: 'script'` still honours an external search script. | | One-click library | Pick a folder with the host's native directory picker, or create a library in one click: scaffolded `INDEX.md`, a sample topic folder, a sample card and a usage note. The chosen path lives in this machine's runtime config, so Windows and Linux each keep their own and nothing is typed by hand. | | `/memory` command + bundled skill | A slash command (`status` / `search` / `init` / `root`) plus a `memory-library` skill that teaches any agent the workflow — search first, write cards on real progress, keep the library small — so no preset is required. | ## What it deliberately does NOT do - **Never writes** to the library: no card edits, no commits, no pushes. For automation (auto-commit, periodic health checks) pair it with your own scheduled script. - **Never rewrites conversation history** — it only appends one prompt section. - **No database and no cache**; the only state is one small JSON config file. ## Requirements - A memory library directory with an index file (default `INDEX.md`) and a search script (default `tools/memory-find.mjs`). Any script speaking this contract works: `node