ClaudeStatsBar - Real-time Claude Code session context monitor

Show HN: ClaudeStatsBar: your session is 486k deep and nothing told you

ClaudeStatsBar is a lightweight status line for Claude Code that reveals how large your session has grown and what the next turn will cost before you type. Built with pure Python stdlib, it shows context window usage, per-turn token cost, and remaining 5-hour and 7-day limits. By making session size visible, it helps developers avoid mid-task context exhaustion and reduce token waste—one user's data showed that splitting a 160-turn session into four 40-turn sessions cut context moved by more than half. Install via a simple script and keep your sessions efficient.

The problem is that none of this is visible while you work, and unlike running out of context window, it never self-limits. A session can sit at 480k for two hundred turns, never trigger a compaction, and quietly burn millions of tokens. That is the gap this fills.
  1. bonsai_spool

    Unaffiliated with this project but I enjoy Claude Code Usage on my Mac https://github.com/richhickson/claudecodeusage

  2. velcrovan

    What's funny is that, being a claude code user, I don't need to give someone else's python package a 24/7 back door into all my activity, I can just make my own.

  3. ftchd

    My two cents: the README should feel effortless to read and easy to skim. For something this straightforward, I’d ideally want to grasp the key points without having to scroll much. Once it starts feeling longer than it needs to be, I tend to lose interest and I think I'm not the only one.

    I built something similar but as a tray/cli and not just for usage. You can switch the login of CLIs like Codex, Claude, Vercel (if you're managing multiple accounts) etc

    Here's Switcheroo: https://github.com/FTCHD/switcheroo

More from this day

2026-09-11