session-meter

by s0ar · ★ 0 · updated 30 days ago

BandsGuardsCommandsvalidates

0

Records compactions, per-request cache use, subagent spawns, advisor calls and rate limits to a JSONL file per session, and shows context (relative to the autocompact threshold) and rate limits above the prompt, or in a file for your statusLine script with display=statusline.

install session-meter

Install

/plugin marketplace add s-0-a-r/session-meter
/plugin install session-meter@s0ar-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.startturn.stepagent.spawntool.callsession.compactsession.measureturn.completesession.endcommand.runui.render
API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.write$.process.run$.session.id$.session.model$.session.repo$.session.usage$.settings.read$.ui.invalidate$.ui.log$.ui.resolve
Draws
AbovePrompt
Can see
subagent spawnsevery tool callcompaction
Reach
level 2 of 3 runs processeswrites filesreads filesreads env varsreads settingsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/s-0-a-r/session-meter
Path in repo
repository root
Source commit
e7ee7a0 the exact code the scan read
Author
s0ar @s-0-a-r
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.