meisijiya/dsh-hindsight-memory ↗★ 0
dsh-hindsight-memory
DeepSeek Harness plugin that bridges the Hindsight memory service to DSH with omp-identical read/write semantics (single shared bank, project tag stamping, project+global recall). 适合需要跨项目共享记忆库,并与omp保持相同记忆读写逻辑的用户。
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:meisijiya/dsh-hindsight-memoryドキュメント
README 全文を読む ↗配置
- insert:
- id: hindsight-memory
name: 'dsh-hindsight-memory'
config:
enabled: true # 总开关
inject: true # 是否注入常驻系统提示词段
writeEnabled: true # false = 只读(灰度第一步)
apiUrl: 'http://127.0.0.1:8888'
bankId: shared # 必须与 omp 的 hindsight.bankId 一致
bankIdPrefix: ''
scoping: per-project-tagged # global | per-project | per-project-tagged
types: [world, experience] # 与 omp 的 recallTypes 同值
budget: mid
reflectBudget: low
maxTokens: 1024
recallMaxQueryChars: 800
autoRecall: true # 首回合自动召回(与 omp 的 autoRecall 默认值一致)
autoRetain: true # 回合结束自动留存(与 omp 的 autoRetain 默认值一致)
retainEveryNTurns: 3
sectionOrder: 950
hygieneThreshold: 0.9 # 近重复判定阈值(越高越保守)
hygieneMaxFacts: 500 # 单次扫描的事实条数上限
hygieneProjectMission: '只保留该项目中长期有效的技术决策、约定、硬约束与踩过的坑;不保留一次性进度、临时状态与重复表述。'
hygieneProjectMaxObservations: 40 # 项目层每个 scope 的 observation 上限
hygieneGlobalMission: '只保留跨项目长期有效的约定、环境事实与用户偏好;不保留一次性进度、临时状态与重复表述。'
hygieneGlobalMaxObservations: 30 # 全局层 observation 上限
配置写错不会炸 profile:所有非法输入一律回落到默认值(normalizeConfig 不抛错)。
autoRecall/autoRetain与 omp 的默认值对齐(都开)。想改成只读或纯手动,在插件配置面板里把writeEnabled或autoRetain关掉即可,不需要改代码。