dsh-compact-agents
模型可调用的 compact_agents 工具:强制压缩进程内所有活会话的上下文(主会话、普通子代理、AgentTeams 成员一视同仁),忙的目标自动排队、本轮结束立即补压,逐目标回报被遮蔽的节点数与估算 token 数;浏览器侧在设置里自成一页,提供触发阈值、保留比例、受控阶段输出预算、自动续写次数与「回合结束预压」比例的编辑表单(一轮结束时上下文已接近触发线就先压一次,避免下一轮回答开头空等)。
Model-callable compact_agents tool that force-compacts context in every live session (main session, ordinary sub-agents and AgentTeams members alike), queues busy targets and compacts them when the turn ends, reports the shadowed node count and estimated tokens per target, and ships a browser form for the trigger ratio, retained ratio, controlled-phase output budget, auto-continue budget and an end-of-turn pre-compaction ratio that compacts near the trigger line once a turn ends, so a reply no longer opens with a wait for the summarizer.
怎么安装
dsh plugin add github:zhuto666/dsh-compact-agents 简介
dsh-compact-agents **DeepSeek Harness 会话上下文强制压缩插件:一个模型可调用的 compact_agents 工具 + 一块设置界面里的参数表单** 强制压缩忽略自动阈值 · 覆盖进程内所有活会话(主会话 / 普通子代理 / AgentTeams 成员) · 忙的目标自动排队、本轮结束立即补压 · 逐目标回报遮蔽节点数与估算 token 数 · 压缩过程在对话区可见 · 一轮结束时提前压缩,回答开头不再干等 · 被输出上限截断时自动续写 · 参数在设置里自成一页直接改 · 零网络、零依赖、无构建步骤 English | **中文** --- 安装 需要 Node.js ≥ 20、PATH 上有 pnpm,以及带 agent-presets 的 DeepSeek Harness **源码检出**(安装脚本据此定位 @deepseek-ai/dsh-tools 与 cordis;全局 npm i -g 的布局未验证)。 安装分两步:先装包(官方通道,pnpm 从 GitHub 取包),再把挂载行写进 preset。第二步不能省 —— compact_agents 工具必须挂在 preset 的 compaction 隔离组里才拿得到 ctx.compaction,这一行无法由插件包自带。 sh 1. 装包:登记 profile 依赖与 bundle…
推荐参考
信息
- 协议
- Apache-2.0
- 语言
- JavaScript
- GitHub 星标
- 1
- 月下载
- –
- 最近更新
- 2026-09-20
- 创建于
- 2026-09-15
基础安全检查
- 检查结果
- curated 收录但无 npm 包/安装命令
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- deepseek-harness, dsh, dsh-plugin
同类推荐
billion-context
ranxianglei/billion-context
billion-context官方版:上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。
dsh-chat-import
Nwflower/dsh-chat-import
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。
dsh-rewind
SiriLee/dsh-rewind
同一会话窗口内的 in-place 对话回退(不 fork,Claude Code /rewind 语义):每条消息的 ↶ 按钮把模型上下文回退到任意用户消息,可选用磁盘持久化的 before-backups 还原工作区文件。
dsh-recall-plugin
limbo947/dsh-recall-plugin
消息撤回:在用户消息旁加「撤回」按钮,把对话历史(官方会话 fork)与项目文件(逐消息影子 git 快照)一并回退到该消息发送之前,带差异预览确认面板。