dsh-compaction-current-model
开发工具 活跃维护

dsh-compaction-current-model

JK-LIL/dsh-compaction-current-model

轻量级路由工具,支持手动或压缩触发式摘要生成,可直接将摘要结果路由至前端当前运行的模型,无需额外适配配置,简化摘要交互流程。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
BSD-3-Clause
开源协议
16 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:JK-LIL/dsh-compaction-current-model
git clone https://github.com/JK-LIL/dsh-compaction-current-model.git
git clone git@github.com:JK-LIL/dsh-compaction-current-model.git
README.md main

@dsh-external/dsh-compaction-current-model

DSH host bundle that fixes a manual-compaction model-selection bug for
DeepSeek Harness 0.1.0-rc.7:

  • Before the fix, /compact(手动压缩)summarization could use the session's
    last routed model even after the frontend model picker changed.
  • This plugin tracks the durable manual-compaction span
    (compaction/start with turn: null) and rewrites the summarization
    llm/stream to agentDefaultModel.currentSelection() — the model the
    frontend currently shows.

Automatic compaction, ordinary chat requests, and frozen LLM requests are
never rewritten.

Install

dsh plugin --profile web add github:JK-LIL/dsh-compaction-current-model

or from a local tarball:

dsh plugin --profile web add ./dsh-compaction-current-model-0.1.0.tgz

then restart the web profile and run /compact after switching models.

Compatibility

  • Built against DeepSeek Harness 0.1.0-rc.7 (source mode or installed build).
  • Runtime-import-free: the plugin only calls the Cordis context and standard
    session/LLM events, so it has no package dependencies of its own.
  • If a future DSH version changes the compaction/start owner marker,
    llm/stream request shape, or agentDefaultModel, review this plugin before
    upgrading.

Uninstall

dsh plugin --profile web remove @dsh-external/dsh-compaction-current-model

Verification

From the plugin package:

npm run typecheck
npm run build

Runtime acceptance: start DSH web, switch the model picker to a model different
from the last routed request, then run /compact and confirm the recorded
compaction/summary provider/model matches the frontend selection.

More