DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Fuzzy Memory — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
F

dsh-fuzzy-memory

Fuzzy Memory

DSH fuzzy memory plugin: extracts keywords from conversations, stores one-sentence impressions, and recalls them as needed; explicit facts go into the core archive and are remembered permanently.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:yang002li/dsh-fuzzy-memory#f21f442c2a3b386cf347135e8eaab224084a6410
READMECompatibilityVersions

Compatibility and provenance

Fuzzy Memory is published as dsh-fuzzy-memory and currently resolves to version 0.2.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/17/2026

Versions

0.2.0stable
10/17/2026

Related plugins

Loading related plugins…

Latest
0.2.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/17/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in memory-context.

Ab Memorydsh-ab-memory--- description: "The dsh-ab-memory package: a cross-session, file-backed agent memory with five tools (remember / recall / forget / load_skill / distill) and an always-on light injection." kind: "package-reference" ---Contextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.

README

dsh-fuzzy-memory

给 DeepSeek Harness 的模糊记忆插件。作者:YYY(仓库:yang02li/dsh-fuzzy-memory)。

它不存全文,只存「关键词 + 一句话印象」;下一次撞上相关话题时,它可能想起来,也可能想不起来;时间久了会忘。这就是设计目标——像人,而不是数据库。

适配 DSH 0.2.0-rc.2(用到 agent/pre-step、systemPrompt、tools 接口)。DSH 大版本升级后请回归测试。

安装(从商城 / npm)

dsh plugin --profile web add dsh-fuzzy-memory

或从 GitHub:

dsh plugin --profile web add github:yang02li/dsh-fuzzy-memory

装完重启 DSH,插件默认开启。开关与参数在 cordis.patch.yml 里按 id 覆盖。

它做什么

能力说明
随机抽取你每说一句话,有 sampleRate(默认 35%)的概率被抽一个关键词,配一句话印象存到本地
核心档案「我叫阳阳 / 我喜欢喝乌龙茶 / 我住杭州」这类显式事实单独存成 profile,每段会话开头强制带上,不靠关键词碰运气
显式记忆句子里出现「记住 / 我喜欢 / 我叫 / 生日 / 下次」等触发词时,无条件记一条
模型主动记提供 fuzzy_remember 工具,模型觉得值得记时自己调
按需想起每轮对话前,用你这句话给所有记忆打分,命中一条就在对话里注入「你模糊记得:……」。分数低于阈值就什么都不注入——那就是「想不起来」
会遗忘30 天没被想起,置信度打八折;低于阈值从检索里消失;库超过上限时按「可信度 × 新鲜度」淘汰
主动回忆提供 fuzzy_recall 工具,模型想不起某事时可以翻记忆库
可选人设在配置里填 persona 会追加到系统提示词;打开 personaComplete 会替换整个系统提示词(陪伴模式)

关闭开关时,插件不注册任何东西,就是原生 DeepSeek。

本地开发 / 从源码安装

  1. 双击 install.cmd。它做三件事:自检记忆内核、拷插件到 profile、用 node 真 import 一次验证;任何一步失败都会自动回滚。
  2. 装完关闭 DSH 的黑色窗口,重新双击启动器。
  3. 新开会话,说一句「记住我叫阳阳」,再新开一个会话问「我叫啥」。

插件默认就是开着的。想回到原生模式,编辑 data\profiles\web\cordis.patch.yml 加一段覆盖,重启:

- id: dsh-fuzzy-memory
  config:
    enabled: false

如果双击被系统拦住(编码/权限问题很常见),直接在 PowerShell 里粘这一行:

& "D:\DeepSeek-Harness-Portable-0.2.0-rc.2\node.exe" "C:\Users\Administrator\Documents\deepseek-harness\default-workspace\dsh-fuzzy-memory\tools\install.mjs" "D:\DeepSeek-Harness-Portable-0.2.0-rc.2"

打包 / 发布

pack.cmd

产物在 dist\dsh-fuzzy-memory-0.2.0.tgz。发布到插件商城的完整步骤见 PUBLISHING.md。

配置

字段默认说明
enabledtrue总开关,关闭时插件不生效
persona空基础人设文本
personaCompletefalsetrue = 人设替换整个系统提示词;不要和自带 complete 人设的预设同时开
sampleRate0.35随机记忆采样率,0 = 只记显式触发
threshold0.5检索阈值,越高越不容易想起来
maxEntries300记忆库上限
cooldownTurns2同一条记忆至少隔几回合再出现
enableToolstrue是否注册 fuzzy_remember / fuzzy_recall;关掉省约 240 token/轮,自动记忆和注入照常

配置改动需要重启 DSH 才生效(插件只在启动时挂载)。

成本

项量级频率
两个工具 schema~240 token每轮(enableTools: false 可去掉)
核心档案卡~25 token每段会话一次,之后随历史重发
命中记忆卡~30 token命中时一次,之后随历史重发
额外模型调用0抽取、检索、衰减全在本地

关工具的方式(profile 的 cordis.patch.yml):

- id: dsh-fuzzy-memory
  config:
    enableTools: false

记忆存在哪

<DSH_HOME>\fuzzy-memory\memories.jsonl

每行一条:

{"id":"...","kw":["三体"],"gist":"黑暗森林那段还是很震撼","kind":"impression","conf":0.55,"t":1792...,"hits":1}

纯本地文件,可以直接看、直接改、直接删。

原理

  1. 抽取:中文没有分词器,用 2~4 字窗口 + 停用字过滤 + 取最长不重叠,抽到「三体」「黑暗森林」这类词;抽不到像样的就跳过。
  2. 打分:
    0.6 × 关键词重合 + 0.2 × 新鲜度 + 0.1 × 置信度 + 0.1 × 随机抖动
    
    抖动是故意的:同一句话,有时想得起,有时想不起。
  3. 注入:命中时在用户消息后追加一条 user 快照消息(不改系统提示词前缀,不破坏缓存),内容约 30 字。
  4. 衰减:只读计算,不反复改写文件;conf × 0.8^(天数/30)。

工具

  • fuzzy_remember(keywords, gist, kind?, confidence?) — 主动记一条
  • fuzzy_recall(query) — 主动检索,返回最像的 3 条

卸载

双击 uninstall.cmd,重启 DSH。记忆文件保留,想清空就删 <DSH_HOME>\fuzzy-memory\。

已知限制

  • 中文关键词是启发式抽取,质量不如模型判断;重要的事让它调 fuzzy_remember。
  • 注入的记忆是持久消息,会占一点上下文(约 30 token/次),只在命中时发生。
  • 插件目前是 host 侧,没有独立 UI;开关和参数在「设置 → 插件」的表单里。
  • 配置改动需要重启;未做热重载。