AI Agent Hub
Back to plugins
🖥️

dsh-plugin-compact-button

Client Updated 2026.09.12

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