xjhao-heim/dsh-task-memory ↗★ 0
dsh-task-memory
DeepSeek Harness plugin: workspace-scoped task memory. Reusable procedures are stored one card per task, the card catalog is the index, and card bodies load on demand. 适合需要跨会话沉淀和复用任务步骤的开发者,按时间自动分档检索。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xjhao-heim/dsh-task-memory五档(天数可配置)
| 档位 | 默认距离 | 在注入索引里的呈现 |
|---|---|---|
| 近期 | ≤ 7 天 | 名字 + 描述 + 触发词 + 年龄 + 使用次数 |
| 之前 | 8–30 天 | 同上 |
| 很久之前 | 31–90 天 | 名字 + 描述(去掉触发词)+ 年龄 |
| 远古 | 91–365 天 | 只有名字,合并成一行 |
| 遗忘 | > 365 天 | 不列出,只报一行数量 |
这就是"检索频率不同":越旧的卡越不容易出现在模型眼前,但一次也没丢。
配置
- id: dsh-task-memory
name: dsh-task-memory
config:
maxCatalogCards: 50 # 注入索引的卡片上限
maxBodyChars: 24000 # 单张卡正文的读取上限,超出截断并给出数据库位置
includeSystemPrompt: true
autoCapture: true # 回合结束自动追问是否落卡;设 false 关闭
defaultTiers: [recent] # 面板默认显示哪些档位
tierDays: # 新鲜度档位的天数边界,必须递增
past: 7 # ≤7 天算「近期」
old: 30 # ≤30 天算「之前」
ancient: 90 # ≤90 天算「很久之前」
forgotten: 365 # ≤365 天算「远古」,超过则「遗忘」
这些都可以在「设置 → 任务记忆」里改,改完立即生效并存进设置文件(优先于这里的 loader config)。