From context-bar
Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. /context-bar shows or hides it.
6 events · 11 calls
Ships in context-bar. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
fs.existsfs.readenv.getEach event it registers a hook on, with the matcher when it sets one
session.startturn.completesession.compactsession.endcommand.run{command=context-bar}npx claudepluginhub hamzafer/claude-code-mods --plugin context-barui.render{component=AbovePrompt}ui.render{component=AbovePromptList}Every mods API method its source calls, by namespace
afterregistergetexistsreadusagegetsetgetsetresolveCLAUDE_AUTOCOMPACT_PCT_OVERRIDECLAUDE_CONFIG_DIRHOMEWhere 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.