claudemods

All Claude Code modsjoeldg/claude-mods

usage-meter

A Claude Code mod in joeldg/claude-mods

A machine-wide meter of the plan's rolling 5-hour usage: every session's turns summed as effective tokens, the cap learned from each session-limit hit, the burn on the status line, a toast before the wall, /usage and a usage_status tool so Claude can pace itself. No process runs, no model calls.

usage-meter reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsother: $.state.get, other: $.state.set, writes files, drives Claude, reads files, reads env vars, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, mcp__usage-meter__usage_status calls
Hooks
session.start, turn.complete, session.append, classic.StopFailure, tool.check {tool=mcp__usage-meter__usage_status}, tool.call {tool=mcp__usage-meter__usage_status}, command.run {command=meter}, session.end
API calls
$.clock.every, $.clock.now, $.command.register, $.env.get, $.fs.list, $.fs.read, $.fs.write, $.session.id, $.session.usage, $.state.get, $.state.set, $.tool.register, $.ui.log, $.ui.status, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
221157fc21b5

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

More from joeldg/claude-mods

Badge for your README

Reach badge for usage-meter Validation badge for usage-meter

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/joeldg--claude-mods--usage-meter-reach.svg)](https://mods.aidojo.si/mods/joeldg--claude-mods--usage-meter/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/joeldg--claude-mods--usage-meter-validates.svg)](https://mods.aidojo.si/mods/joeldg--claude-mods--usage-meter/)