Inspect conversation context and apply configurable compaction with usage history.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Missher12/Missher-DSH-Context-Manager
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

Quality compaction that keeps long conversations moving.
中文 · English · Download / Releases · Feedback

Local app screenshot with fictional acceptance material, shown in Chinese. Capacity, trends, compaction results and summary in one view. Reduction varies with content.
| Pre-request check | Idle after completion | Inspect anytime |
|---|---|---|
| 80% by default | 15 minutes by default | Summary + original sources |
Idle timing starts after normal task completion. The effective request threshold also accounts for model reservations.
What survives compaction
flowchart LR
A["Earlier history"] --> B["Task summary<br/>Goal · Constraints · Completed · Pending<br/>Evidence · Next steps · Uncertainties"]
B --> C["Summary + recent messages<br/>Continue the task"]
A -.-> D["Originals retained<br/>Trace back when needed"]
classDef summary fill:#eef2ff,stroke:#4D6BFE,color:#1e3a5f
classDef retained fill:#ecfdf5,stroke:#52a36a,color:#14532d
class B summary
class C,D retained

Viewing makes no model calls. Generating a summary incurs model usage; failed validation leaves the original history intact.
Start in three steps
- Download a
.tgzfrom Releases. - Install and enable it in DSH's plugin manager. Let running tasks finish before restarting as prompted.
- Adjust the policy in Settings → Context Manager and inspect results in the session's Context view.
Use standard Node.js 24 and the pnpm version specified in package.json.
pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run build
pnpm test
pnpm pack
Links
More in this category
ranxianglei/billion-context★ 8746
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★ 4848
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★ 860
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 435
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★ 407
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 335
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.