knighthongyu/dsh-handoff-compaction

Context compression for small-context models: older conversation becomes a structured Context Handoff, recent messages stay verbatim, and the full history stays searchable.

dsh-handoff-compaction is a DSH context-compression plugin aimed at small-context models. It turns older conversation into a structured # Context Handoff, keeps recent messages in their original form, and lets the agent search and read the full history for an earlier detail, so long development and debugging sessions keep the task's goals, progress, decisions, constraints, next steps and verification status at hand. The compressed context budget is visually configurable on the Web plugin detail page: the defaults are 8192 + 16000 tokens (8k + 16k) for the summary limit and recent-context retention, with Save, Restore defaults and persistence across restarts. The configuration fields are maxTokens and retainTokens, and /compact triggers compaction manually.

Sessions & Messages ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-handoff-compaction

Copied verbatim from the README's install block. The README also shows a headless profile form and a github: source form.

Compatibility

Installs into a named DSH profile. The README notes the README is bilingual with a Chinese translation at README.zh.md.

Details

FAQ

What are the default budgets?
The README states the defaults are 8192 + 16000 tokens (8k + 16k) for the summary limit and recent-context retention, adjustable on the Web plugin detail page and persisted across restarts.

Alternatives

songoao25/dsh-auto-compact · JohnXu22786/context-pruner · YYTbit/dsh-plugin-context-compressor

More plugins in Sessions & Messages

Browse more in Sessions & Messages

Guides for Sessions & Messages plugins