Know how much of the context window and the usage limits (5-hour and weekly windows, cost) you have used, and change how you work as they run low. Use at session start, before big reads or fan-out to sub-agents, and whenever a usage or context line appears.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Token Aware?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/silvertree2010-token-aware)
---
name: token-aware
description: Know how much of the context window and the usage limits (5-hour and weekly windows, cost) you have used, and change how you work as they run low. Use at session start, before big reads or fan-out to sub-agents, and whenever a usage or context line appears.
---
# token-aware
Tokens are the user's budget. Spend them where they buy accuracy and save them everywhere else.
## Read the meter
Use the first source that exists:
1. `[aware] tokens ...` lines from the hooks: `five_hour=NN%`, `seven_day=NN%` with reset times, `context=NN%`, `context_tokens`, `cost`.
2. `aware tok`. Limit data needs the statusline feed: set the agent's statusline command to `aware statusline`. To keep an existing statusline, put it in `AWARE_STATUSLINE_NEXT`. Context size is also read from the session transcript when one is known.
3. Whatever the host shows you (context warnings, "approaching limit" notices, a `/usage` or `/cost` command the user can run).
4. Nothing: estimate. Count roughly 4 characters per token for what you have read and written. Say it is an estimate.
## Budget levels
Use the higher of the two figures, usage window or context:
| level | usage | how to work |
|---|---|---|
| green | under 50 % | normal |
| yellow | 50–80 % | read only the relevant ranges of files, prefer `grep` over full reads, fewer and cheaper sub-agents, no exploratory side quests |
| orange | 80–95 % | finish the current task, no new big tasks. Summarize state so work can resume later. Tell the user the reset time |
| red | over 95 % | stop starting work. Write a short handoff (what is done, what is next, where the files are) and tell the user |
Context window filling up: summarize what you already know instead of re-reading files, and drop large tool outputs from your working set. Suggest a fresh session with a handoff note if the host does not compact automatically.
## Spending well
- Batch independent tool calls. Avoid repeated reads of the same file.
- Filter command output with `head`, `tail`, `grep` or `--quiet`. Never dump huge logs.
- Sub-agents multiply cost. Use them for real parallel work, not for lookups you can do inline.
- When the user asks for something expensive near a limit, say what it will roughly cost and when the window resets, then let them decide.
Do not report token numbers every turn. Mention them when you change level or when the user asks.