Token Weather
v1.2.0AST Scan: 0 CriticalSource PublicCLI v2.1.287+ TestedAmbient terminal token & context window visualizer. Shows real-time token burn rates, sliding context pressure, and KV cache hits.
claude plugin uninstall token-weather@marketplaceProblem Solved & Architectural Motivation
Developed as part of the official Anthropic Claude Code playground examples. Token Weather adds a sleek status pill to the terminal interface displaying current session token expenditure, context window headroom percentage, and cache efficiency metrics without slowing down generation.
Zero-Time AST Interception
Evaluates tool payloads prior to kernel fork.
0-100 Impact Index
Weighted heuristic scoring: files touched, git dirty state, env scope.
Native CLI Hook
Zero proxy daemon required; hooks straight into Claude tool calls.
Lifecycle Architecture & Hook Flow
Manifest Schema (plugin.json)
{
"name": "token-weather",
"version": "1.2.0",
"entrypoint": "dist/index.js",
"hooks": [
{
"event": "ui.render",
"priority": 10
}
]
}Hook Implementation (register.js)
export default function init({ ui, telemetry }) {
ui.registerStatusWidget({
id: 'token-weather',
render: (state) => {
const burn = state.tokensPerTurn;
const total = state.sessionTotalTokens;
return `⚡ ${burn} tok/turn | ${(total / 1000).toFixed(1)}k ctx`;
}
});
}Static heuristic checks only. Not a formal commercial certification or warranty. Review source before installing.