context-bar in action

context-bar

context-bar · by Hamza Zafar

Your context window as a stacked bar above the prompt, colored per category as /context does, with token counts and the compaction point.

❯ /plugin marketplace add SeongGwangJu/k-mods
❯ /plugin install context-bar@k-mods

Run /reload-plugins to apply it to an open session. Needs Claude Code 2.1.287 or later.

Notes

  • It overlaps in concept with ctx-strip, a k-mods original mod (both show the context window as a bar). The names differ, so there is no string collision, and it is registered. Mechanically, ctx-strip shows a bar plus one line for subagents in a single view, while context-bar is a pure context-only version that focuses on the same per-category colors, legend and compaction threshold display as /context. Whether to finally show both to users or recommend only one seems to need cross-coordination.

What it can do on your machine

Mods run unsandboxed with your permissions. These labels come from static analysis.

Reads conversation
Static analysis

Events handled

command.run{command=context-bar}session.compactsession.startturn.completeui.render{component=AbovePrompt}