From Token Hamster
Claude Code mod that shows token usage, 5-hour and weekly limits, reset countdown and cost per turn as an animated hamster above the prompt
6 events · 12 calls
Ships in Token Hamster. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callEach event it registers a hook on, with the matcher when it sets one
tool.callsession.startcommand.run{command=hamster}turn.startturn.completeui.render{component=AbovePrompt}ui.render{component=Pane, requestId=token-hamster}Every mods API method its source calls, by namespace
listeverynowregisterusagegetsetgetsetopenresolvestatusWhere 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 valeryia-piatrova/token-hamster --plugin token-hamster