coding

Claude Code Status Bar: Track Context Usage Live

Claude Code Status Bar is a development tool that displays real-time context usage metrics and token consumption directly in the editor's status bar for

Someone found that Claude Code lets you customize the status bar at the bottom to track context usage and project info in real-time. Pretty useful for avoiding those “oops, hit my token limit” moments.

Quick setup:

Grab the script from https://github.com/ykdojo/claude-code-tips/blob/main/scripts/context-bar.sh and follow the setup instructions.

Shows stuff like:

  • Current model and directory
  • Git branch and uncommitted files
  • Token usage with a visual bar (████░░░░░░ 18% of 200k)
  • Last message preview

Also supports 10 color themes (orange, blue, teal, green, lavender, rose, gold, slate, cyan, gray).

Turns out watching that token percentage creep up helps avoid rewrites mid-conversation. The git status is nice too - no more “wait, which branch am I on?” moments.