DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Optimize — DeepSeek Harness 插件(DSH Plugin)
← Plugins
O

dsh-optimize

Optimize

DeepSeek Harness 的长会话资源管理器:测量每个请求实际携带的上下文,跟踪每个会话的增长,在会话运行成本变高之前发出警告,并可选择性地裁剪 Web UI 中呈现的历史记录。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:aoripus/dsh-optimize#c3012f4c79c33b02797e8c4a72ce486d456ea3eb
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/14

版本

0.1.0stable
2026/9/14

相关插件

正在加载相关插件…

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

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

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

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

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

相关插件

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

Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。Reme@agentscope-ai/reme面向 TypeScript 代理的 ReMe 客户端和记忆集成Stratagate Dshstratagate-dsh最近的对话依然鲜活。较早的对话会逐渐淡化为摘要,而不是被遗忘。StrataGate 为 DeepSeek Harness 提供六层、随时间衰减的记忆,同时将持久的事件和关系沉淀为知识图谱。将你在其他 AI 中的记忆带来Meow Memorymeow-memoryDeepSeek Harness 的跨会话项目记忆:七层 SQLite 记忆、首轮快照注入、每条消息的关键词命中、memory_remember/search/project 工具、带 reflection-fold UI 的自动反思,以及由空闲触发的梦境整合

README

dsh-optimize

Long-session resource governor for DeepSeek Harness.

A conversation that keeps growing gets expensive long before anything compacts it: every step re-sends the retained history, the session log grows without bound, and the web UI has more history to draw. dsh-optimize measures that growth and reports it, so a heavy session is a visible fact rather than a surprise.

What v0.1 does

  • Measures what every outgoing request actually carries (message count, characters, estimated token range) on each agent/pre-step.
  • Keeps a per-session record — request count, last and maximum request weight, when the session was first and last seen — in $DSH_HOME/storages/dsh-optimize/state.json.
  • Logs a warning the first time a session crosses warnTokens, and again at criticalTokens, with the measured range.
  • Provides the optimize host service (snapshot(id), list(), flush()).

It does not change what the model receives, does not write session events, and does not touch the session log.

Install

dsh plugin --profile <profile> add dsh-optimize

Or from a checkout:

dsh plugin --profile <profile> add /path/to/dsh-optimize

Configure

The bundle patch ships the defaults; override them in your profile's patch layer (~/.dsh/profiles/<profile>/cordis.patch.yml):

- id: dsh-optimize
  config:
    warnTokens: 120000
    criticalTokens: 300000
    verbose: false
KeyDefaultMeaning
warnTokens120000Estimated request weight that marks a session as heavy.
criticalTokens300000Estimated request weight that marks a session as critical.
verbosefalseLog every measured request, not only threshold crossings.

The estimate is a range: Latin text is near four characters per token, CJK near one and a half. The upper bound is the one compared against the thresholds, so a mixed-language session errs towards reporting early.

Roadmap

  • Browser half: a session-weight chip next to the composer, a "history window" toggle that renders only the recent tail of a very long session, and collapse of old tool output. The trajectory table already virtualises; the chat view does not.
  • Optional automatic compaction when a session passes the budget.

License

MIT.