songoao25/dsh-auto-compact
Enhanced auto-compaction defaults for DeepSeek Harness agent presets: apply tuned threshold/retention budgets and per-model policies with one command, idempotent with backups and rollback.
dsh-auto-compact lowers DeepSeek Harness's default auto-compaction trigger (80% of context — too late for large-context models) to 75% and adds per-route policies, so long sessions stay responsive: ChatGPT/Codex GPT-5.6 (272K context) trigger at 70%, OpenCode Go DeepSeek V4 (1M declared context) at 65%; the most recent 20% is kept verbatim. It directly injects configuration into the compaction-basic entry of every user-installed preset (profile-level patches cannot reach that subtree) while keeping existing summarization, retry and safe-fallback behavior — a failed summary preserves the original history and never silently drops context. Idempotent on later starts; fully reversible via ./uninstall.sh.
Source repository unavailable. The repository songoao25/dsh-auto-compact no longer exists on GitHub (HTTP 404 when checked on 2026-10-02), so the install command and any further commands on this page cannot currently be run. They are kept below as a record of what the plugin documented while it was available.
Install
dsh plugin --profile <profile-name> add songoao25/dsh-auto-compactGitHub/source per README (npm name dsh-auto-compact 404 verified 2026-09-04; README EN primary w/ zh edition). Install: dsh plugin --profile <profile-name> add songoao25/dsh-auto-compact, then restart DeepSeek Harness once. On bundle load the plugin injects configuration into the compaction-basic entry of every user-installed preset under $DSH_HOME/.agent-presets/ (default ~/.dsh/.agent-presets/), creating a timestamped backup before every change. Roll back with ./uninstall.sh from a checkout.
Compatibility
DeepSeek Harness agent presets; patches only user-installed presets under ~/.dsh/.agent-presets/, skips presets that already configure compaction-basic.
Details
- Repo:
songoao25/dsh-auto-compact(source unavailable) - Category: Memory
- Stars: 0
- Version: GitHub main (songoao25/dsh-auto-compact)
Recent updates
Safe injector: timestamped backup before every change, skips presets with their own compaction-basic config, bounded automatic recovery.
FAQ
- Why lower the compaction threshold?
- The stock trigger at 80% of the context window is too late for large-context models; this plugin triggers at 75% by default (70% for 272K ChatGPT/Codex routes, 65% for 1M OpenCode Go) and keeps the newest 20% verbatim.
- How does it modify my presets?
- It injects config into the compaction-basic entry of every user-installed preset under ~/.dsh/.agent-presets/ — the only reachable point, since profile-level patches cannot reach the per-session compaction subtree. A timestamped backup is created before every change.
- Can I roll back?
- Yes — run ./uninstall.sh from a checkout; it restores the latest backup for each affected preset.
Alternatives
songoao25/dsh-bottom-info-bar · drscrewdriver/dsh-thinking-levels