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
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.
/compactstill 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
Links
More in this category
ranxianglei/billion-context★ 8957
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4868
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 1012
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 461
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 418
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 339
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.