elementor-i/dsh-agentmemory

agentmemory 用于 DeepSeek 工具箱(dsh):通过本地 REST 服务器提供完整的 memory_* 工具、捕获钩子和上下文注入。

Project Overview项目介绍

dsh-agentmemory is a DSH-native plugin that connects the independent local agentmemory memory server to DeepSeek Harness. It exposes the full set of 54 memory_* tools mapped to the agentmemory REST endpoints, and automatically captures DSH lifecycle events including session activity, prompts, and tool use as observations for memory storage. It also supports opt-in injection of recalled memory context into the DSH system prompt, and all integration happens over a local REST server with no MCP bridge required. You can configure it to expose only the 8 core memory tools if you don’t need the full feature set, and destructive tools are gated behind an opt-in flag for safety.

There are three supported installation methods for this plugin: manual native mount to your DSH plugins directory, installation via the official DSH CLI, and AI-assisted installation through the Oh-DSH-Desktop plugin manager. For the most common CLI installation, you can run npx -p @deepseek-ai/dsh dsh plugin --profile <profile-name> add @elementor-i/dsh-agentmemory to get it set up quickly. The plugin ships pre-compiled, so no build step is required after installation, you just need to restart DSH to activate it. This plugin is ideal for DSH users who work with long-running coding tasks that benefit from persistent agent memory across multiple sessions.

Before you can use the plugin, you need to have a local agentmemory server running on your machine at the default address http://127.0.0.1:3111. If the server is unavailable when DSH starts, the plugin will log a warning and the memory tools will return errors, but DSH itself will continue to run normally. All configuration options are optional and come with safe defaults, including automatic credential redaction and per-request timeouts. The plugin is released under the open-source MIT license, so you can use it freely for personal or commercial projects.

这是一个专为DeepSeek Harness(DSH)打造的原生插件,作用是将独立的本地agentmemory记忆服务器连接到DSH。它提供完整的memory_*工具集,能自动捕获DSH会话中的活动、提示词和工具调用作为观测记录,还支持可选的记忆上下文注入功能,所有通信通过本地REST服务器完成,不需要MCP桥接。它支持全部54个agentmemory工具,也可配置仅保留8个核心工具。

插件支持三种安装方式:原生手动挂载到DSH插件目录、通过官方DSH CLI命令安装,以及通过Oh-DSH-Desktop的AI辅助插件管理器安装。预编译产物已经提交到仓库,安装后无需额外编译,直接重启DSH即可加载使用。该插件为DSH添加了长期会话记忆能力,能帮助AI代理在长期开发任务中召回之前的工作上下文,适合需要处理多轮长周期开发任务的DSH用户使用。

插件运行的前提是本地已经启动agentmemory服务器,默认访问地址为http://127.0.0.1:3111,如果服务器不可用,插件只会记录警告,不会影响DSH本身的正常运行。所有配置项都是可选的,带有安全默认值,支持自动凭据脱敏,默认禁用破坏性危险工具。本项目采用MIT许可证开源,用户可免费使用、修改和分发代码。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile desktop add @elementor-i/dsh-agentmemory

把 elementor-i/dsh-agentmemory 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-agentmemory

agentmemory for DeepSeek Harness — full memory_* tools, automatic capture hooks, and opt-in context injection over the local REST server.

English · 中文

License: MIT CI dsh

dsh-agentmemory connects agentmemory, a local memory server for coding agents, to DeepSeek Harness (DSH). It exposes the full memory_* tool set, captures observations automatically from sessions, prompts, and tool activity, and can inject recalled context into the system prompt — all over the local REST server, with no MCP bridge required.

Features

  • Full tool surface — all 54 memory_* tools (8 core) mapped to /agentmemory/*, plus memory_observe and a memory_http escape hatch for any endpoint.
  • Automatic capture — session, prompt, tool-use, subagent, workflow, and approval activity are recorded as observations in the background.
  • Context injection — opt-in; recalled context from the session is added to the system prompt.
  • Safe by default — credential redaction, per-call timeouts, non-blocking observation, and destructive tools gated behind a flag.
  • No MCP required — no stdio bridge, no child process; the running REST server (localhost:3111) is the only dependency.

Requirements

An agentmemory server running on the same machine (default http://127.0.0.1:3111, viewer on 3113):

curl -fsS http://127.0.0.1:3111/agentmemory/livez
# {"service":"agentmemory","status":"ok"} when healthy

If the server is unavailable, the plugin logs a warning and the memory_* tools return errors; the harness itself keeps running normally.

Install

Native mount

git clone https://github.com/elementor-i/dsh-agentmemory ~/dsh-plugins/dsh-agentmemory

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev free-vision-skill 下一个 Next dsh-usage-plugin →