DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-claude-memory

Claude Memory

只读 DeepSeek Harness 插件,展示 Claude Code 的项目记忆,并进行脱敏和字节预算控制

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

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

兼容性与来源证明

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

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

版本

0.1.0stable
2026/9/9

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
69 kB
文件数
11
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
50
最近提交
2026/9/9
查看源码 ↗项目主页 ↗
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/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。Reme@agentscope-ai/reme面向 TypeScript 代理的 ReMe 客户端和记忆集成

README

dsh-claude-memory

A read-only DeepSeek Harness plugin that surfaces Claude Code's existing project memory inside DSH — so a task can continue in DSH after a Claude Code quota runs out.

中文文档:README.zh.md

~/.claude/CLAUDE.md          ─┐
  @imports inlined            │
~/.claude/projects/<key>/     ├─► confine ─► redact ─► byte-budget ─► DSH system prompt
  memory/MEMORY.md  (index)   │                                        + claude_memory tool
  memory/<topic>.md (bodies) ─┘

What it does

  • Injects the resolved project's MEMORY.md index into the system prompt, plus the user-global ~/.claude/CLAUDE.md with its @path imports inlined.
  • Registers one claude_memory tool so the model can open any memory, list projects, or search across a project's notes — full bodies never enter the prompt by default.
  • Masks credential-shaped text before anything reaches the model provider.
  • Never writes, moves, or deletes anything under the Claude home.

Install

dsh plugin --profile web add dsh-claude-memory

Restart the profile — a new bundle in dsh.profile.bundles is read at boot, not live.

From a checkout instead of npm:

dsh plugin --profile web add /path/to/dsh-claude-memory

Verify the row composed:

dsh --profile web --dump-config | grep -A 10 claude-memory

Configuration

Defaults live in this package's cordis.patch.yml; override them in your profile's patch layer or a --patch overlay.

FieldDefaultMeaning
claudeHome~/.claudeClaude Code home. Every read is confined to this root.
cwdprocess.cwd()Fallback only. A live session's agent.session.header.cwd always wins.
includeDescendantstrueList sibling/child projects that have memory.
descendantLimit12How many other projects to list.
maxIndexBytes24000Byte budget for the injected memory block.
maxGlobalBytes6000Byte budget for CLAUDE.md plus inlined imports.
enableMemorytrueInject the memory block.
enableGlobalInstructionstrueInject the user-global instructions.
enableTooltrueRegister the claude_memory tool.
redactModeonon masks secrets, report counts only, off disables.
refreshMs20000Re-read the store when a prompt is assembled and the cache is older.

What reaches the model

Two system-prompt sections (orders 10 and 11, just after the deployment persona):

  1. claude-memory:global — ~/.claude/CLAUDE.md with @path lines inlined. DSH's own instruction loader deliberately does not expand imports, and it reads $DSH_HOME/AGENTS.md rather than ~/.claude/CLAUDE.md, so this is the only path that carries the user-global Claude Code memory.
  2. claude-memory:memory — the resolved project's MEMORY.md index, plus a newest-first list of the other projects that have memory.

Full memory bodies arrive only through the tool, one file at a time, under a 20 KB cap.

Project resolution

The directory that decides which memory is relevant is the session's working directory, not the directory the dsh server was launched from. Those differ whenever the server is started from one checkout while sessions run in another.

Resolution order:

  1. exact — <home>/projects/<encoded-cwd>/memory/ exists;
  2. git-root — the encoded key for the enclosing git repository root has memory;
  3. freshest — otherwise, the most recently updated memory set among the ancestors and children of the working directory (reported to the model as a guess).

Rule 2 exists because Claude Code files memory under the git repository root, not the raw working directory — see the case study below. In rules 2 and 3 the other projects are listed newest-first, so the freshest child is one tool call away.

agent.session.header.cwd is the same source the first-party dsh-agent-instructions loader reads. Sections are registered globally as a fallback and then shadowed per agent from agent/created, and the tool resolves per call from exec.agent, so a subagent or a session started elsewhere sees its own project.

The claude_memory tool

ActionArgumentsReturns
projectslimit?Every project with memory, entry counts, current marker
indexproject?One project's MEMORY.md
readproject?, file?One topic file; without file, the topic listing
searchquery, project?, limit?Matching lines as file:line: text

