精选
为什么选中它
待人工精选——以下事实来自源码仓库。
它能做什么
Memory enforcement plugin for DeepSeek Harness — bridges opencode-memory MCP server with a hard protocol gate
适合谁
想用 DSH 获得这项能力的用户;装前建议先看源码和文档。
风险提示
- 没有明确许可证,使用前确认授权。
Memory enforcement plugin for DeepSeek Harness — bridges opencode-memory MCP server with a hard protocol gate
待人工精选——以下事实来自源码仓库。
Memory enforcement plugin for DeepSeek Harness — bridges opencode-memory MCP server with a hard protocol gate
想用 DSH 获得这项能力的用户;装前建议先看源码和文档。
dsh plugin --profile web add github:baaai123/dsh-memory-protocol 作者没有声明支持的平台。
@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-memory-protocol 默认用 python3 -m memory_skill.mcp_server 启动 MCP server。路径可通过环境变量覆盖: | 环境变量 | 默认 | 说明 | |---|---|---| | MEMORY_SKILL_PYTHON | python3 | 解释器路径 | | MEMORY_SKILL_DIR | process.cwd() | memory-skill 项目目录 | | MEMORY_SKILL_DB_PATH | (未设) | 记忆库路径,server 默认 memory.db | | IMPORTANCE_API_KEY | (未设) | LLM 重要性评分 key(可选) | ## 配置 memory-protocol 的配置项(cordis.patch.yml 中可调): yaml config: enforceWeave: true # 工具调用前强制 weave(未 weave 拒绝) injectWeave: true # 自动注入记忆上下文 autoIngest: true # 每轮自动存档 allowlist: [] # 豁免工具名(除 memory_* 外) ## 工作原理 dsh (Web / headless) ├─ memory-mcp @deepseek-ai/dsh-mcp-client ──> python3 -m memory_skill.mcp_server │ └─ 15 个 mcp__opencode_memory__* 工具 └─ memory-protocol 强制协议 ├─ tools/pre-execute 未 weave → deny ├─ agent/pre-step weave + 注入 └─ agent/turn-stopping 自动 ingest ## License MIT不看 Star,人工一条条挑的。
把 DSH 的 settings.yaml 做成可视化看板:所有已注册的 settings namespace——包括官方界面从未覆盖的第三方插件配置——都渲染成可编辑表单。项目还早,但方向很对:告别手改 YAML。
给 DSH 的 DIY 轨迹可视化:把 agent 的计划与执行画成图,不用翻原始日志也能看清它在干嘛。项目还早,但补上了「一眼看懂 agent 在做什么」这个真实缺口。
从 Claude Code / Codex 把活派给 DSH:在宿主内拉起带分级预设的 DSH agent 会话,看原生子代理进度,还能借它的多模态桥给纯文本的 DSH 补上视觉和生图。编排型插件,把 DSH 变成其他编码 agent 的后端。