xingzoudefengye/dsh-project-memory ↗★ 0

dsh-project-memory

Bounded, git-committable project memory for DeepSeek Harness: five whitelisted .ai/ files with capacity budgets, structured entries, tiered retention, a stable prompt section, and explicit forgetting. 适合需要在项目仓库中持久化、结构化记录项目上下文和记忆的开发任务。

Package
dsh-project-memory
Compatibility
Unverified
Harness peer range
*
Cordis peer range
*
Version
0.2.1
License
MIT
Last updated
Oct 18, 2026

Other repositories with this package name

Install

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

配置

这个包没有用户级 YAML 配置键。 cordis.patch.yml 里的四行只有 id 和 name,没有 config:;行为由代码常量决定。你会编辑的 YAML 就是这四行本身 —— 它们故意分开,是为了只挂其中一部分:

- insert:
    - id: project-memory
      name: 'dsh-project-memory/service'
    - id: project-memory-section
      name: 'dsh-project-memory/section'
    - id: tool-project-memory
      name: 'dsh-project-memory/tool'
    - id: command-project-memory
      name: 'dsh-project-memory/command'
  • 只留前两行 = 纯存储 + 注入,不注册模型工具。
  • 去掉 command 行 = 没有 /memory 命令;去掉 tool 行 = 模型不能用 project_memory 读写。

不想动包内文件时,用 profile 自己的 patch 层(dsh 会在所有 bundle 层之后应用它)按 id 关掉某一行。例如只关模型工具、保留存储/注入//memory,编辑 $DSH_HOME/profiles/web/cordis.patch.yml(Windows 是 %USERPROFILE%\.dsh\profiles\web\cordis.patch.yml):