dsh-compaction-tower

Automatic context compaction: a background observer distills early history into summary blocks, and when usage crosses the trigger line the engine commits whole blocks until it is back under the target line, with no model call on the commit path. Blocks merge into higher tiers as material runs out, and decompress or search_context reads any block back at its original length. The background observer spends model tokens: it uses the session's provider and model unless you pick another, with up to 10 distillations at once by default.

Overview

Automatic context compaction: a background observer distills early history into summary blocks, and when usage crosses the trigger line the engine commits whole blocks until it is back under the target line, with no model call on the commit path. Blocks merge into higher tiers as material runs out, and decompress or search_context reads any block back at its original length. The background observer spends model tokens: it uses the session's provider and model unless you pick another, with up to 10 distillations at once by default.

Installation

Install from GitHub

dsh plugin --profile web add github:AfeyGu/dsh-compaction-tower

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

Compatibility is unconfirmed. Check the project documentation for supported versions.