DeepSeek Harness Plugin

GallenShao/dsh-faster-compress

Stars ★ 1 Downloads (30d) 1,463 Category Sessions & Messages Added 2026-10-19 npm dsh-faster-compress

Prepares context summaries in the background and applies them at safe step boundaries, with native compaction fallback and a per-conversation history of summaries, application status, timings, and token usage.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-faster-compress

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:GallenShao/dsh-faster-compress

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Prepare context summaries early. Keep long tasks moving.

中文 · English

Stock compaction waits for a summary. Faster Compress prepares it in the background and commits at a step boundary.

Background context compaction for DeepSeek Harness. Reduce pauses for summaries during long tasks, and inspect results, timings, and token usage in Compaction History.

Install with one package name

Open Plugins → Add plugin from the DSH sidebar and enter:

dsh-faster-compress

Install, then restart DSH. The defaults are ready to use. No new API key or YAML editing.

Verified with DSH 0.2.0-rc.2 / 0.2.1-rc.2; requires Node.js ≥ 22.19. It uses the conversation's model and existing credentials. Summary and warm-up requests remain subject to your provider's billing.

dsh plugin --profile web add dsh-faster-compress

Then restart dsh web. For the desktop app, use its Add plugin screen.

What changes?

  • Prepare while work continues. Background summaries start at the preparation threshold; the main task continues within safe headroom.
  • Apply when ready. A ready summary is applied before the next model request, preserving messages added during preparation. Normal turn completion retains it for reuse on the next turn.
  • Keep the native fallback. If preparation fails or becomes invalid, stock compaction remains available. /compact still works.

Compaction History

Open Compaction History at the top of a conversation to inspect:

  • Summaries, original text excerpts, application status, and failure reasons.
  • Preparation time, compaction waiting, and first-output latency after application.
  • Model-reported input tokens before and after compaction, plus summary and cache usage.

Search, filter, and copy records in a view that follows the DSH theme.

Settings

Open Plugins → Installed → Faster Compress. Changes apply after saving, without a restart.

Setting Default Purpose
Start preparation at 100% Lower if preparation often finishes too late; this is relative to the preparation threshold, not the context window
Warm the new context Off Optional extra request; useful only when the provider has spare capacity and can reuse its cache
Show Compaction History tab On Show or hide the conversation tab

The defaults suit most use. Advanced options include output reservation, safety margin, and concurrency. Upgrades preserve saved settings.

DS Bot compatibility: sessions whose compaction is managed by ds-bot automatically skip background preparation and warm-up; existing preparations are discarded. DS Bot remains responsible for compaction. Ordinary sessions on the same preset keep acceleration. Detection is automatic; no extra configuration is needed.

Before you use it

  • Best suited to long conversations and frequent tool use. Background summaries consume model capacity and incur normal provider charges; some waiting may remain.
  • Unapplied summaries stay in memory. After restart, the plugin prepares again or falls back to stock compaction.
  • History stores summaries and original excerpts in $DSH_HOME/data/faster-compress/traces/. Hiding the tab does not stop recording. To remove these copies, stop DSH and delete that directory.

Development and tests · Changelog · Release records · Source · MIT License

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.