dsh-git-memory
A local Git-backed long-term memory bundle for DeepSeek Harness
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:seriousz158/dsh-memory说明文档
阅读完整 README ↗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.mdis 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 existingmemory.search()API. -
Each context read updates metadata-only usage in
.sync/usage.jsonwithusage_countandlast_usage; the sidecar is private, atomic, and ignored by Git. Existing repositories also receive a local.git/info/excludeentry 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) andmemory_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.