Yihong89/dsh-plugins--packages-codebase-memory ↗★ 2
dsh-codebase-memory
DeepSeek Harness plugin: persistent per-workspace codebase knowledge memory (memory_store / memory_recall / memory_forget / memory_list tools, /memory command), stored in a project-file JSON store.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-codebase-memory
A DeepSeek Harness plugin giving the agent a persistent, per-workspace
codebase memory — the same function as the original codebase-memory-mcp:
knowledge the agent learns about your codebase (how a function works, why a
decision was made, project conventions) is stored durably and recalled in
later sessions, so each new session starts where the last one left off instead
of re-discovering the codebase.
One host-plane plugin row registers:
memory_store— persist one piece of knowledge (entity / decision / convention / note). Upserts by(kind, subject, scope)or by explicit id.memory_recall— keyword search over stored knowledge (camelCase and snake_case aware), ranked by relevance then recency; empty query lists the most recent entries.memory_forget— delete by id or subject.memory_list— all entries, newest first, optional kind filter./memory— human command: recent entries or keyword search.- optional prompt hint — a one-line system-prompt section telling the model the memory exists (on by default).
- optional session-start injection — inject the most recent memories into each new session's context (off by default).
Storage
One JSON file per workspace, written atomically (tmp + rename), readable by every session and process sharing the workspace (mtime-based refresh):
/.dsh-memory/memory.json
Like codebase-memory-mcp's graph artifact, the file lives in the project,
so it survives machine changes and can be committed or ignored however you
prefer (add .dsh-memory/ to .gitignore if you don't want it in the repo).
Install
Requirements: a DSH profile with the tools and commands services (the
web and headless profiles provide them via dsh-base).
# 1. make the plugin available to your profile (installs from this GitHub repo)
dsh plugin --profile web add -w 'github:Yihong89/dsh-plugins#main&path:packages/codebase-memory'
# 2. activate it in the profile's patch layer
# add to ~/.dsh/profiles/web/cordis.patch.yml:
#
# - insert:
# - id: codebase-memory
# name: 'dsh-codebase-memory'
# the loader hot-reloads config changes; no restart is needed