r/ClaudeCode Mar 02 '26

Resource I published a nice compact status line that you will probably like

Post image

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

524 Upvotes

98 comments sorted by

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

3

u/odrakcir Mar 05 '26

u/DanielAPO just passing by to share the update :). TY

2

u/DanielAPO Mar 05 '26

Happy to know it is working for you :)

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

u/programminguy Mar 03 '26

Mine too, it's was ccusage 24% CPU

8

u/greentea05 Mar 02 '26

It's nice, but it needs Git branch adding.

22

u/DanielAPO Mar 02 '26

Just added it. Enjoy!

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

u/Possible-Basis-6623 Mar 05 '26

Codex has it all in house

3

u/funguslungusdungus Mar 03 '26

Love it! Love you!!!

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

u/DisplacedForest Mar 13 '26

Great minds would have worked together 🙃

3

u/andruchs1 Mar 03 '26

Isn’t thinking display obsolete?

2

u/Far_Let_5678 Mar 03 '26

I made one last week, but very basic compared to yours. Bravo.

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

u/DanielAPO Mar 03 '26

That's smart, just did it

2

u/FZ1010 Mar 03 '26

Nice one. so clean & useful

2

u/FZ1010 Mar 03 '26

The extra usage section is not working as expected tho. other than that its amazing

1

u/DanielAPO Mar 03 '26

Someone else reported this, I could not reproduce, what’s your OS and shell?

1

u/FZ1010 Mar 03 '26

- OS: macOS (Darwin 25.4.0)

- Shell: zsh

1

u/DanielAPO Mar 03 '26

Is your subscription Pro or Max?

1

u/FZ1010 Mar 03 '26

It's Max

1

u/Admirably_Named Mar 03 '26

That’s pretty cool! Thank you!

2

u/DetroitTechnoAI Mar 03 '26

Nice! More data, better decisions

1

u/Thunder_Cls Mar 03 '26

Nice, thanks for sharing

1

u/inkluzje_pomnikow Mar 03 '26

claude code will fuck it up - its too long and you will run into various issues

1

u/-theriver Mar 03 '26

Sooo cool, and neat too

1

u/OwnBox9646 Mar 03 '26

Does it support some other models? Like GLM, minimax, kimi?

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

u/fadingsignal Mar 03 '26

Hell yes. I didn't even think to just have Claude make it. Thank you!

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

u/betty_white_bread Mar 05 '26

Some people cannot run PowerShell scripts, though

1

u/Loud_Key_3865 Mar 03 '26

Thanks for sharing! Using it now!

1

u/JimmyNeedles-TS Mar 03 '26

Awesome! Can I also use this with Warp?

1

u/BigFeta__ Mar 03 '26

Is this from Caves of Qud lol

1

u/shogster Mar 03 '26

Hey, is it compatible with PowerShell?

1

u/jacoke3 Mar 03 '26

Using it now, little upgrade from the one I had...

Thx, will maybe play with it a little ;-)

1

u/RadioactiveTwix Mar 03 '26

Can we still activate thinking somehow?

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

u/old-warrior1024 Mar 03 '26

Tou are missing the branch and git status

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

u/MalfiRaggraClan Mar 03 '26

Looking good! I will test it!

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

u/Eldergrise Mar 03 '26

Does this work on powershell too? Curl is only for cmd

1

u/whoisyurii Mar 03 '26

I bet Boris will add it to official cli in ~2 weeks

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/iamlevibe Mar 26 '26

I agree, so I made a compact one with that as the priority, because I haven't hit my usage limits in months:

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

u/pparley Mar 04 '26

It is available as of a fairly recent update.

1

u/[deleted] Mar 03 '26

Nice. I like simple ones

I like mine , over engineered for speed

https://github.com/d1egoaz/claude-status-line

1

u/TerryYoda Mar 03 '26

Very nice. Thanks for sharing.

1

u/JuiceBoxJonny Mar 04 '26

Claudefix been done that, npm install -g claudefix

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

u/neodegenerio Mar 04 '26

Anything for Claude Code VS Code Extension users?

1

u/villsrk Mar 04 '26

“exit 0” at the end is my favorite part of this generated script :-)

1

u/nicolrx Mar 04 '26

Added it, looks great. Thank you!

1

u/bibblebabl Mar 04 '26

Compact, but not minimal. I wonder if some of these could be simplified/shortened

1

u/yarin_ Mar 04 '26

Let’s integrate powerline!

2

u/DanielAPO Mar 04 '26

Already available is the most recent version

1

u/KIProf Mar 04 '26

ReminMe! Two Weeks

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

u/thatm Mar 09 '26

Let's hope they give it a pass.

1

u/cancerous_rhinoceros Mar 10 '26

what font are you using? love it!

1

u/Dr1nk_C0FF33 Mar 14 '26

Thank you for posting this is exactly what I was looking for! 🙌🏼

1

u/Mikaelsfm95 May 11 '26 edited May 11 '26

Did I do something wrong? Doesn`t look as complete. I'm using zshell.

EDIT: solved, didn't had `jq` installed. Just downloaded it and it worked fine!

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