seriousz158/dsh-memory52

dsh-git-memory

A local Git-backed long-term memory bundle for DeepSeek Harness

包名
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.