From cost-meter
Always know what a session costs: live $ / context / rate-limit status line, the cost of every turn, context warnings, and an optional budget that asks before spending more.
8 events · 8 calls
Ships in cost-meter. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.measureturn.startturn.completeui.render{component=TurnDuration}prompt.submittool.callcommand.run{command=spend}Every mods API method its source calls, by namespace
registerfillusageaskinvalidateresolvestatustoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub singh-ap/awesome-claude-mods --plugin cost-meter