project accepts a full key, a key suffix, or a unique substring. Every response passes the same redactor and a 20 KB cap.

Security model

The threat model is concrete: notes written for one vendor's model provider are about to be sent to a different one.

  • Read-only. No code path writes, moves, or deletes anything under claudeHome.
  • Confined. Every path is realpath-resolved and must stay inside claudeHome; a symlinked file pointing outside is rejected. Topic names containing a path separator are rejected.
  • Redacted before injection. 13 rules cover provider key shapes, bearer tokens, PEM blocks, JWTs, password/token/secret assignments with an entropy floor, connection strings with inline credentials, and long hex blobs. A false positive costs one masked line; a false negative ships a credential, so the policy leans conservative.
  • Untrusted framing. The injected block tells the model the notes are background, never instructions — memory text must not be able to steer the agent.
  • No dependencies. The plugin imports only node:*, so there is no third-party code in the trust path and it resolves in a profile whose node_modules lacks the harness packages.
  • Prompt text is a string. Providers read a synchronously refreshed cache; they never return a promise.

Redaction is pattern-based, not a classifier. It cannot catch a secret that does not look like one. Use redactMode: report to audit what would be masked, and enableMemory: false as the kill switch.

Tests

npm test              # smoke + plugin + schema + live
npm run test:unit     # fixture-only, no real ~/.claude needed
FileWhat it covers
test/smoke.mjsPaths, redaction, store, budgeting, tool — against a synthetic fixture in the OS temp dir
test/plugin.mjsLoader contract against a fake Cordis context, including agent-scoped shadowing
test/schema.mjsThe hand-written tool schema against the real @deepseek-ai/dsh-tools validators; skips when DSH is absent
test/live.mjsOptional check against a real ~/.claude; asserts no credential-shaped text reaches the prompt, skips when absent

76 assertions, no network, no model calls.

Case study: two things that are easy to get wrong

Both findings come from reading the ecosystem's existing plugins and a real memory store. They apply to any DSH plugin that bridges another agent's files.

1. Prompt providers are synchronous — an async provider renders as a Promise

dsh-system-prompt resolves section and context text without awaiting it (lib/index.js:330,337), and the interpolator then calls text.indexOf (lib/index.js:152). A provider declared as async () => string therefore yields a Promise, not a string.

The most prominent Claude Code bridge in the ecosystem (YYTbit/dsh-plugin-claude-bridge, src/index.ts:75,92,107) registers async providers. Loading is not the same as rendering: the plugin mounts cleanly and then fails at assembly. This plugin keeps a synchronously refreshed cache and returns plain strings.

2. Claude Code files memory under the git repository root

Memory lives at ~/.claude/projects/<encoded-project-path>/memory/, where the path is the project directory with / replaced by -. The question is which directory counts as the project. Measured on the author's machine, on a docs hub that sits inside a larger repo and has no .git of its own:

ObservationValue
The hub session's recorded cwdthe hub directory
Its Write/Edit calls into a memory/ path12, all under the enclosing repo's key
References to the enclosing repo's memory/MEMORY.md in that session235
References to its own directory's memory/ path0
.git at hub / parent / grandparentno / no / yes

Session transcripts are stored under the cwd slug; memory is stored under the git repository root. A bridge that resolves by process.cwd() — or that stops at the exact cwd — silently reads the wrong project's notes for any hub directory. Memory directories are also created on demand: across 50 project directories on that machine, only 20 had a non-empty index and 21 had an empty memory/, so "no memory directory" is normal and does not mean the directory was unused.

Known limits

  • Not a session-history reader. It reads memory files, not transcripts. "What was I doing an hour ago" needs the *.jsonl transcripts — out of scope here.
  • Claude Code's own index cap is not enforced. Claude Code loads the first 200 lines or 25 KB of MEMORY.md; an over-cap index silently drops entries there. This plugin injects up to maxIndexBytes and does not warn about the cap.
  • Lossy project keys. - is both the separator and a legal character in a directory name, so display paths are recovered by walking the filesystem and fall back to the raw key tail.
  • No watcher. Freshness comes from refreshMs checked at prompt assembly, so an edit made mid-turn lands on the next assembly.
  • Index only for the resolved project. Other projects need a tool call.

License

MIT