3 ms·
I just used Claude to write a plug-in which changed the bottom of the CLI to say: ( ) Usage: 34% (resets in 2h 47m) Context: 56% [Opus 4.6] auto mode on
by hungryhobbit 1mo ago
I just used Claude to write a plug-in which changed the bottom of the CLI to say:
( ) Usage: 34% (resets in 2h 47m) Context: 56% [Opus 4.6]
auto mode on (shift+tab to cycle)
That way if my usage starts shooting up, it's very easy to notice (and the color of "( )", which is a circle that I couldn't paste here, changes when it gets high, ensuring I don't miss it).
I coupled that with a hook that watches for usage spiking (basically when I've been talking too long or did something to add a ton of context, so suddenly every turn sends a ton of context back, using up a ton of usage).
Between the two I haven't hit usage caps in weeks.
- Tadpole9181 1mo agoThis is actually a built-in Claude Code feature: `/statusline` will ask how you want it to look and set it up for you.
- marak830 1mo agoA) Oh nice! that's cool B) Warning everyone, it slowly eats tokens - If you're like me and on the pro plan, perhaps not a good idea to have its (albeit slow) drain on the tokens.
- chorsestudios 29d agoI didn't think statusline ate tokens, is this true?
- Tadpole9181 28d agoNo, when you run it Claude just writes a bash script used to generate the status line. Not sure what they're talking about.
- marak830 28d agoI set it up and saw the token notifier down the bottom slowly ticking up. I'll try again and report back, perhaps I misread something? I was surprised something like thst (which I assumed was an API call) was trickling token usage.
- brookst 28d agoWhen was it ticking up? The status line only updates after each turn. If you submitted a turn, tokens were used. The status line itself is a bash script, you can go look at it.
- ericd 1mo agoI have something like this persistent in my waybar, with session, weekly, and fable usage, with little color coded percentage bars for each. Super helpful, highly recommend it. Great idea on the hook alert. I feel like the advent of LLMs has made a super customizable OS like Linux so, so much better than the closed source alternatives, and so much better than they were before.
- e40 29d agoWanna share?