dsh-qwen38-compaction-fix
Run the following command in DeepSeek Harness:
dsh plugin install zhubaohi/dsh-qwen38-compaction-fix
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install zhubaohi/dsh-qwen38-compaction-fix inside DeepSeek Harness to install the plugin; the full source is available at https://github.com/zhubaohi/dsh-qwen38-compaction-fix .
About this plugin
Running qwen3.8-27b locally on the NInfer engine often ends the Harness compaction with the familiar summarization-truncated-at-the-token-cap verdict. The root cause is straightforward: the model defaults to xhigh reasoning effort and burns its entire output token budget on internal reasoning before writing a single word of the summary. The conversation context that the summary never reaches is effectively lost, and session titles get clipped by the same mechanism.
The plugin takes a deliberately narrow approach. It disables thinking for compaction and title-generation calls only, freeing the full output budget for the actual summary text. It then writes the sampling parameters recommended by the model when thinking is off and sets a configurable max_tokens floor so the budget is never further clamped. Every other conversation turn, subagent call, and non-matching model passes through byte-for-byte unchanged. Model matching is an exact ID check, preventing sampling values from leaking into calls for other models.
This is meant for users who serve qwen3.8-27b through an NInfer gateway (ninfer-serve, OpenAI-compatible API) and have already seen the truncated checkpoint or clipped titles in the Harness. If your stack runs on llama.cpp, vLLM, FastMTP, or another engine, the same idea applies but the wire parameters differ, and this package does not cover those launch methods.
Use Cases
- Compaction checkpoints on NInfer repeatedly return the summarization-truncated verdict for qwen3.8
- Session titles get clipped because xhigh reasoning exhausts the 64-token budget
- Local inference gateways need per-purpose separation of thinking-on and thinking-off sampling parameters
Best For
- Users serving qwen3.8-27b locally through an NInfer gateway
- Developers relying on Harness compaction to keep long conversations within context
- Ops engineers who need fine-grained sampling control for compaction and title calls
Related Plugins
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.
An armor-breaking plugin for DeepSeek: rewrites instruction priority, expands refusal-blocked phrases, persists across sessions, and shows a green active indicator.