guobinmengxiang-rgb / dsh-memory-canvas

已收录

DSH plugin: offload bulky tool logs to refs/*.md, keep a Mermaid canvas, recall by node_id. Zero daemon. Don't pip the wrong dsh.

main工具会话 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:guobinmengxiang-rgb/dsh-memory-canvas

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 a11f501同步于 2026年8月17日

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.

ToolParamsResult
memory_offloadtitle, body (required)short id, path, canvas updated
memory_recallid (required)stored body (truncated at 8k with a note)
memory_canvasnoneMermaid 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.

License

MIT (c) 2026 国彬 张

仓库信息

开发语言
JavaScript
许可证
MIT
最后更新
2026年8月17日 06:41

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。