sherlockguo-yc/dsh-session-memory ↗★ 0
dsh-session-memory
One-click session memory for DeepSeek Harness: mounts the official session-query tools and auto-injects a digest of prior sessions at session start.
AI 分析
核心用途是在新会话启动或恢复时,自动检索并注入当前工作区最近历史会话的摘要,保持上下文连续性。适合在同一工作区内进行连续性、关联性任务开发的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sherlockguo-yc/dsh-session-memoryドキュメント
README 全文を読む ↗配置
安装后可通过 profile 的 cordis.patch.yml 覆盖配置(插件行 id: session-memory):
| Key | 默认 | 含义 |
|---|---|---|
enabled | true | 总开关;false 时保留官方检索工具但停止自动注入 |
maxSessions | 10 | 摘要最多列出多少个最近的会话 |
workspaceOnly | true | 只列出 cwd 与当前会话相同的历史会话(无 cwd 时静默跳过) |
injectOn | ['startup','resume'] | 触发注入的会话生命周期来源(startup/resume/clear/compact) |
header | 见源码 | 摘要的标题行文案 |
示例(在 profile 的 cordis.patch.yml 或更晚的 patch 层中,按 id 覆盖整行 config):
- id: session-memory
config:
maxSessions: 5
header: 'Prior sessions in this workspace (auto-injected):'