dsh-compaction-micro
Run the following command in DeepSeek Harness:
dsh plugin install Perfirstvito/dsh-compaction-micro
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Perfirstvito/dsh-compaction-micro in DeepSeek Harness to install; see https://github.com/Perfirstvito/dsh-compaction-micro
About this plugin
In DeepSeek Harness's compaction pipeline, model-backed summarization is the most expensive step: a full model call with significant token cost and latency. When a session accumulates many results from read-only, re-runnable tools like read, glob, or grep, context pressure can hit the ceiling well before the summarize threshold is reached. dsh-compaction-micro fills that gap as a micro-clear tier: at its own microThresholdRatio (default 0.85 of the effective window), it replaces the oldest whitelisted tool results with placeholders, relieving pressure early and reducing how often the costly summarization actually fires.
It is a pure observer by design. It never mutates the model request and makes no model calls. Every rewrite is a single-node content replacement, and each one is preceded by a compaction/prune shadow-price event so the durable log remains the reconstructable source of truth. The whitelist is fully operator-owned: read, glob, grep, and read-only web tools are the intended members, while write, edit, shell, and subprocess tools must stay out. The retainRecent setting keeps the newest N results visible at all times, protecting the working context.
This plugin suits Harness users whose workflows lean heavily on read-only tool calls, such as file reads, code search, and web scraping, who want to cut summarization frequency without losing auditability. It slots in as a lightweight, non-invasive front layer that works alongside the official dsh-compaction-basic, letting the expensive summarize step run only when the cheaper micro-clear has already done its job.
Use Cases
- A session piles up many read/glob/grep results and is nearing the context ceiling before summarization triggers
- Reducing expensive model-backed summarization calls while keeping the durable log reconstructable
- Pairing with the official dsh-compaction-basic to clear low-cost entries before delegating to summarize
Best For
- Harness users whose workflows rely heavily on read-only tools such as file reads, code search, and web scraping
- Operators who want to cut token spend without mutating model requests
- Advanced users who already run dsh-compaction-basic and need finer-grained compaction control
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
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.