dsh-compact-selected-model
Manifest validDeepSeek Harness plugin: /compact and auto-compaction summarize with the model currently selected in the session, not the model that finished the last turn
dsh-compact-selected-model
By default, DeepSeek Harness compacts a session with the model that answered the
last turn. If you switch models in the picker and then run /compact, the old
model still writes the summary. With this plugin, the summary is written by the
model you have selected now.
Works with dsh 0.1.7-rc.2 through 0.2.x.
Install
npx @deepseek-ai/dsh plugin --profile web add dsh-compact-selected-model
Then restart dsh web.
How it works
Picking a model in the web UI adds a model/selection event to the session.
That choice stays pending until the next request uses it. The plugin hooks
llm/stream. When a request has purpose: 'compaction' and the session has a
pending model, the plugin sends the request to that model. Nothing else in the
request changes.
The plugin leaves the request alone if compaction-basic has an explicit
summarizationModel set. Other requests are never touched.
If the selected model fails, for example because of a rate limit or a context
window that is too small, the compaction fails too. Switch back to a working
model and run /compact again.
Caveats
- The
compaction/summaryevent in the session log still names the old model, because compaction-basic writes that record itself. The host log shows where the request actually went. - The auto-compaction threshold is still based on the context window of the previous model.
- This needs the
modelSelectionprojection from the session controller, so it does nothing in headless runs.
Development
node smoke.mjs runs an offline check against a stub LLM service.
License
MIT
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 242/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby Tencent
Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.
★ 8.9k
↓ 7.5k/wk
MIT
TypeScript
Oct 15, 2026
dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-pluginby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby dsh-market
The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场
★ 6.6k
↓ 160k/wk
MIT
TypeScript
Oct 14, 2026
dsh plugin --profile web add dshmarketby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 6.2k
MIT
Python
Oct 14, 2026
by superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 5.3k
NOASSERTION
Python
Oct 15, 2026
dsh plugin --profile web add treg-dsh