From token-monster
A pixel-art monster in a side pane that eats tokens and shows context, limits and activity at a glance
18 events · 21 calls
Ships in token-monster. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callenv.getprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=token-monster}session.measuresession.compactprompt.editprompt.submitturn.stepturn.startturn.completeclassic.PermissionRequestclassic.PermissionDeniedagent.spawnui.render{component=ToolProgress}classic.SessionStarttool.callui.closeui.render{component=AbovePrompt}ui.render{component=Pane, requestId=?}session.compact{trigger=manual}ui.press{plugin=token-monster, element=diet}session.start{isInteractive=true}ui.press{plugin=token-monster, element=sound}state.set{plugin=token-monster, key=waiting}Every mods API method its source calls, by namespace
listplayaftereverynowregistergetfillmessagesusagegetsetgetsetblitcloseinvalidateopenpanesresolvetoastCOLORTERMWhere 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.
token-monster@awesome-claude-code-mods is listed by testy-cool/awesome-claude-code-mods — review the source before installing
npx claudepluginhub testy-cool/awesome-claude-code-mods --plugin token-monster