dsh-context-budget

Per-step context ledger for dsh: measures what every step actually re-sends, then offers three opt-in gates — a schema-budgeted tool table, long-tail result externalization, and duplicate-read pointers. In the author's A/B test the tool-table gate cut 16,110 first-step prompt tokens (-49.7%), about -23% of per-step context on long sessions. v0.3.1 adds a read-only /budget-doctor self-check, spill index maintenance and a growth forecast.

Overview

Per-step context ledger for dsh: measures what every step actually re-sends, then offers three opt-in gates — a schema-budgeted tool table, long-tail result externalization, and duplicate-read pointers. In the author's A/B test the tool-table gate cut 16,110 first-step prompt tokens (-49.7%), about -23% of per-step context on long sessions. v0.3.1 adds a read-only /budget-doctor self-check, spill index maintenance and a growth forecast.

Installation

Install from GitHub

dsh plugin --profile web add github:JinShuXuan/dsh-context-budget

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.