primelogiclabio

Claude Context Bar — Development skill for Claude Code

Development community

Context card above the prompt, off until /context-bar show or the showBand option: the window as one bar segmented by /context category (system prompt, tools, MCP, agents, memory, skills, messages, fr.

How to install Claude Context Bar

This entry records only its repository, not the path inside it, so there is no exact command to give. Open primelogiclabio/claude-context-bar and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Context Bar does

Context card above the prompt, off until /context-bar show or the showBand option: the window as one bar segmented by /context category (system prompt, tools, MCP, agents, memory, skills, messages, free), a legend, a fill badge coloured by threshold, plus session tokens, cost and rate limits; /context-bar for the breakdown

Alternatives in Development

  • Battle — Head-to-head graded battle card between two sites — eight dimensions, bar-by-bar, verdict line 3.6k ★
  • Clawtab — One message bar for your coding agents 44 ★
  • Context Stats — Show context window usage, active tier, and system stats 42 ★

README

context-bar

A Claude Code mod that draws a context card above the prompt. It shows the context window as **one bar split by category**, the same categories `/context` lists, with a legend of exact figures underneath and a fill badge that turns green, yellow or red as the window fills.

◆ context                                              212k of 1M · compacts at 950k  21%
█▌▌▏▏▏████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
■ system prompt 3.4k 0.3%  ■ tools 12k 1%  ■ mcp tools 2.6k 0.3%  ■ agents 1.1k 0.1%
■ memory files 4.9k 0.5%   ■ skills 2.2k 0.2%  ■ messages 186k 19%  □ free 788k
session 1.24M tok · $3.41 · 5h 23.5% · 7d 41%

Each segment and its legend square use the colour `/context` uses for that category, so they follow your theme. The segments are painted boxes sized by flex layout, not runs of block characters, so the bar stays on one row in the desktop app's proportional font as well as in a terminal. Free space is the theme's faint grey.

**The card is off by default.** `/context-bar show` draws it for the session, and the `showBand` option draws it in every session. `/context-bar` prints the same figures as text whenever you want them.

Where each figure comes from

Everything comes from Claude Code's own mods API. Nothing is invented.

Part Source Notes
Header 212k of 1M and the badge 21% $.session.usage(), pushed after each turn by session.measure The live window as the status line reads it: the last response's input against the model's window. It reads — until the first response in a new or just-compacted window.
compacts at 950k The breakdown's autoCompactThreshold Shown only when auto-compaction is on
Segments and legend $.session.usage({ breakdown: 'summary' }): the categories /context shows, each with its tokens and colour A local estimate that makes no API request. It's fetched again whenever the context changes. Because i