DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

@dsh-external/dsh-layered-memory

Layered Memory

DSH 跨会话长期记忆:命名空间隔离 + L1 索引注入(存在性编码)+ 行动验证写入 + 内容级近重复候选 + BM25 全文检索 + 跨命名空间提升 + 自动蒸馏候选 + 溯源/归档/回滚 + 自动维护。

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

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

兼容性与来源证明

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

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

版本

0.7.0stable
2026/9/25

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Archive Manager@michengai/dsh-archive-manager可通过 NPM 安装的 DSH Web 插件,用于管理已归档的会话。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合三层记忆控制平面:持久化运行时上下文、可搜索的项目文档、可插拔的长期记忆、受保护的策略、WebUI 和无头工具。

README

简体中文 | English

dsh-layered-memory

Cross-session memory for DeepSeek Harness (DSH).

A DSH session loses its context the moment it ends. Come back to the same project tomorrow and you explain the environment again, and rediscover how you worked around that error last time. This plugin writes that kind of information to files on disk and pulls it back when a later session needs it.

Memory has three layers: an index, environment facts, and task experience. The L1 / L2 / L3 labels in the tool list below refer to those three.

What it looks like in use

Once installed, you just tell the agent.

The build command for this project is ```pnpm build && pnpm test~~, and the tests take about forty seconds. Remember that.

It writes the line into the memory store. Open a fresh session the next day and say "run the tests for me", and the command is already known.

It works the other way too. If you forget the flags a service needs, ask the agent to look them up in memory instead of scrolling back through old chats.

Install

dsh plugin --profile web add github:DDDFXYqiming/dsh-layered-memory

The plugin creates its directories and template files under <home>/.dsh/memory.

Usage

The agent decides when to read and write memory. The plugin registers one memory skill and 14 tools. Under progressive mode those tools stay hidden until the agent calls memory_activate once.

ToolPurpose
memory_listList all memory (L2 facts + L3 sops + pending + L1 chars/budget)
memory_readRead one entry (index / fact topic / sop filename) with provenance meta and related links; oversized entries return an outline plus head/tail excerpts, with full and from_line/to_line for the rest
memory_searchBM25 full-text search over facts, sops and archived entries
memory_writeWrite a memory (fact/sop, evidence required, name collision snapshots the old version; evidence is quoted line by line and suspected secrets in it are redacted; plain-text secrets in the body are refused)
memory_indexRebuild the L1 index auto-segment, keeping the [RULES] manual segment
memory_pendingList distilled candidates (fail-then-retry sequences)
memory_acceptPromote a pending candidate into a real entry
memory_updateUpdate an entry, keeping a history snapshot (body and provenance meta snapshotted together); new measurements can pass sourceSession/sourceSeqs, wording-only edits inherit the original source
memory_archiveArchive an entry (hidden from L1 and memory_read, file stays in place, still searchable, current version snapshotted first); unarchive: true restores visibility
memory_rollbackRoll back to the most recent .history/ snapshot (body and provenance meta restored together)
memory_expandExpand the original events behind sourceSession / sourceSeqs
memory_statsCounts for L2 / L3 / pending / archived and total size
memory_maintainMerge same-name duplicate sections, exact/near-duplicate candidates, index audit, stats, merge candidates, cold-entry review
memory_promotePromote project-local experience to the global namespace

Configuration

# a bare entry in the profile cordis.patch.yml, overriding the bundle row; do not duplicate the insert
- id: dsh-layered-memory
  config:
    memoryDir: ''              # defaults to <home>/.dsh/memory
    l1MaxChars: 12288         # character budget for the L1 index; over budget folds entries into category entries while rules stay intact
    progressive: true
    defaultNamespace: ''       # fixed namespace; empty lets autoNamespace decide
    autoNamespace: true        # session workspace dir name plus git branch (exec.agent.session.header.cwd); home falls back to default
    autoPending: false         # off by default, candidates are mostly tool-usage noise
    maintainEveryTurns: 20     # run auto-maintenance every N turns, counted across sessions
    reflectionEnabled: true    # master switch for reflection notices
    reflectPendingThreshold: 5 # only with autoPending on; 0 disables this rule
    reflectSopsThreshold: 40   # notice when active L3 sops reach this count; 0 disables the rule
    reflectCooldownTurns: 10   # minimum turns between two reflection notices
    nearDupeThreshold: 0.85    # token-set Jaccard threshold for near-duplicate candidates (reported only, never auto-archived)
    mergeCandidateThreshold: 0.45 # merge-candidate report threshold
    minTokensForFuzzy: 12      # shorter content only uses exact content comparison (case and inner whitespace preserved)
    heatHalfLifeDays: 14       # access-heat half-life in days
    recencyWindowDays: 7       # recency protection window for fresh entries
    coldReviewDays: 90         # cold-entry review window in days
    namespaceCacheTtlMs: 60000 # TTL for the autoNamespace git probe cache, in ms

Storage

Memory is a pile of markdown files, with no database behind it. The default location is <home>/.dsh/memory.

<home>/.dsh/memory/
├── <namespace>/                non-default namespace
│   ├── memory_management_sop.md
│   ├── index.txt
│   ├── facts.md
│   ├── sops/*.md
│   ├── pending/*.md
│   ├── archive/ / .history/
│   ├── memory-meta.json
│   ├── maintenance-report.json
│   ├── turn-state.json
│   ├── file_access_stats.json
│   └── reflection-state.json
└── with namespace default, the same files live at this root

You can back it up, commit it, or edit it by hand. The body refuses text that looks like a plaintext secret; suspected secrets in evidence and related links are redacted on write.

More

  • Design and scheduling (Chinese)
  • Development and testing (Chinese)
  • Changelog

License

MIT