usage-meter

by KingMichaelPark · ★ 1 · updated 9 days ago

BandsStatus linePromptwarnings

0

Minimal band: model, context tokens and estimated session cost, coloured by context fill

install usage-meter

Install

/plugin marketplace add KingMichaelPark/claude-mods
/plugin install usage-meter@mike-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.compactprompt.submitui.render
API calls
$.session.model$.session.usage$.state.get$.state.set$.ui.log$.ui.resolve$.ui.status
Draws
AbovePrompt
Can see
compactionevery prompt
Reach
level 1 of 3 other: $.state.getother: $.state.setdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/KingMichaelPark/claude-mods
Path in repo
usage-meter
Source commit
1425353 the exact code the scan read
Author
@KingMichaelPark
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 KingMichaelPark/claude-mods

model-router

KingMichaelPark/claude-mods

Uses Haiku to pick Opus, Sonnet or Haiku for each sub-agent

★ 1Status lineCommands