DeepSeek Harness plugin

dsh-compaction-current-model

Routes manual /compact summarization to the frontend's currently selected model in DeepSeek Harness.

Jump to install

Source facts

Repository
JK-LIL/dsh-compaction-current-model
Latest update
Aug 19, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/JK-LIL/dsh-compaction-current-model
Plugin: dsh-compaction-current-model
Author: JK-LIL

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

@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

  • [Architecture / 事件流](docs/architecture.md)
  • [Changelog](CHANGELOG.md)