dsh-smart-compact

Context window auto-management for DeepSeek Harness: when the window fills up it rolls over to a fresh one with zero summarization model calls, archiving the old window verbatim for line-by-line recall; handoff anchors carry task orientation, working notes survive compaction, and a stale-notes gate warns instead of vouching for outdated notes. The trigger follows the provider budget equation (window - max_tokens) and the real routed model even after a mid-session switch. One-click composer button plus /smart-compact, three-band automatic rollover, mandatory anchor sanitization; works out of the box.

Sessions & MemoryBSD-3-Clause☆ 7

Overview

Context window auto-management for DeepSeek Harness: when the window fills up it rolls over to a fresh one with zero summarization model calls, archiving the old window verbatim for line-by-line recall; handoff anchors carry task orientation, working notes survive compaction, and a stale-notes gate warns instead of vouching for outdated notes. The trigger follows the provider budget equation (window - max_tokens) and the real routed model even after a mid-session switch. One-click composer button plus /smart-compact, three-band automatic rollover, mandatory anchor sanitization; works out of the box.

Installation

Install from npm

dsh plugin --profile web add dsh-smart-compact

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:hoyyang/dsh-smart-compact

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Independent install test

Install result
Installed and registered
Tested Harness version
0.2.2-rc.1
Tested plugin version
Not reported
Test date