dsh-memory-canvas
Agent 与会话 活跃维护

dsh-memory-canvas

guobinmengxiang-rgb/dsh-memory-canvas

支持大型工具日志卸载至refs目录的Markdown文件,同步保留Mermaid画布,通过node_id即可快速回溯对应内容,无后台进程常驻,无需额外依赖。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
7 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:guobinmengxiang-rgb/dsh-memory-canvas
git clone https://github.com/guobinmengxiang-rgb/dsh-memory-canvas.git
git clone git@github.com:guobinmengxiang-rgb/dsh-memory-canvas.git
README.md main

dsh-memory-canvas

DeepSeek Harness plugin. Offload bulky tool logs to refs/*.md. Keep a Mermaid canvas in context. Recall by node_id. Zero daemon.

CAUTION: don't pip the wrong dsh. Official CLI: npx @deepseek-ai/dsh web. The PyPI package deepseek-harness-cli is a different tool (dsh doctor / dsh chat).

GitHub topic: dsh-plugin. Chinese: README.zh.md

Demo (no dsh)

node demo.mjs

Writes .dsh-memory/refs/{id}.md, prints the canvas, recalls by id, and asserts the body matches.

Install into a profile

This package is plain JavaScript. There is no prepare or build step, so a git install does not need allowBuilds.

dsh plugin --profile web add github:guobinmengxiang-rgb/dsh-memory-canvas

Check the composed layer without booting:

dsh --profile web --dump-config

You should see a dsh-memory-canvas layer. Then start the profile as usual.

Official CLI is @deepseek-ai/dsh (today 0.1.0-rc.6).

Tools

The agent must call these tools. This plugin does not auto-intercept tool logs.

Tool Params Result
memory_offload title, body (required) short id, path, canvas updated
memory_recall id (required) stored body (truncated at 8k with a note)
memory_canvas none Mermaid markdown of the task canvas

Storage (default): <cwd>/.dsh-memory/canvas.md and <cwd>/.dsh-memory/refs/{id}.md. Override root with DSH_MEMORY_DIR.

Canvas nodes use a 24-character title. Full text lives in refs/.

What this is not

Inspired by Tencent's short-term symbolic memory (MIT idea, our code): refs + Mermaid canvas + node_id.

Honest limits

  • DeepSeek Harness is a developer preview: THERE WILL BE COMPATIBILITY-BREAKING CHANGES.
  • The plugin runs on your machine.
  • This bundle cordis.patch.yml uses the package name dsh-memory-canvas, not a filesystem path.

Official docs and related

License

MIT (c) 2026 国彬 张