dsh-background-compaction

接管内置压缩 provider:默认在上下文达到阈值的 85%(比例可配)时,起一个游离任务把截至上一轮的历史总结成摘要;摘要就绪后的下一个回合边界直接把它提交为 checkpoint,这一步 0 次模型调用、耗时毫秒级。/bcompact [消息] 按需发起同样的生成,随后照常发送你的消息。设置页可改自动触发比例、摘要模型,以及连续失败多少次后停止后台生成(熔断打开后按冷却放行一次探针以自愈)。子代理会话、前缀已变动或摘要过期时,回退到内置的同步压缩路径。

插件介绍

接管内置压缩 provider:默认在上下文达到阈值的 85%(比例可配)时,起一个游离任务把截至上一轮的历史总结成摘要;摘要就绪后的下一个回合边界直接把它提交为 checkpoint,这一步 0 次模型调用、耗时毫秒级。/bcompact [消息] 按需发起同样的生成,随后照常发送你的消息。设置页可改自动触发比例、摘要模型,以及连续失败多少次后停止后台生成(熔断打开后按冷却放行一次探针以自愈)。子代理会话、前缀已变动或摘要过期时,回退到内置的同步压缩路径。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-background-compaction

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:OZONGO/dsh-background-compaction

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.

版本兼容情况

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

安装提示

  • 可能调用终端命令