Skip to content
Back to skills

Token Aware

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agents

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add Silvertree2010/aware --skill token-aware --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Token Aware?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Token Aware
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/silvertree2010-token-aware/badge)](https://www.skillsdirectory.com/skills/silvertree2010-token-aware)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.