From statusline
A rich Claude Code status line drawn by a mod: model, effort, context gauge, request counter, cost and 5h/7d rate-limit gauges in the footer, a summary under each turn, a toast when a threshold is crossed, and /context's breakdown in a pane opened from the footer.
9 events · 26 calls
Ships in statusline. 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.writefs.existsfs.readenv.getsettings.readcommand.runEach event it registers a hook on, with the matcher when it sets one
session.startsession.endsession.measureturn.startturn.stepturn.completeui.render{component=SessionMode}ui.render{component=AbovePrompt}ui.render{component=PromptHint}ui.render{component=Spinner}ui.render{component=TurnDuration}command.run{command=ctx}ui.press{plugin=statusline, element=press:ctx}ui.render{component=Pane, requestId=context}Every mods API method its source calls, by namespace
aftereverynowregisterrungetexistsreadwriterunidmodelusagereadgetsetdeletegetkeyssetcloseinvalidateopenpanesresolvetoastHOMEUSERPROFILEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)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 sdrik/claude-statusline --plugin statusline