← 返回列表
D

dsh-memory-protocol

v0.1.0 · 2 天前发布

Memory protocol enforcement plugin for DeepSeek Harness — forces memory_weave before tool calls, auto-ingests session turns, injects memory context into agent steps. Bridges the opencode-memory MCP server with a hard protocol gate.

deepseek-harnessdshdsh-pluginmemorymcp

README

dsh-memory-protocol

English | 中文

为 DeepSeek Harness 打造的长期记忆插件 — 桥接 opencode-memory MCP 服务器,并附加强制记忆协议。

哼,杂鱼又忘事了吧? 工具调用前先给我 weave 记忆、每轮对话自动存档——省得你三秒重置、重复学习。才、才不是特地为你准备的,只是看不得你每次从零开始犯蠢。

作用

这个 bundle 装两样东西:

1. memory-mcp — 通过官方 @deepseek-ai/dsh-mcp-client 桥接 opencode-memory 的 Python MCP 服务器(15 个 memory_* 工具:weave/search/ingest/classify/teach_skill 等)
2. memory-protocol — 强制协议插件,三个 hook:
- tools/pre-execute — 未 weave 就调其他工具 → 硬拒绝
- agent/pre-step — 每轮自动 weave 并注入记忆上下文
- agent/turn-stopping — 每轮自动 ingest 对话

安装

```sh

1. 先装 opencode-memory 的 Python server(提供 memory_skill.mcp_server)


pip install memory-skill

2. 安装本插件


dsh plugin --profile web add

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-memory-protocol
Repo
Engines
{}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}