dsh-force-compact
Run the following command in DeepSeek Harness:
dsh plugin install falling-ts/dsh-force-compact
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install falling-ts/dsh-force-compact in the DeepSeek Harness terminal to install this plugin; the full upstream repository is at https://github.com/falling-ts/dsh-force-compact .
About this plugin
When serving large models via a local llama.cpp endpoint, the context window is often only a few dozen K tokens, and a long conversation quickly hits the hard ceiling. dsh-force-compact takes the opposite approach: instead of fighting a small cap, it actively compacts the conversation—summarizing older history into a tight compressed head while retaining the latest N tokens verbatim, so the agent always reasons over a compact, high-signal prompt with deep memory preserved.
Key capabilities include two compaction engines (official service first, builtin persistent transaction as automatic fallback) that switch transparently; thinking mode disabled only for the plugin's own summarization call while all other requests remain untouched; a live UI badge showing compaction state (compressing / done / working); and hot-reloadable threshold and retention settings that take effect on the next request without a restart. All processing stays local with zero API cost and zero data egress.
Ideal for developers and self-hosters running local llama.cpp or OpenAI-compatible endpoints with limited context windows, who value privacy, cost efficiency, and the ability to extend effective session length without sacrificing inference quality.
Screenshots
Use Cases
- Running a local llama.cpp model with a modest context window and needing longer effective sessions without extra hardware
- Frequent long-form conversations where per-token API billing is undesirable
- Offline or air-gapped deployment where no inference data may leave the local machine
Best For
- Developers self-hosting large models via llama.cpp or OpenAI-compatible endpoints
- Privacy-focused users who require zero data egress for all inference
- DeepSeek Harness and Cordis plugin ecosystem builders maintaining local-first agent stacks
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.
