
Token Budget Advisor
Before Claude writes a long answer, this lets you pick how deep to go: 25%, 50%, 75%, or full detail. It triggers when you mention token budget, response length, or ask for a short vs detailed answer. Claude estimates input tokens using heuristics (prose is words times 1.3, code is chars divided by 4), guesses complexity, then shows you four depth options with token estimates before responding. Useful if you're watching your context window or just want a quick answer first. The estimates are heuristic only, about 85 to 90 percent accurate, so treat the numbers as rough guides. Maintains your chosen level across follow-ups unless you change it.
- skills.sh installs
- 3.9K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill token-budget-advisor --agent claude-codeInstalls into .claude/skills of the current project.
Files
Token Budget Advisor (TBA)
Intercept the response flow to offer the user a choice about response depth before Claude answers.
When to Use
- User wants to control how long or detailed a response is
- User mentions tokens, budget, depth, or response length
- User says "short version", "tldr", "brief", "al 25%", "exhaustive", etc.
- Any time the user wants to choose depth/detail level upfront
Do not trigger when: user already set a level this session (maintain it silently), or the answer is trivially one line.
How It Works
Step 1 — Estimate input tokens
Use the repository's canonical context-budget heuristics to estimate the prompt's token count mentally.
Use the same calibration guidance as context-budget:
- prose:
words × 1.3 - code-heavy or mixed/code blocks:
chars / 4
For mixed content, use the dominant content type and keep the estimate heuristic.
Step 2 — Estimate response size by complexity
Classify the prompt, then apply the multiplier range to get the full response window:
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- First seen
- Apr 16, 2026
More from affaan-m/everything-claude-code
All 256- Customer Billing Ops3.8K
- Dashboard Builder3.8K
- Healthcare Eval Harness3.8K
- Manim Video3.8K
- Ui Demo3.8K
- Agent Introspection Debugging3.7K
- Connections Optimizer3.7K
- Dotnet Patterns3.7K
- Finance Billing Ops3.7K
- Gan Style Harness3.7K
- Google Workspace Ops3.7K
- Knowledge Ops3.7K
- Lead Intelligence3.7K
- Openclaw Persona Forge3.7K
- Opensource Pipeline3.7K
- Security Bounty Hunter3.7K
- Workspace Surface Audit3.7K
- Accessibility3.6K
- Agent Sort3.6K
- Api Connector Builder3.6K
- Automation Audit Ops3.6K
- Code Tour3.6K
- Csharp Testing3.6K
- Github Ops3.6K