dsh-memory-local
其他 活跃维护

dsh-memory-local

LISHUANGXI1412/dsh-memory-local

完全本地存储会话记忆,跨会话自动保留上下文。通过系统提示注入无缝接入对话,内置设置页可随时查看、清理或禁用记忆,全程离线运行,保护数据隐私。

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

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/<id>.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 <absolute path to this directory>

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.