DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-memory-four-books

Plugin Memory Four Books

适用于 DeepSeek Harness 的分层长期记忆:红线 / 今日 / 进行中 / 常识 / 归档,支持 BM25 检索、自动捕获和自动整合。零依赖,纯文本。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:wodexiaoling/dsh-plugin-memory-four-books#348b7b19a367ac1daf83ff479f068d8154cf4b55
README兼容性版本

兼容性与来源证明

Plugin Memory Four Books 以 dsh-plugin-memory-four-books 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/29

版本

0.1.0stable
2026/10/29

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Mnemondsh-mnemon面向 DeepSeek Harness 的可组合、基于视图的上下文。开箱即用的可插拔来源与策略、分层记忆和自我演进技能。

README

dsh-plugin-memory-four-books

Layered long-term memory for DeepSeek Harness.

Instead of dumping a huge history file into every prompt, this plugin keeps memory in five ordered tiers and only injects what fits. Expensive information (red lines) is always present; cheap details wait on disk until the model asks for them.

Zero dependencies. Plain Markdown and JSONL on disk. No network calls, no background services, no database.

Install

dsh plugin --profile <your-profile> add github:wodexiaoling/dsh-plugin-memory-four-books

The plugin is distributed through GitHub only — it is not published on npm. dsh clones the repository into the profile and links it as a bundle.

To update later:

dsh plugin --profile <your-profile> remove dsh-plugin-memory-four-books
dsh plugin --profile <your-profile> add github:wodexiaoling/dsh-plugin-memory-four-books

How it works

you type
   ↓
agent/pre-step ──→ filtered and appended to 支线/对话.jsonl
   ↓
model runs
   ↓
every 10 min ──→ consolidate ──→ writes tiers only when something changed

Automatic capture. Every message you send is filtered (greetings, duplicates and injected runtime context are dropped) and appended to an append-only journal.

Automatic consolidation. Every ten minutes the journal is summarised into one line per entry, de-duplicated and sorted into tiers. Nothing is deleted — old entries move down a tier.

Tiered injection. Before every model step the plugin rebuilds a prompt block from the tiers:

TierInjectedCap
当天 / todayalways, never truncated400 entries
红线 / red linesalways, never truncated, never decayed40 entries
进行中 / in progresslatest 3080 entries
常识 / common senselatest 70260 entries
档案 / archiveonly on demand800 entries

The block is cached by file mtime, so an unchanged memory costs nothing.

BM25 recall. memory_recall runs a BM25 index (Chinese 2-gram, k1=1.5 b=0.75) over every tier plus the raw journal, then applies a 120-day half-life decay with a floor of 0.4 so old entries stay findable but stop crowding out recent ones.

Tools

ToolPurpose
memory_recallsearch memory by keyword
memory_rememberstore one entry under a tag
memory_consolidaterun consolidation now
memory_statustier counts, caps, file sizes, automation state

Config

All fields are optional; set them in the plugin row's config:

FieldDefaultMeaning
dataDir$DSH_HOME/memory-four-bookswhere memory lives
injecttrueinject the tier block into prompts
injectBudget15000character budget for the injected block
sectionOrder45order of the prompt section
autoRecordtruecapture user messages automatically
autoConsolidatetruerun consolidation on a timer
consolidateMinutes10timer interval
dayMaxChars8000byte guard for the "today" tier
indexMaxDocs20000max journal rows kept in the search index

Where data lives

$DSH_HOME/memory-four-books/
  支线/对话.jsonl            append-only journal
  四册/记忆核心.md            the five tiers (this is what gets injected)
  四册/MEMORY_INDEX.md       one line per topic
  四册/档案库.md             archive
  四册/memory_changelog.md   append-only change log
  归纳台账.jsonl             consolidation ledger

Everything is plain UTF-8. Open it, edit it, back it up, delete it — the plugin rebuilds derived files from the journal.

Privacy

This plugin records what you type, locally. No data leaves the machine: the plugin makes no network requests and starts no server. Memory is stored unencrypted in dataDir.

Disable capture with "autoRecord": false if you only want manual memory_remember.

Limits

  • Memory is shared by every session and subagent in a profile. It is not scoped per workspace.
  • It is not encrypted.
  • It is not part of the session log, so forking a session does not fork its memory.
  • Japanese/Chinese/English text is supported; other scripts fall back to single-character n-grams and recall quality drops.
  • The plugin assumes DSH >= 0.2.0 (uses agent/pre-step and systemPrompt.section).

License

MIT