LISHUANGXI1412/dsh-memory-local ↗★ 0

dsh-memory-local

Local-only cross-session memory for DSH with tools, system-prompt injection, and a Settings page. 适合需要跨会话共享上下文的用户,纯本地存储,支持全局和项目级记忆。

パッケージ
dsh-memory-local
互換性
未検証
バージョン
0.1.1
ライセンス
MIT
最終更新
2026/10/18

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LISHUANGXI1412/dsh-memory-local

ドキュメント

README 全文を読む ↗

dsh-memory-local

Local-only cross-session memory for DeepSeek Harness.

  • Agent tools: memory_remember, memory_recall, memory_list, memory_forget, memory_inspect.
  • Relevant entries are injected into the system prompt as a bounded local-memory block (never as instructions).
  • Settings → Memory lets you manage project and global memories: add, edit, pin, search, delete, and preview the next injection.

Storage

Default: ~/.dsh/memory/

  • global.json — entries shared by all workspaces.
  • projects/.json — per-workspace entries.
  • index.json — workspace path → project id.

No network, no embeddings, no cloud. DSH_MEMORY_DIR overrides the directory.

Scope

  • Default: project (current workspace).
  • scope: "global" is opt-in, for stable user preferences that should follow every workspace.

Safety

  • Explicit writes only; conversations are not captured automatically.
  • Credential-looking content (npm_, ghp_, github_pat_, sk-, Bearer) is rejected.
  • Content is capped at 4 KiB; injection is capped at 8 entries / 2000 characters.
  • memory_forget and memory_inspect are first-class; deletion is explicit.

Install

# install the local checkout into a profile
plugin_manager install_bundle 

Then open Settings → Memory; the page is registered through settings.section.

Notes

The Client half requires @deepseek-ai/dsh-typert-protocol for the Host↔Client Remote bridge. The Host half remains usable without the settings page.