DerekZhangbj/dsh-compaction-selective ↗★ 0

dsh-compaction-selective

Human-directed selective compaction for DeepSeek Harness: fold an explicitly requested span of earlier turns (recent or arbitrary) into one summary, with a mandatory approval prompt and a fold-shaped summary template.

Package
dsh-compaction-selective
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.2 <0.3.0
Version
0.1.1
License
MIT
Last updated
Nov 10, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DerekZhangbj/dsh-compaction-selective

Configuration

Settings live in ~/.dsh/compaction-selective.json (plugin-owned JSON, edited from the plugin detail page). Effective config = built-in defaults < config: on the bundle row < settings file.

KeyDefaultMeaning
enabledtrueMaster switch
minShadowedTokens3000Selection floor. Below it the official "summary must be smaller" check rejects the fold, so we reject earlier
maxSurfaceShare0.6Max share of the visible surface one fold may cover
approvalTimeoutMs180000How long the confirmation card waits before counting as "not confirmed"
maxPerTurn1Folds allowed per turn
foldSummarytrueUse the fold-shaped summary template (disable to keep the stock one)