elementor-i/dsh-agentmemory ↗★ 1
@dsh-external/dsh-agentmemory
agentmemory for DeepSeek Harness (dsh):通过本地 REST 服务器提供完整的 memory_* 工具、捕获钩子和上下文注入
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:elementor-i/dsh-agentmemory说明文档
阅读完整 README ↗dsh-agentmemory
DeepSeek Harness 的 agentmemory 集成 —— 完整的 memory_* 工具集、自动捕获 hooks、可选的上下文注入,全部通过本地 REST 服务完成。
dsh-agentmemory 把 agentmemory(面向编码 agent 的本地记忆服务器)接入 DeepSeek Harness(DSH)。它提供完整的 memory_* 工具集,自动捕获会话、提示词与工具活动的 observation,并可把召回到的上下文注回系统提示词 —— 全程走本地 REST 服务,无需 MCP 桥。
特性
- 完整工具面 —— 全部 54 个
memory_*工具(8 个 core)映射到/agentmemory/*,外加memory_observe和任意端点的memory_http逃生舱。 - 自动捕获 —— 会话、提示词、工具调用、子代理、工作流、审批活动在后台被记录为 observation。
- 上下文注入 —— 可选;会话召回的上下文会加入系统提示词。
- 默认安全 —— 密钥脱敏、逐调用超时、非阻塞观察、破坏性工具用开关门控。
- 无需 MCP —— 没有 stdio 桥、没有子进程;唯一依赖是运行中的 REST 服务(
localhost:3111)。
前置条件
本机运行着 agentmemory 服务(默认 http://127.0.0.1:3111,viewer 在 3113):
curl -fsS http://127.0.0.1:3111/agentmemory/livez
# 健康时输出 {"service":"agentmemory","status":"ok"}
服务不可用时,插件会记录一条告警,memory_* 工具返回错误,但 harness 本身不受影响、照常运行。
安装
原生挂载
git clone https://github.com/elementor-i/dsh-agentmemory ~/dsh-plugins/dsh-agentmemory
往 ~/.dsh/config.yaml(或对全部 profile 生效的 $DSH_HOME/cordis.patch.yml)加一段 insert patch:
- insert:
- id: dsh-agentmemory
name: '$HOME/dsh-plugins/dsh-agentmemory/lib/index.js'