context-usage

by Rotem · ★ 0 · updated 4 days ago

BandsCommandsvalidates

0

Shows how full the session's context window is, in a band above the prompt

install context-usage

Install

/plugin marketplace add rotembm12/claude-mods
/plugin install context-usage@rotem-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startsession.measuresession.compactcommand.runui.render
API calls
$.command.register$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve
Draws
AbovePrompt
Can see
compaction
Reach
level 1 of 3 other: $.state.getother: $.state.setpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/rotembm12/claude-mods
Path in repo
context-usage
Source commit
207be2e the exact code the scan read
Author
Rotem @rotembm12
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from rotembm12/claude-mods

orchestrator

rotembm12/claude-mods

Turns a session into an orchestrator that delegates work to haiku and sonnet subagents, keeps its own context small, sizes each task to about 150K tokens of subagent context, and lists the running and past agents in an expandable band (/orchestrator on|off|status)

★ 0BandsGuardsCommands

session-topics

rotembm12/claude-mods

Shows the session's topics and a per-session color above the prompt, so side-by-side sessions are easy to tell apart

★ 0BandsPrompt