dsh-plugin-background-compaction

Precomputes the compaction summary in the background and commits the held result when pressure compaction fires, removing the foreground model round-trip. Registers itself as the session compaction engine, pins the span it summarised so the payload fingerprint still matches at commit time, prunes tool results before committing, and falls back to the stock foreground path on payload drift or context overflow.

Overview

Precomputes the compaction summary in the background and commits the held result when pressure compaction fires, removing the foreground model round-trip. Registers itself as the session compaction engine, pins the span it summarised so the payload fingerprint still matches at commit time, prunes tool results before committing, and falls back to the stock foreground path on payload drift or context overflow.

Installation

Install from GitHub

dsh plugin --profile web add github:Jisiyong-A/dsh-plugin-background-compaction

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.