AI Agent Hub
Back to plugins
dsh-force-compact preview

dsh-force-compact

Model Inference Updated 2026.08.26

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