dsh-companion-memory

由角色自己写成的长期记忆。整理插件盯着工作区,会话静默超过阈值后自己开会话,跑包里的提取脚本,把最近的对话整理进记忆文件;心跳插件之后按概率曲线重新开会话,间隔越久概率越高,带静默时段和随机延迟。附记忆文件模板、整理流程和提取脚本。需要 Python 3.8+ 与 zstandard;装完还须手动配置(建带 agent-instructions 的模式、把模板/脚本复制进工作区、把 defaultPreset 与 sortPreset 改成真实模式 id,填错会静默失败、仅日志一行);插件自开的会话默认全权限;仅在 DSH 0.2.0-rc.2 实测。

插件介绍

由角色自己写成的长期记忆。整理插件盯着工作区,会话静默超过阈值后自己开会话,跑包里的提取脚本,把最近的对话整理进记忆文件;心跳插件之后按概率曲线重新开会话,间隔越久概率越高,带静默时段和随机延迟。附记忆文件模板、整理流程和提取脚本。需要 Python 3.8+ 与 zstandard;装完还须手动配置(建带 agent-instructions 的模式、把模板/脚本复制进工作区、把 defaultPreset 与 sortPreset 改成真实模式 id,填错会静默失败、仅日志一行);插件自开的会话默认全权限;仅在 DSH 0.2.0-rc.2 实测。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:xy261624/dsh-companion-memory

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。