DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Context Memory — DeepSeek Harness 插件(DSH Plugin)
← Plugins

dsh-context-memory

Context Memory

为你的 dsh 代理提供跨会话记忆:进行记忆、回忆和重新验证,而不是想当然地假设。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-context-memory@0.7.1
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/16

版本

0.7.1stable
2026/10/16
0.7.0stable
2026/10/16
0.6.1stable
2026/9/19
查看其余 11 个版本

README

dsh-context-memory

Cross-session memory for your dsh agent — remembered, recalled, and re-verified instead of assumed.

Install

dsh plugin --profile web add dsh-context-memory

What it does

Every session with your agent starts from nothing. What you decided yesterday, which approach failed, the constraint you explained once — all of it is gone, and you explain it again.

This plugin keeps it, and — unlike a note file — re-checks the parts that can be checked.

  • Remember. A memory carries provenance: which session, which step, whether it came from you, the agent, or a plugin. "Why does the agent think it knows this" has an answer.
  • Recall. Retrieval is ranked (token overlap, recency, verification strength) instead of pasting every memory into the context window. Each hit reports the breakdown of its score, so a ranking is never something you have to trust.
  • Forget with a reason. A memory is superseded, never deleted. The wrong memories are the most valuable records in the log — they are the only thing that can explain a past decision.
  • Conflict detection. Two active memories about the same subject are reported as a conflict. The plugin does not pick a winner; the log does not say which one is right, and guessing would be the unfounded assertion this plugin exists to remove.
  • Verification. A memory whose statement has a checkable shape is compiled into a platform-aware guard and re-checked on demand. This is the part a notes file cannot do.

The point

A memory is a claim about the world. Storing it makes it available; it does not make it true. Statements like "the file README.md exists" or "config.json contains pnpm" were true when you said them and stop being true quietly.

So verify turns each checkable memory back into a check and runs it:

dsh-context-memory verify
passed      4f2a9c1b8e30  the file package.json exists
violated    7d1e0a55c9f2  the file README.md contains Installation
uncheckable 2b8f31aa0456  we settled on pnpm because yarn hoisting broke the build
broken      a91c4e77b0d3  the file scripts/release.sh exists

passed 1, violated 1, broken 1, uncheckable 1

Four outcomes, and the distinction between them is the whole point:

OutcomeMeaning
passedThe check ran and the memory holds.
violatedThe check ran and the world disagrees with the memory.
brokenThe check itself could not run — a typo, a missing binary. Not evidence about the memory.
uncheckableNo check could be compiled. The memory is still stored and recalled; it is just not verified.

verify exits non-zero only for violated. A broken guard is a defect in the check, and letting it turn a pipeline red is how a typo would get a true memory marked false — after which you learn to ignore the output.

Nothing is ever marked as verified because it was stored, and a memory supplied by the agent is never executed as a command: guards come from templates that only ever interpolate quoted file paths and literal search strings.

CLI

dsh-context-memory remember "the file package.json exists"
dsh-context-memory list
dsh-context-memory recall "how do we install"
dsh-context-memory conflicts
dsh-context-memory forget 4f2a9c1b8e30 "moved to bun"
dsh-context-memory verify        # exit 1 only on a real violation

Auto capture and recall injection (0.6.0+)

The plugin hooks into agent/pre-step to close the loop automatically:

  • Auto capture. When the user's message contains an explicit memory statement ("记住…", "remember that…"), the plugin distills and stores it before the agent sees the request. Each captured memory carries session provenance — which agent, which session — so "why does the agent think it knows this" always has an answer.

  • Recall injection. Before each agent step, the top-5 memories whose subject overlaps the user's text are folded into the request as a collapsible context message (source plugin/dsh-context-memory, form recall). Unresolved conflicts are included with a warning. The injection position is right after the claimed batch — the same slot the host's own context plugins use.

Both features can be toggled from the panel's 「集成」 card. When auto capture is off, memories are still stored via the CLI and service API. When recall injection is off, the plugin still records but does not inject.

Panel

A Context memory page inside Settings: active and superseded memories, verification status per memory, conflicts, provenance, and integration toggles. The host registers GET /api/context-memory.panel and rebuilds the payload from the log on every request, so the panel shows what is on disk rather than what was in memory at startup. A headless host has no web connection and simply skips the route.

Layout

PathRole
src/index.tsHost half — apply(ctx), exposes the contextMemory service
src/memory.tsFold the log, remember, supersede, conflicts, verify
src/store.tsAppend-only .memory/events.jsonl
src/guard.tsStatement → platform-aware check; run it; classify pass / violated / broken
src/recall.tsRelevance ranking with an explainable score
src/identity.tsId derived from the normalised subject, so repeats fold
src/cli.ts / src/bin.tsCommand-line entry, usable without dsh
src/routes.tsPanel and verify routes on the host's web connection
src/client/view.tsxBrowser half — pure rendering, statically tested in Node
src/client/index.tsxBrowser half — fetch and settings registration

Why the log is append-only

Current state is always a fold over the events, recomputed on each read. The alternative — a mutable store — lets the last writer decide what was always true, and "what did the agent believe on Tuesday, and why" becomes unanswerable. The log is the evidence, so a torn trailing line after a crash is dropped (recoverable) while damage anywhere else is reported rather than skipped.

Develop

npm ci
npm run typecheck
npm run build
npm test

License

MIT

收起版本
0.6.0stable
2026/9/19
0.5.1stable
2026/9/19
0.5.0stable
2026/9/19
0.4.1stable
2026/9/19
0.4.0stable
2026/9/19
0.3.0stable
2026/9/19
0.2.1stable
2026/9/18
0.2.0stable
2026/9/18
0.1.2stable
2026/9/18
0.1.1stable
2026/9/18
0.1.0stable
2026/9/18

相关插件

正在加载相关插件…

最新版
0.7.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
227.6 kB
文件数
39
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
93
最近提交
2026/10/16
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。