dsh-plugin-compact-button
Run the following command in DeepSeek Harness:
dsh plugin install liutian11451-png/dsh-plugin-compact-button
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install liutian11451-png/dsh-plugin-compact-button in DeepSeek Harness to complete installation; the source code is hosted at https://github.com/liutian11451-png/dsh-plugin-compact-button
About this plugin
In the DeepSeek Harness web composer, compacting context used to mean switching focus to the input box and typing /compact by hand every single time. dsh-plugin-compact-button drops a small button directly to the left of the model selector so a single click submits the bare /compact line over the session command channel, removing that repetitive gesture from your workflow.
The button is state-aware in ways that matter in practice: it simply does not render on a blank session; it greys out and becomes unclickable while the agent is mid-turn, so a manual compaction can never masquerade as one this control initiated; and after you click, the label reads Compacting… until the compaction turn ends, then reverts. A three-step latch (gesture arms it, the observed run confirms it, the run ending releases it) guards against a race condition that once left the label stuck after compaction had finished. If the deployment has not mounted dsh-command-compact, the button still renders but answers a click with an explicit unavailable-capability message rather than silently failing. Crucially, the plugin contributes only the gesture and its localized refusals — the durable attempt record, the compaction lock, the summarization route, and the flow node all remain exactly the ones /compact already owns. There is a single compaction path, not two.
This is for people running DeepSeek Harness on a web profile who have dsh-command-compact and a compaction backend in their deployment and who find themselves typing /compact more than once or twice a day. The plugin declares platform: web, so there is no terminal-surface equivalent.
Use Cases
- When you find yourself typing /compact repeatedly to compact session context
- When you want to trigger compaction with one click beside the composer without switching focus
- When your deployment has dsh-command-compact mounted and you want to simplify daily interaction
Best For
- Developers working in the DeepSeek Harness web profile
- Heavy users of AI workflows who compact context multiple times a day
- Harness users with a compaction backend who value operational efficiency
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.