DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Memory — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

@nanmicoder/dsh-memory

Memory

DeepSeek Harness 的长期记忆系统:基于会话日志的两阶段提取/整合流程,支持摘要注入和记忆工具

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:yan5236/dsh-memory#a05ca71a1caa073d88aee55ec6be1e55a93eaa3e
README兼容性版本

兼容性与来源证明

Memory 以 @nanmicoder/dsh-memory 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/25

版本

0.2.1stable
2026/8/25

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 4
周下载
0
最近提交
2026/8/25
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。

README

English · 简体中文

dsh-memory · Long-term memory plugin for DeepSeek Harness

A two-phase memory pipeline (per-session extraction → global consolidation), a summary that is always injected into new sessions, and four on-demand retrieval tools.

Why long-term memory

Without memory, every session restates user preferences and re-steps known landmines. dsh-memory extracts durable knowledge from finished sessions and periodically consolidates it into a dense navigation summary (injected into every session) plus a grep-friendly handbook, so future sessions need fewer repeated instructions, waste fewer tool calls, and avoid known failure modes.

The design is adapted from the Codex memories system (two-phase extraction/consolidation, three-layer artifact layout, job claims, cooldown, redaction) and re-composed for DSH: no SQLite, no git baseline, no resident consolidation subagent.

Features

  • 🧠 Phase 1 per-session extraction: after a session turns stop (debounced, 3 min default), its log is read, filtered, rendered, and redacted, then a model extracts structured memory (raw_memory + rollout_summary + slug). Low-signal sessions produce an empty no-op.
  • 🧩 Phase 2 global consolidation: on a cooldown (6 h default) the new raw memories are merged into MEMORY.md (handbook) and memory_summary.md (dense index, exact v1 first line); raw input is rotated into an archive and never consolidated twice.
  • 📥 Always-injected summary: memory_summary.md (hard size cap) is injected through the system prompt of every session — zero effort for the model to see the index.
  • 🔍 Four memory tools: memory_list / memory_read / memory_search / memory_add (writes only on explicit user request).
  • 🔒 Safety discipline: session content is treated as data, never instructions; secrets are redacted on both input and output; memory paths are confined to the memory root.
  • 🔁 Reliable scheduling: one durable claim per session (KV-persisted); restarts never re-extract or double-consolidate; failures retry with backoff; orphaned claims recover.
  • ⚙️ Settings page: Settings → Long-term memory for stats, manual runs, and config.
  • 🗂️ Memory manager: the "Open memory bank" button opens a dedicated dialog with a VS Code-style collapsible file tree (folders nest their contents), in-dialog editing, and two-step deletion. A persistent warning reminds you: memory files generally need no manual edits unless you know what you are doing.
  • 🎚️ Per-phase reasoning effort: Phase 1 extraction and Phase 2 consolidation each have their own reasoning level (off/low/high/max; empty follows the model default), so you can balance speed and memory quality per stage; run logs record the effort actually applied.

How it works

turn end ──► Phase 1 (per session) ──► rollout_summaries/<slug>.md + raw_memories.md
                                            │
                              (cooldown elapsed / new memories)
                                            ▼
                                     Phase 2 (global)
                                            │
              ┌─────────────────────────────┴────────────────────────────┐
              ▼                                                          ▼
   memory_summary.md (injected into every session)     MEMORY.md (searched on demand)

Installation

[!NOTE] Requires DeepSeek Harness.

Naming: @nanmicoder/dsh-memory is the package identifier (@nanmicoder is the npm-style scope, dsh-memory the name). This plugin is distributed via GitHub (not npm):

dsh plugin --profile web add 'git+https://github.com/yan5236/dsh-memory.git#main'

Then verify the composition and start:

dsh --profile web --dump-config
dsh web

Open Settings → Long-term memory. Memory files live in $DSH_HOME/memories/ by default.

[!TIP] If dump-config does not contain the - id: dsh-memory row, the package is missing from the profile's dsh.profile.bundles array (the bundle patch layer is not applied) — add "@nanmicoder/dsh-memory" to that array.

📋 One-prompt install: let DSH do it

Copy the whole block and paste it into a DSH conversation; the agent installs, registers, and verifies the plugin for you:

Please install the DSH long-term memory plugin `dsh-memory` into the `web` profile.
GitHub repo: https://github.com/yan5236/dsh-memory

Requirements:
1. Run: dsh plugin --profile web add 'git+https://github.com/yan5236/dsh-memory.git#main'
2. Check $DSH_HOME/profiles/web/package.json: dependencies should include
   "@nanmicoder/dsh-memory", and the dsh.profile.bundles array should contain
   "@nanmicoder/dsh-memory" (add it if missing — without it the plugin's patch layer
   is not applied).
3. Run: dsh --profile web --dump-config — confirm the output contains "- id: dsh-memory"
   with no errors.
4. Restart DSH: stop the running `dsh web` process, then run `dsh web` again.
5. Verify: the settings page shows "Long-term memory", and the session tool list contains
   memory_list / memory_read / memory_search / memory_add.
6. If any step that writes into the DSH profile directory ($DSH_HOME/profiles) is blocked
   by a permission policy, ask the user to switch to Full access or approve the operation —
   do not bypass it or fail silently.

Configuration

The composition config provides the base layer (the bundled config: {} uses all defaults); the settings page overrides common entries and persists them to DSH storage:

- id: dsh-memory
  config:
    memoryRoot: C:/path/to/memories   # default $DSH_HOME/memories
    provider: deepseek-official       # optional: pin the pipeline model route
    model: deepseek-v4-flash          # paired with provider
    consolidationCooldownMs: 21600000 # consolidation cooldown (6 h default)
    idleDebounceMs: 180000            # post-turn idle window (3 min default)
    maxRolloutsPerRun: 3              # sessions extracted per run
    maxSummaryChars: 8000             # injected-summary character cap

See README_ZH.md for the full option table.

Memory layout

<memoryRoot>/
├── memory_summary.md          # injected navigation summary (first line `v1`)
├── MEMORY.md                  # handbook: preferences, procedures, failure shields
├── raw_memories.md            # Phase 1 output awaiting consolidation
├── raw_memories.archive.md    # rotated history of consolidated raw blocks
├── rollout_summaries/         # per-session recaps (evidence layer)
├── skills/                    # reusable procedures promoted by consolidation
└── extensions/ad_hoc/notes/   # user-requested ad hoc notes

Development

pnpm install
pnpm verify
git diff --check

Design and decisions: DESIGN.md.

License

MIT