Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By melodic-software Verified Orgv6.0.4MITIn 1 marketplace
Toasts you when a session's context window enters a worse zone, so demanding work can move before quality slips. Needs a Claude Code build that runs mods and Node.js on PATH; jq is needed only for setup checks.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads files; reads environment variables (CLAUDE_CONFIG_DIR, CLAUDE_PROJECT_DIR, HOME, HOOK_TELEMETRY_SINK, USERPROFILE); reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
context-window, context-usage, context-degradation, token-usage, session-monitoring, status-line, mod, zones ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Model noticesmodel_notices
Sends Claude one line when the session enters a worse context zone, nears a boundary or passes a zones.json threshold, and restates the zone after a resume, reload or compaction (with no figures yet, says the reading is unavailable). Off by default; the rest of the plugin works either way.
booleandefault false
Zone line datazone_line_data
Comma list of what a line carries beside its zone, which every line has: percent, tokens and window. Default zone.
stringdefault zone
Zone report modezone_report_mode
Acts only with model_notices on. automatic (default) sends the lines to Claude; operator holds them in a turn a person typed and offers the person a ready-made prompt and a notice row when the turn ends. Headless, loop and schedule turns get automatic lines either way.
One of automatic, operator
stringdefault automatic
Context band rowcontext_usage_band
Draws the context figure and zone in a row above the prompt. Off by default. Turn it on in /config, or for one session with /context-usage band on.
booleandefault false
Zone-change toastcontext_usage_toast
Shows a short toast when the session crosses into a worse context zone, beside the transcript line that records it, and when zones.json is malformed. On by default; off, only the crossing's transcript line remains.
booleandefault true
Zone notices and compaction markercontext_usage_hooks_enabled
Runs the module's zone lines and toasts and the PostCompact marker hook. On by default; off, none of them acts. Snapshot writes continue either way.
booleandefault true
A Claude Code plugin that makes each session's context-window usage observable to Claude itself and to any session or tool that needs it, so long-running workflows can route demanding work away from a degraded context before quality slips, instead of guessing. Four parts:
hooks/register.tsx), a mod: a hooks module Claude Code runs in its own process.
It shows the person a toast when the session crosses into a worse context zone, tells Claude the
same when the operator turns on model_notices (off by default), answers /context-usage and the
mcp__context-usage__status tool, draws an optional band row, and writes the snapshot file. It
needs a Claude Code build that can run mods; older builds are unsupported. Pointer: when
deciding which build that is, fetch
mods overview: turn mods on or off
live. See The module.scripts/context-zone.sh). context-zone.sh <session_id> prints exactly one
word: light / moderate / heavy / unknown. Two band shapes, combined conservatively (the
worse computable zone wins): percentage bands over used_percentage (shipped defaults
light ≤ 50 < moderate ≤ 75 < heavy) and window-class token bands over occupancy
(total_input_tokens + total_output_tokens; shipped defaults 100k/150k on a 200k window,
128k/500k on a 1M window). Bands come from the machine-scope
~/.claude/context-usage/zones.json when present and valid, else from the shipped defaults.
Zones say where you are; consumers decide what to do.hooks/post-compact-mark.sh), a settings hook, so it runs where
mods are off: it writes an evidence-degraded marker next to the session's snapshot, and the
module reports it beside the zone, which still reports room only. Its row carries a 60-second timeout. The module is the only source of
zone lines. No part of the plugin denies a tool call.reference/reader-contract.md), the authoritative consumer contract: the
snapshot path pattern, file shape, the 10-minute staleness rule, fail-open capability detection,
the zones.json shape, session-id discovery via ${CLAUDE_SESSION_ID}, and the
zone-is-not-a-compaction-indicator rule. Its companion
reference/cloud-headless-capture.md is the writer-side channel inventory: why the module is the
capture channel, which other channels were checked and rejected (with sources and dates),
including the two that do carry live occupancy and still cannot supply a snapshot, and why
unknown in a session where the module does not run is structural rather than a defect.This plugin answers "how full is my context and what happens as it fills". For "what is my context
made of" (the startup measurement and the live per-category breakdown), see the context-budget
plugin.
The module decides from the live session's figures in interactive, -p, --bg and /loop
sessions alike, through a TypeScript copy of the resolver's band function over the same bands; a
shared fixture (scripts/context-zone.fixtures.mjs) holds the two resolvers to the same answer.
Tested with claude plugin test on Claude Code 2.1.288, and in live runs on 2.1.288: interactive,
-p, --bg and /loop sessions, /compact, /branch and --resume on Linux, and -p on
native Windows. The maintainer reviewed and accepted each place those runs differed from the
retired statusline tee, such as an idle session's snapshot going stale where the tee kept
rewriting it. No run was made in the Desktop app, VS Code, a cloud session, or under an
organization's sign-in.
Lines go to Claude only with model_notices set to true; it is off by default, and then nothing
from this plugin enters Claude's context. Claude can still read the zone from the status tool, and
the person still gets the toast and transcript line below. With it on, a line goes to Claude only at
a boundary, appended to the context of a main-thread tool result or of a prompt; a crossing seen
when a turn ends reaches Claude with the next prompt. With the other options and zones.json at
their defaults:
7-day copy clicks
npx claudepluginhub melodic-software/claude-code-plugins --plugin context-usagePlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.