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.
1 file for Claude Code: pre-usage-plugin CLAUDE.md — 2,020 tokens loaded in every session.
CLAUDE.md B 2,020 tok These files are Laotree/pre-usage-plugin's own configuration — they tell Claude Code how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.