Token Budget Advisor
Manages Claude's response length and token consumption by offering interactive depth choices before generating answers.
Token Budget Advisor (TBA) is a performance-optimization skill for Claude Code and related AI agents that gives users explicit control over response verbosity and token usage. By analyzing prompt complexity and estimating input/output sizes through smart heuristics, it allows users to choose between four distinct depth levels—ranging from a 25% core summary to a 100% exhaustive analysis. This skill is essential for developers looking to optimize their API costs, reduce latency, and quickly toggle between brief overviews and deep technical dives within the same session.
主な機能
01Heuristic-based calculations for prose and code-heavy blocks with ~85-90% accuracy.
02Pre-response token estimation based on prompt complexity and content type.
03214,448 GitHub stars
04Shortcut support for instant length control using natural language keywords like 'TL;DR' or 'brief'.
05Persistent session memory that maintains your preferred depth level across multiple queries.
06Four interactive depth levels (Core, Moderate, Detailed, Exhaustive) to control output volume.
ユースケース
01Minimizing API costs and token consumption during rapid iterative development cycles.
02Obtaining quick summaries of complex documentation before committing to a deep-dive analysis.
03Requesting exhaustive, multi-part architectural reviews and code implementations when full detail is required.