usage-mod

by Jake Campbell · ★ 0 · updated 6 days ago

BandsReskinsGuardsCommandsPromptvalidates

0

A live usage band above the prompt for this Claude Code session: cost, tokens, cache, context, rate limits, turns, tools. Desktop and terminal.

install usage-mod

Install

/plugin marketplace add jasmo13/usage-mod
/plugin install usage-mod@usage-mod

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.runclassic.UserPromptSubmitclassic.Stopclassic.SessionStartclassic.FileChangedclassic.PostModelSwitchconfig.setclassic.ConfigChangeturn.startturn.stepturn.completetool.callsession.measuresession.compactsession.endui.render
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.http.fetch$.process.spawn$.session.authorize$.session.cwd$.session.id$.session.model$.session.root$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.copy$.ui.invalidate$.ui.log$.ui.resolve$.ui.toast
Draws
PromptHintAbovePrompt
Can see
classic hooksevery tool callcompaction
Reach
level 3 of 3 other: $.process.spawnother: $.state.getother: $.state.setnetworkreads filesreads env varsreads the transcriptpersists 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/jasmo13/usage-mod
Path in repo
plugins/usage-mod
Source commit
2ec108d the exact code the scan read
Author
Jake Campbell @jasmo13
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.