dsh-token-lock

Token guard for DSH sessions: weighs what each request spends against what it produced (files written, tests green, tool calls that succeeded), names the cause in a settings panel, and can hold new requests at a budget you set — by default it only records and advises.

Overview

Token guard for DSH sessions: weighs what each request spends against what it produced (files written, tests green, tool calls that succeeded), names the cause in a settings panel, and can hold new requests at a budget you set — by default it only records and advises.

Installation

Install from GitHub

dsh plugin --profile web add github:hanhan9999999999999999999/dsh-token-lock

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.

Installation notes

  • May run terminal commands