songoao25/dsh-auto-compact

songoao25★ 1JavaScriptLast synced: 2026-08-16

Open on GitHub

Enhanced auto-compaction defaults for DeepSeek Harness agent presets

README excerpt

dsh-auto-compact 中文文档 Enhanced auto-compaction defaults for DeepSeek Harness. DeepSeek Harness ships automatic context compaction ( dsh-compaction-basic ), but the default trigger threshold is 80% of the model's context window — too late for large-context models. This tool lowers the threshold to 75% and adds per-route policies, so history is tidied up earlier and long sessions stay responsive. How it works DeepSeek Harness runs one compaction-basic instance per agent preset (per session). Profile-level patches cannot reach that subtree, so this tool directly injects configuration into the compaction-basic entry of every user-installed preset under /.dsh/.agent-presets/ . - Default: trigger at 75% of the context window, keep the most recent 20% verbatim. - Per-route policies: - ChatGPT / Codex GPT-5.6 (272K context): trigger at 70% . - OpenCode Go DeepSeek V4 (1M declared context): trigger at 65% . - Keeps the existing summarization, retry, and safe-fallback behavior of dsh-compaction-basic (a failed summary preserves the original history and never silently drops context). - Manual /compact and tool-result pruning remain available. Installation Restart DeepSeek Harness afterward. R…

View full README on GitHub →
Agentsagent-presetauto-compactclicontext-compactiondeepseek-harnessdeveloper-toolsdshdsh-plugin

Category