context-band

by Derek Li · ★ 0 · updated 5 days ago

BandsCommandsPromptvalidates

0

Context-window squares by category above the prompt, with a prompt-cache countdown and an optional keep-warm refresh. Reads the context breakdown, the prompt draft's length and the session transcript's cache usage, all locally; a refresh (manual, or auto-refresh if enabled) sends one model request through Claude Code.

install context-band

Install

/plugin marketplace add derek1ee/claude-context-band
/plugin install context-band@claude-context-band

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.startcommand.runturn.startturn.completeclassic.SessionStartsession.endsession.measureprompt.editprompt.fillprompt.submitturn.stepclassic.Stopui.messageui.render
API calls
$.clock.every$.clock.now$.command.register$.config.set$.env.get$.fs.exists$.fs.list$.fs.read$.model.fork$.process.run$.prompt.read$.session.cwd$.session.id$.session.root$.session.usage$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
classic hooksevery prompt
Reach
level 2 of 3 other: $.prompt.readother: $.state.getother: $.state.setruns processeschanges configdrives Claudereads filesreads env varsreads settingspersists 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/derek1ee/claude-context-band
Path in repo
repository root
Source commit
8a4c92a the exact code the scan read
Author
Derek Li @derek1ee
License
MIT
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.