dsh-context-cap

Caps the routed model's context window from a chip on the right of the composer (32k / 64k / 128k / 256k / 512k / 1M, plus a revert) by writing the provider's own contextWindow setting, so automatic compaction fires earlier and a long conversation stops pushing each request to the full window.

Overview

Caps the routed model's context window from a chip on the right of the composer (32k / 64k / 128k / 256k / 512k / 1M, plus a revert) by writing the provider's own contextWindow setting, so automatic compaction fires earlier and a long conversation stops pushing each request to the full window.

Installation

Install from GitHub

dsh plugin --profile web add github:mouse985/dsh-context-cap

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.