dsh-compact-enhanced: Make /compact queueable and cancellable, and display real-time status in the menu
The built-in /compact in DeepSeek Harness rejects requests directly when the agent is busy and locks the composer during execution, preventing interruption. The imrcpan/dsh-compact-enhanced plugin retains the same command name, modifies requests to return immediately, executes only when idle, and provides /compact-cancel to cancel queued or running compression. The plugin associates compression events with the original request command line; once the summary is generated, the line upgrades to a compression card displaying the result. The /compact command in the slash menu serves as a real-time status line with session token estimation. This article details the behavior of both commands, menu state mapping, three optional configuration items (retryDelayMs, maxQueueAttempts, cancelTimeoutMs), installation commands, installation via local checkout, implementation alternatives and fallback logic, and limitations such as in-memory queues, command-only cancellation, and unaffected automatic pressure compression. The plugin runs with the permissions of the current dsh process; source code and the MIT license should be reviewed before installation.
Read More