Laotree/pre-usage-plugin

A plugin for Claude Code that estimates token usage before each prompt is sent. When usage exceeds a configurable threshold, it either warns and auto-proceeds, or blocks with an interactive [S]end/[C]ancel prompt. A guardrail against unintentionally large prompts.

2Stars on the repository
2Mods indexed here, across every type
3mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

pre-usage

01

Laotree/pre-usage-plugin

Plugin Claude Code

Estimates token usage before each Claude prompt and prompts for confirmation when the estimate exceeds PREUSAGETHRESHOLD.

2 3mo ago A tokens not measured original MIT