ZyxQl-Ala/dsh-decay-memory ↗★ 0

dsh-decay-memory

Decay-based agent memory for DeepSeek Harness: entries gain weight when mentioned, fade and shrink when forgotten (200-day half-life by default), and pinned entries never decay. Ships with a settings panel inside DSH Settings.

包名
dsh-decay-memory
兼容性
待验证
Harness 依赖范围
>=0.2.1-rc.1 <0.3.0-0
版本
0.3.0
许可证
MIT
最近更新
2026年10月28日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ZyxQl-Ala/dsh-decay-memory

配置

{
  "halfLifeDays": 200,      // 半衰期(天);调小 = 忘得更快
  "fadeBelow": 0.5,         // 低于这个强度开始「渐淡」
  "dropBelow": 0.06,        // 低于这个强度真正删除
  "maxEntries": 24,         // 最多保留多少条(按最弱淘汰)
  "promptMaxEntries": 12,   // 每轮最多注入几条
  "promptMaxChars": 2000,   // 注入正文上限
  "promptEnabled": true,
  "stateFile": ""           // 默认 $DSH_HOME/decay-memory/memory.json
}