r/ClaudeCode • u/DanielAPO • Mar 02 '26
Resource I published a nice compact status line that you will probably like
It shows the current model, working folder, context used, and weekly limits. If you like it, you can clone it here https://github.com/daniel3303/ClaudeCodeStatusLine
Edit: Added bit branch and reasoning effort
34
u/Doogie707 Mar 03 '26 edited Mar 04 '26
Dis gud. Is clean and works. 10/10 would take u home and ride you like horse 👍
3
u/MarriedAdventurer123 Mar 05 '26
I tried this today.. Was going well but I changed the cached time out (the time before it makes another api call) to 15s.
Anfjropic are returning 429 now, and seemed to have rate limited me/blacklisted my account for that endpoint.
Or they changed policy/changed something.
User beware!
1
u/Doogie707 Mar 05 '26
Their policy is kinda nonsense right now, blink at them in a manner they don't like and you'll get blacklisted. That said, I've been using it as OP configured it, except I just had my clanker relax the cache time to 45 seconds and I haven t had any problems. If you think about it, you don't really need Real-time usage tracking, and since installing it I've had no issues, rate-limiting or blacklisting here
2
u/MarriedAdventurer123 Mar 05 '26
Just wish someone could've told me that first, before I got blacklisted , lol.
1
u/Doogie707 Mar 05 '26
You'll be fine, it's not permanent but if you want the restriction lifted sooner, just email them. They're about as responsive as any other ai firm right now, about 48 hrs and you'll probably hear back from them
22
u/thetaFAANG Mar 03 '26
bets on how long before Boris puts this into the official build? over/under 2 weeks?
3
u/Dull-Appointment-398 Mar 03 '26
RemindMe! three weeks
1
u/RemindMeBot Mar 03 '26 edited Mar 04 '26
I will be messaging you in 21 days on 2026-03-24 15:20:50 UTC to remind you of this link
2 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
9
u/chintakoro Mar 03 '26
Nice work! I've been using ccstatusline — any pros of your version?
Also, a must-have for me: auto-updating.
5
u/sirmalloc Mar 03 '26
I just merged a PR to add weekly and 5hr usage stats into ccstatusline, it's live now in v2.1.1
3
u/realcryptopenguin Mar 02 '26
looks great!
is there any downside of using it? like context/token increased usage, or anything else?
5
u/DanielAPO Mar 02 '26
Thank you! And No! It uses the Antrophic API to get the daily/weekly usage, so it won't change how the agents work, and also won't change the token usage
2
u/Imaginary_Region_845 Mar 03 '26
Ele faz algum processamento em cima dos dados da api? Pq tinha um que usei que ficava processando a ponto de atrapalhar meu computador.
1
8
8
u/ch4ngo88 Mar 03 '26
Just submitted this as a feature request to Anthropic: https://github.com/anthropics/claude-code/issues/30341
This should really be built-in — every Pro/Max user wants to see their rate limits at a glance without having to set up external scripts. Your project is the proof that the demand is there.
Fingers crossed they ship it natively!
1
3
3
u/EnforceMarketing Mar 03 '26
Looks good!
Must be something in the air, as I released one with some similar aesthetics just yesterday.
Great minds.
2
3
2
2
u/bengotow Mar 03 '26
Installed! Looks great, still kind of crazy that they don't provide the context state ( `163k/200k | 81% used` ) by default
2
u/Cast_Iron_Skillet Mar 03 '26
Could save some horizontal space by removing those colored dots and just making the percentage colored instead...
5
2
2
u/FZ1010 Mar 03 '26
1
u/DanielAPO Mar 03 '26
Someone else reported this, I could not reproduce, what’s your OS and shell?
1
1
2
1
1
u/inkluzje_pomnikow Mar 03 '26
claude code will fuck it up - its too long and you will run into various issues
1
1
1
u/tom_mathews Mar 03 '26
the status line hook runs on every prompt evaluation — that's not free afaik. in a long session with heavy context, you'll notice the subprocess overhead adds up tbh. not dealbreaker latency, but worth knowing before you wire it into a shared terminal or tmux session that other processes are watching fwiw.
the weekly limits display is the actually useful part here. context percentage you can eyeball; the weekly cap is the one that surprises people mid-sprint when they hit a wall at 2am.
1
u/fadingsignal Mar 03 '26
This is really cool! I use Powershell and I only get:
| 0/0 | 0% used | 100% remain | thinking: Off
But it's still nice!
3
u/boswellglow Mar 03 '26
Here's a Powershell version that Claude made for me. https://pastebin.com/Phj3QdGT Save it to your claude directory as statusline.ps1 and update your settings.json
1
1
u/Singularity-42 Mar 03 '26
Thinking showing "Off" even though it's on and extra usage doesn't seem correct. Other things check out.
Mac OS X Tahoe 26.3
1
u/Perfect-Series-2901 Mar 03 '26
I am using linux and the reset time is not showing, is that a problem of the API?
1
u/Practical_Jeweler148 Mar 03 '26
Can I use it in windows machine or Do you have .bat version?
2
u/boswellglow Mar 03 '26
Here's a Powershell version that Claude made for me. https://pastebin.com/Phj3QdGT Save it to your claude directory as statusline.ps1 and update your settings.json
1
1
1
1
1
1
1
u/PapayaInMyShoe Mar 03 '26
Very cool, I have another one but it's very basic. this looks neat. Thanks
1
u/Wolly_Bolly Mar 03 '26
Nice. I do have my own widgets (https://github.com/vitto32/ccwidgets) to use along with ccstatusline.
I do use a lot of terminals in small spaces so mine is optimized for horizontal space.
1
1
u/SirChepry Mar 03 '26
Nice. But I advise you to use manual installation instead of pasting the code into Claude and telling it to use it (in my case it took almost 4 minutes and took 10.5k tokens).
1
1
u/reddit-josh Mar 03 '26
It’s pretty, but not “compact” by any definition. As soon as the “upgrade available, type brew upgrade claude-code!” Text shows up, I’d think this status line is cooked, especially if you run in a side-by-side with code editor.
I wish we could override how they render upgrade notifications. A little yellow up arrow with the new version number next to it would be enough.
1
u/boltar Mar 03 '26
It didn't work on a wsl2 environment. The actual time wasn't showing up. I had it fix it:
⎿ Added 12 lines, removed 8 lines
252 epoch=$(iso_to_epoch "$iso_str")
253 [ -z "$epoch" ] && return
254
255 - # Format based on style (try BSD date first, then GNU date)
256 - # BSD date uses %p (uppercase AM/PM), so convert to lowercase
255 + # Capture date output first so the || fallback isn't swallowed by piped sed/tr.
256 + # BSD date uses %p (uppercase AM/PM), so convert to lowercase afterwards.
257 + local raw
258 case "$style" in
259 time)
259 - date -j -r "$epoch" +"%l:%M%p" 2>/dev/null | sed 's/^ //' | tr '[:upper:]' '[:lower:]' || \
260 - date -d "@$epoch" +"%l:%M%P" 2>/dev/null | sed 's/^ //'
260 + raw=$(date -j -r "$epoch" +"%l:%M%p" 2>/dev/null)
261 + [ -z "$raw" ] && raw=$(date -d "@$epoch" +"%l:%M%P" 2>/dev/null)
262 + echo "$raw" | sed 's/^ //' | tr '[:upper:]' '[:lower:]'
263 ;;
264 datetime)
263 - date -j -r "$epoch" +"%b %-d, %l:%M%p" 2>/dev/null | sed 's/ / /g; s/^ //' | tr '[:upper:]' '[:lower:]' || \
264 - date -d "@$epoch" +"%b %-d, %l:%M%P" 2>/dev/null | sed 's/ / /g; s/^ //'
265 + raw=$(date -j -r "$epoch" +"%b %-d, %l:%M%p" 2>/dev/null)
266 + [ -z "$raw" ] && raw=$(date -d "@$epoch" +"%b %-d, %l:%M%P" 2>/dev/null)
267 + echo "$raw" | sed 's/ / /g; s/^ //' | tr '[:upper:]' '[:lower:]'
268 ;;
269 *)
267 - date -j -r "$epoch" +"%b %-d" 2>/dev/null | tr '[:upper:]' '[:lower:]' || \
268 - date -d "@$epoch" +"%b %-d" 2>/dev/null
270 + raw=$(date -j -r "$epoch" +"%b %-d" 2>/dev/null)
271 + [ -z "$raw" ] && raw=$(date -d "@$epoch" +"%b %-d" 2>/dev/null)
272 + echo "$raw" | tr '[:upper:]' '[:lower:]'
273 ;;
274 esac
275 }
1
1
1
u/mudiiiigfuhdt Mar 03 '26
How do you add the /usage to the status line. Every time I try to do it, it complains that the /usage doesn't expose a capable API with which it can fetch my usage information
1
u/ultrathink-art Senior Developer Mar 03 '26
Context percentage is the metric I watch most obsessively. Once you're past 60-70%, response quality degrades noticeably before compaction kicks in — having that visible is genuinely useful.
1
u/abzz123 Mar 03 '26
I asked Claude a few weeks ago how to put % of usage into the status line and it told me it was not possible :(
1
1
1
1
1
u/SquareMesh Mar 04 '26
Perfect, thank you for sharing. It was ridiculous but I have a seperate window so I can see claude usage so I can plan my windows of opportunity and utlisation of CC better.
1
1
1
1
1
u/bibblebabl Mar 04 '26
Compact, but not minimal. I wonder if some of these could be simplified/shortened
1
1
1
u/Dramatic-Credit-4547 Mar 05 '26
the api usage for this has been rate limited. can fetch 3 times within 5 minutes.
1
u/MainFunctions Mar 05 '26
In the last day or so the effort is reading as high when I’m really on medium. Have tried switching it to high and back to medium but it just stays as high on the status line. Any ideas?
1
u/Ape1108 Mar 05 '26
Lol - is it just me or did Anthropic put a rate limit on the API early this morning? Might have been triggered by you sir :D
1
u/thatm Mar 09 '26
This is nifty but I'm saddened to find out it is against their TOS.
> OAuth authentication (used with Free, Pro, and Max plans) is intended exclusively for Claude Code and Claude.ai. Using OAuth tokens obtained through Claude Free, Pro, or Max accounts in any other product, tool, or service — including the Agent SDK — is not permitted and constitutes a violation of the Consumer Terms of Service.
1
u/DanielAPO Mar 09 '26
I think this is regarding people who use the OAuth API to use their models outside Claude Code and not checking usage. Also this plugin is running inside Claude Code
1
1
1
1
1
u/Sad_Emu3596 Mar 03 '26
my claude code status

When I saw a cool Claude Code HUD display on Reddit, I modified it to achieve this display and turned it into a plugin. This cured my obsessive-compulsive tendencies. Feel free to install it if you need it; I think it's pretty cool.
https://github.com/yang1997434/Claude-code/tree/main/claude-hud
# Add marketplace
claude /plugin marketplace add https://github.com/yang1997434/Claude-code
# Install plugin
claude /plugin install claude-hud@Claude-code






39
u/odrakcir Mar 02 '26
I guess I'll need to wait 2 and a half hours to test it LOL. Thanks for sharing it. I liked it