Show & tell: Claude Code status-line indicator for headroom (live token-savings badge) #1789
Ship-Wright
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi headroom team & community! 👋
I built a small Claude Code plugin that surfaces headroom right in the editor's status line, so you can see it working instead of wondering whether you remembered to compress that huge file.
What it shows (bottom status bar, updates ~1s):
○ headroom idle (not compressing yet)— before the firstheadroom_compress● headroom · ~1490 tok saved · 5×— after: the running session total of tokens saved + how many times it firedHow it works: it reads the real Claude Code session transcript and counts
tool_usecalls tomcp__headroom__headroom_compress, summing thetokens_savedeach call reports (linked bytool_use_id). So merely callingstats/retrievedoes not false-trigger it — only real compression flips it green. Cross-platform, purejq+ shell.Install (two lines in Claude Code):
Repo (MIT): https://github.com/Ship-Wright/headroom-plugin
It's been a genuinely nice nudge to actually use compression on big JSON/logs. Huge thanks for headroom — feedback and PRs very welcome, and happy to adjust anything if you'd like to reference it. 🙏
Beta Was this translation helpful? Give feedback.
All reactions