From nextcost
See what your next message costs: a live band above the prompt with the prompt-cache countdown, the re-warm price, session cost, context and your 5h/7d limits.
11 events · 21 calls
Ships in nextcost. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runfs.readfs.statenv.getsettings.readprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.endclassic.SessionStartturn.startprompt.submitturn.completeturn.stepsession.compactsession.measurecommand.run{command=nextcost}command.run{command=usage-band}ui.render{component=AbovePrompt}Every mods API method its source calls, by namespace
aftereverynowregistergetreadstatrunidmodelreporootusagereadgetsetgetsetinvalidateresolvetoastCC_BAND_APPEARANCECC_BAND_GLYPHSCLAUDE_CODE_IDLE_COMPACT_MIN_TOKENSCLAUDE_CODE_PROMPT_CACHE_TTLCLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTLDISABLE_AUTO_COMPACTDISABLE_COMPACTENABLE_PROMPT_CACHING_1HFORCE_PROMPT_CACHING_5MHOMELANGLC_ALLLC_CTYPENEXTCOST_APPEARANCENEXTCOST_GLYPHSNO_COLORWhere 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 hmarzban/nextcost --plugin nextcost