If you use Claude Code on a Pro or Max plan, two numbers decide your day: how full the context is, and how much of your 5-hour and weekly usage is gone. I kept forgetting to check them — and then hit the limit mid-task.
So I wrote a small plugin that answers the question before I ask it.
What it does
After an answer, if anything changed, one quiet line appears:
📊 Context 9 % · 5h 23.5 % · week 19 % · Session $1.50
and the same values sit in a band above the prompt. No prompts, no popups, nothing is blocked or denied. If a value isn't available, it is left out instead of guessed.
How it works (the interesting part)
Claude Code plugins can register hooks. The plugin listens for the end of each turn, reads the session's usage through the plugin API, and only prints when the numbers differ from the last line — otherwise the conversation would fill up with noise.
A few rules I set for myself, which I'd recommend for any hook you install:
- Fail open. If anything goes wrong (file missing, value invalid), the hook does nothing. A status helper must never break your session.
- Time-box everything. Every read has a deadline; a slow disk can't stall a turn.
-
Off switch you can reach without the tool: creating
~/.config/agent-mods/lagezeile.offturns it off. - Never invent numbers. A missing value is omitted, not estimated.
Try it
/plugin marketplace add Popeye785/agent-mods
/plugin install lagezeile@agent-mods
It's free. Source and README: https://github.com/Popeye785/agent-mods
I also sell a few paid plugins for businesses (a model picker that routes simple tasks to a cheaper model, a safety net before risky shell commands, and an action log). They're listed in the README if you're curious — no need to buy anything to use lagezeile.
Feedback welcome — especially on what other number you'd want in that line.
Independent project, not affiliated with Anthropic. Claude and Claude Code are trademarks of Anthropic.
Author: Christian Heilig, Previsa KI, Clara-Schumann-Straße 11, 97241 Bergtheim, Germany · kontakt@previsa.de · Impressum / legal notice
Top comments (0)