Home / Claude Code mods / Cost & usage / session-meter

session-meter

session-meter is a Claude Code mod by s-0-a-r that 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.

Updated 2026-10-22

What is session-meter?

session-meter is a Claude Code mod by s-0-a-r that 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. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authors-0-a-r
Repositorys-0-a-r/session-meter
Popularityno public popularity data yet
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#8,200 of 9,397 Claude Code mods; #1,607 in Cost & usage
Last commit2026-10-22
Hooks10 events
Seescompaction, every tool call, subagent spawns
Draws onAbovePrompt

Is session-meter safe to install?

session-meter scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.session.id
$.session.model
$.session.repo
$.session.usage
$.settings.readreads settings
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.resolvedraws interface

How do I install session-meter?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/s-0-a-r/session-meter
    claude plugin validate ./session-meter/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add s-0-a-r/session-meter && claude plugin install session-meter@s0ar-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs session-meter for you:

Install the "session-meter" Claude Code mod from https://github.com/s-0-a-r/session-meter. Run claude plugin validate on it first and show me what it can access before you enable it.