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.

Memory Triage — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
M

dsh-memory-triage

Memory Triage

DeepSeek Harness memory triage plugin: automatically determines whether memories should be retained or archived, and routes them to the project bucket or global bucket (rules first + LLM fallback)

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

npx -y @deepseek-ai/dsh plugin --profile web add github:AtinyFurina/dsh-memory-triage#6c779a0c66c41650abaed83de606020b2930d9fc
READMECompatibilityVersions

Compatibility and provenance

Memory Triage is published as dsh-memory-triage 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
8/28/2026

Versions

0.2.0stable
8/28/2026
0.1.0stable
8/24/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
GPL-3.0
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/28/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.

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.Memory@furongjun1999/dsh-memoryLingshu (Lingshu·líng shū) DeepSeek Harness plugin: a complete brain—long-term memory/knowledge flywheel/self-awareness/recursive reflection integrated with DSH, with conversations automatically distilled into the md_cg cognitive graph (md documents)

README

dsh-memory-triage

banner

DeepSeek Harness 记忆分诊插件:自动判断记忆保留 / 归档,并自动路由到项目桶或总体桶。

规则优先 + LLM 兜底。自动动作只做可恢复的归档,永不直接删除。

功能

  • 每轮对话结束自动分诊(防抖 5s + 阈值触发:新增 3 条或 3000 字符)
  • 全局条目(用户画像、沟通偏好、纪律等)留在总体记忆
  • 项目条目(具体项目的状态与决策)自动迁入 project 桶
  • 低价值条目(importance ≤ 2 且非全局豁免的 preference)归档
  • 近义重复条目自动合并(标题 dice 相似度 ≥ 0.62 或内容包含),其余归档
  • 规则拿不准的条目用 LLM 兜底判定(每批 ≤ 8 条,失败静默跳过)
  • 镜像 Markdown 与 dsh-mneme 格式字节级兼容,人工编辑仍可合并回库

安装

插件文件放到 ~/.dsh/profiles/web/plugins/dsh-memory-triage,在 ~/.dsh/profiles/web/cordis.patch.yml 挂载:

- insert:
    - id: dsh-memory-triage
      name: ./plugins/dsh-memory-triage/lib/index.js
      config:
        memoryDir: ~/.dsh/memory
        enabled: true
        debounceMs: 5000
        triggerThresholdCount: 3
        triggerThresholdChars: 3000
        archiveLowImportance: true
        llmFallback: true
        llmBatchSize: 8
        purgeDays: 30
        purgeOnSchedule: false

重启宿主后生效。

命令

  • /triage-run —— 立即全库分诊
  • /triage-purge —— 彻底删除归档超过 purgeDays 天(默认 30)的条目(仅限已归档)
  • /triage-persona <人格名> —— 切换当前人格:带旧人格标签的记忆自动隐去、通用记忆保持可见;/triage-persona none 清除标记恢复全部可见
  • /triage-repersona <新人格名> [新人设描述] —— 继承重写:把当前人格的带标签记忆按新人设改写一份副本(原文保留)并切换

人格标签(persona tagging)

  • 记忆条目可通过标签 persona:<名字> 归属某个人格;无该标签的条目为通用记忆,所有人格可见
  • 库中存有"当前人格"标记;注入、搜索、列表只显示"当前人格 + 通用"条目,其他人格的条目自动隐去
  • 切换人格零 LLM 消耗、零删除;切换时插件会用 LLM 扫描未打标的偏好/决策条目,把人格专属的条目补上旧人格标签(失败静默跳过,不阻塞切换)
  • 此过滤由 dsh-mneme 的本地补丁实现(inject/search/list 统一按当前人格过滤,实时生效无需重启)

配置

键默认说明
memoryDir~/.dsh/memorydsh-mneme 记忆目录(共用同一 SQLite)
enabledtrue总开关
debounceMs5000回合结束防抖
triggerThresholdCount3触发阈值(新增条数)
triggerThresholdChars3000触发阈值(新增字符)
archiveLowImportancetrue低价值偏好自动归档
minDice0.62合并相似度阈值
exemptKeywords内置清单全局豁免词(命中保留总体记忆)
projectKeywords内置清单项目词(命中迁入 project 桶)
llmFallbacktrueLLM 兜底开关
llmBatchSize8兜底每批条数
purgeDays30归档超期天数
purgeOnSchedulefalse分诊时自动清理超期归档(默认关)

安全设计

  • 自动分诊只做三类软操作:保留、迁移类型、归档(archived=1,可恢复)
  • 真删仅发生在 /triage-purge 或 purgeOnSchedule: true,且只作用于已归档条目
  • LLM 兜底失败 / 余额不足时静默跳过,绝不影响记忆写入
  • 与 dsh-mneme 多连接共用 WAL,busy_timeout 8000ms 串行化写入

测试

node --test test/triage.test.mjs

14 个单元测试覆盖分类规则、去重合并、LLM 决策解析。

License

GPL-3.0