dsh-cache-keepalive

Replays the last request while a main session idles, so the provider prompt cache keeps its hit and the next real turn is billed at the cache-hit price instead of a cold re-prefill. Per-window toggle, per-task records, and an estimated net saving.

Overview

Replays the last request while a main session idles, so the provider prompt cache keeps its hit and the next real turn is billed at the cache-hit price instead of a cold re-prefill. Per-window toggle, per-task records, and an estimated net saving.

Installation

Install from GitHub

dsh plugin --profile web add github:hongcha-dsh/dsh-cache-keepalive

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.