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.

1 file for Claude Code: pre-usage-plugin CLAUDE.md — 2,020 tokens loaded in every session.

2Stars on the repository
1Files it configures its agents with
2,020Tokens loaded in every session
1Agent configured

Instructions

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.