DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Idle Compact — DeepSeek Harness 插件(DSH Plugin)
← Plugins

dsh-idle-compact

Idle Compact

在用户空闲时、提供商 KV 缓存过期前自动压缩长会话。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-idle-compact@0.1.1
README兼容性版本

兼容性与来源证明

Idle Compact 以 dsh-idle-compact 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/16

版本

0.1.1stable
2026/10/16
0.1.0stable
2026/10/16

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
19.7 kB
文件数
9
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
0
最近提交
2026/10/16
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Mnemondsh-mnemon适用于 DeepSeek Harness 的可组合、基于视图的记忆。支持可插拔的数据源和策略,并开箱即用地提供分层记忆。

README

dsh-idle-compact

A DeepSeek Harness (DSH) plugin that compacts a long session automatically once you stop replying. It runs before the model provider's KV cache expires, to save tokens.

Why

Providers cache the prompt prefix of a conversation for a few minutes. While the cache is warm, re-reading a long history is cheap. Once it expires, your next message re-bills the whole history at the full, uncached input price.

If you walk away from a long session, this plugin compacts it while the cache is still warm. The summarization request is cheap, and when you come back your next turn starts from a much shorter prompt.

How it works

  1. When a session finishes a turn and waits for you, a timer starts.
  2. Any new activity in that session cancels the timer, whether it's you replying or the agent starting work.
  3. When the timer fires, the plugin measures the session's context with DSH's token meter.
  4. If the context is longer than the threshold, the plugin compacts the session the same way /compact does: older history is replaced by a summary.

Subagent sessions are skipped, because they never wait for a user reply. If the agent is busy when the timer fires, the compaction is skipped and logged.

Settings

Open Plugins → Idle Compact in the DSH Web UI:

SettingDefaultMeaning
Context length threshold (tokens)256000Compact only when the session context is longer than this.
Idle time (seconds)300 (5 min)How long you must go without replying before compacting.

Both fields take whole numbers of at least 1. Changes apply without a restart. A changed idle time takes effect the next time a session starts waiting.

You can also set them in your profile's cordis.patch.yml:

- id: idle-compact
  config:
    contextThresholdTokens: 200000
    idleSeconds: 240

Install

Requires DSH 0.2.0 or later with the Web UI. Its Plugins page hosts the settings form.

dsh plugin add github:Arrosam/dsh-idle-compact

Or, in the Web UI, open Plugins → Add plugin and enter github:Arrosam/dsh-idle-compact or a local checkout path.

Token cost

Each compaction makes one summarization call to your model. It's cheap because the cache is warm, but it is spent even if you never return to that session. If most of your idle sessions are ones you abandon, raise the threshold.

Files

FileRole
index.jsHost half: idle timers, the context check, and the compaction call.
client.jsBrowser half: the settings form on the Plugins page.
cordis.patch.ymlBundle patch that inserts the idle-compact row.
locale/*.json, icon.svgDisplay metadata for the plugin manager.

License

MIT