dshbase

插件目录 / UI & Skins / dsh-compaction-current-model

dsh-compaction-current-model

已验证 · 实测可装 JK-LIL

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-19最近推送
跨平台平台

功能简介

DSH bundle: route manual /compact summarization to the frontend current model

✅
我们的评价
可用 — 实测通过,早期项目

DSH bundle: route manual /compact summarization to the frontend current model 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

@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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-compaction-current-model」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

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

Headless(CLI)profile:

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

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →