seriousz158/dsh-memory52

dsh-git-memory

适用于 DeepSeek Harness 的本地 Git 驱动长期记忆捆绑包,支持系统提示词快照注入、带稳定引用的上下文读取工具及使用度元数据更新。

AI 分析

核心用途是提供本地、安全的长期记忆管理。适合需要智能体具备跨会话记忆检索能力,且希望记忆数据通过本地 Git 仓库进行版本控制的用户。

套件
dsh-git-memory
版本
0.8.0
授權
MIT
最近更新
2026年8月21日

安裝

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

v0.8: usage feedback, cited context, and read tools

v0.8 adds a bounded startup snapshot and host-owned read tools without adding settings UI:

  • When memory is enabled, the current summary.md is injected into the system prompt as a bounded, explicitly untrusted `` data block (16 KiB maximum). An unreadable snapshot falls back to the static memory instructions.

  • memory.context({ query, limit }) returns bounded memory bodies with stable source citations ([source: ... · id: ...]), while preserving the existing memory.search() API.

  • Each context read updates metadata-only usage in .sync/usage.json with usage_count and last_usage; the sidecar is private, atomic, and ignored by Git. Existing repositories also receive a local .git/info/exclude entry without changing tracked memory files.

  • Query matches are selected deterministically, then ordered by usage count, recent use, and path. Expired records are never returned.

  • The model can call memory_search (ranked snippets) and memory_context (bounded records ordered by usage) as read tools. They return JSON with relative-path citations; the host owns all filesystem access and the model never receives Git or sidecar paths.